GtkOL Reference Manual |
---|
<ccontrol [draggable="bool" dropsite="bool"] [x="SInt32" y="SInt32" w="SInt32" h="SInt32"]> ... </ccontrol> |
DECLARE_GENERIC_METACLASS ('ctrl', CControl, CComponent); |
#include "ccomponent.h" #include "cgraphics.h" class CControl : public CComponent { public : CControl (CComponent *inOwner, const CObjectListener *inListener=NULL); virtual ~CControl (); public : virtual void SetBounds (const TBounds &inBounds); virtual TBounds GetBounds () const; virtual void SetDraggable (const Bool inDraggable); Bool GetDraggable () const; virtual void SetDropSite (const Bool inDropSite); Bool GetDropSite () const; virtual CPixbuf * GetControlPixbuf () const =0; virtual void Serialize (CXMLElementNode *&ioXMLElementNode, const int inMode) THROWABLE; protected : TBounds m_Bounds; Bool m_Draggable; Bool m_DropSite; Bool m_SerializeBounds; Bool m_SerializeDnD; SECTION_GENERIC_METACLASS; }; |
CControl::CControl (CComponent *inOwner, const CObjectListener *inListener=NULL); |
virtual CControl::~CControl (); |
virtual void CControl::SetBounds (const TBounds &inBounds); |
virtual TBounds CControl::GetBounds () const; |
virtual void CControl::SetDraggable (const Bool inDraggable); |
Bool CControl::GetDraggable () const; |
virtual void CControl::SetDropSite (const Bool inDropSite); |
Bool CControl::GetDropSite () const; |
virtual CPixbuf * CControl::GetControlPixbuf () const =0; |
virtual void CControl::Serialize (CXMLElementNode *&ioXMLElementNode, const int inMode) THROWABLE; |
TBounds CControl::m_Bounds; |