VCF::AbstractGTKControl Class Reference
This class serves as a common implementation for various methods of the ControlPeer interface. More...
#include <AbstractGTKControl.h>
Inheritance diagram for VCF::AbstractGTKControl:

Public Member Functions | |
| AbstractGTKControl () | |
| virtual | ~AbstractGTKControl () |
| virtual OSHandleID | getHandleID () |
| returns a ID that identifies this control. | |
| virtual void | create (Control *owningControl) |
| This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform. | |
| virtual void | destroyControl () |
| Destroy the control peer's resoruces (if neccessary). | |
| virtual String | getText () |
| returns a text associated with the component. | |
| virtual void | setText (const String &text) |
| sets the text for the widget | |
| virtual void | setBounds (Rect *rect) |
| sets the bounds for the component. | |
| virtual bool | beginSetBounds (const uint32 &numberOfChildren) |
| advanced function for changing the size of multiple child windows | |
| virtual void | endSetBounds () |
| virtual Rect | getBounds () |
| returns the bounds of the component in the coordinate system of the parent. | |
| virtual void | setVisible (const bool &visible) |
| shows or hides the component. | |
| virtual bool | getVisible () |
| returns wether or not the component is currently visible. | |
| virtual Control * | getControl () |
| returns the component that this Peer is attached to. | |
| virtual void | setControl (Control *component) |
| attahces the Peer to a particular component. | |
| virtual void | setCursor (Cursor *cursor) |
| virtual void | setParent (Control *parent) |
| virtual Control * | getParent () |
| virtual bool | isFocused () |
| virtual void | setFocused () |
| virtual bool | isEnabled () |
| virtual void | setEnabled (const bool &enabled) |
| virtual void | setFont (Font *font) |
| virtual void | repaint (Rect *repaintRect=NULL) |
| virtual void | keepMouseEvents () |
| this keeps the mouse events being sent to this control, even is the mouse leaves the physical bounds of the control | |
| virtual void | releaseMouseEvents () |
| releases mouse events - goes back to normal event handling | |
| virtual void | translateToScreenCoords (Point *pt) |
| Takes the coordinates in pt, which are in the coordinate system of this control, and translates them into the coordinate system of the Screen. | |
| virtual void | translateFromScreenCoords (Point *pt) |
| Takes the coordinates in pt, which are in the coordinate system of the Screen, and translates them into the coordinate system of this control. | |
| virtual gboolean | handleEvent (GdkEvent *gtkEvent) |
| Rect | internal_getBounds () |
| void | internal_setBounds (const Rect &bounds) |
Static Public Member Functions | |
| static AbstractGTKControl * | getGTKControlFromWidget (GtkWidget *wndHandle) |
| static GtkType | getGTKType () |
Protected Types | |
| typedef std::map< GtkWidget *, AbstractGTKControl * > | GTKControlMap |
Protected Member Functions | |
| virtual void | initGdkEventHandlers () |
Static Protected Member Functions | |
| static void | registerGTKControl (AbstractGTKControl *gtkControl) |
| static void | unRegisterGTKControl (AbstractGTKControl *gtkControl) |
| static gboolean | onGdkEvent (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
Protected Attributes | |
| AbstractGTKControl * | parent_ |
| bool | enabled_ |
| GtkWidget * | wndHandle_ |
| Control * | control_ |
| Rect | bounds_ |
| bool | repainted_ |
Static Protected Attributes | |
| static GTKControlMap | gtkControlMap |
Classes | |
| struct | Container |
| struct | ContainerChild |
| struct | ContainerClass |
Detailed Description
This class serves as a common implementation for various methods of the ControlPeer interface.Usually a class like GTKControl, GTKWindow, etc will share most of the same functionality, and only differ by a few overridden methods
Member Typedef Documentation
|
|
|
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
advanced function for changing the size of multiple child windows
Implements VCF::ControlPeer. |
|
|
This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform. create() must be called by the containing VCF::Control subclass, typically in the classes constructor, after retreiving the new peer instance from the appropriate UIToolkit::createXXX() call. Implements VCF::ControlPeer. Reimplemented in VCF::GTKCommandButton, VCF::GTKControl, VCF::GTKDialog, VCF::GTKTextControl, VCF::GTKToolbar, and VCF::GTKWindow. |
|
|
Destroy the control peer's resoruces (if neccessary).
Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
returns the bounds of the component in the coordinate system of the parent.
Implements VCF::ControlPeer. Reimplemented in VCF::GTKWindow. |
|
|
returns the component that this Peer is attached to.
Implements VCF::ControlPeer. |
|
|
|
|
|
|
|
|
returns a ID that identifies this control. On Win32 this corresponds to an HWND. Implements VCF::ControlPeer. Reimplemented in VCF::GTKWindow. |
|
|
Implements VCF::ControlPeer. |
|
|
returns a text associated with the component. This usually gets used in the Control::getCaption() method. Implements VCF::ControlPeer. Reimplemented in VCF::GTKCommandButton, VCF::GTKTextControl, and VCF::GTKWindow. |
|
|
returns wether or not the component is currently visible.
Implements VCF::ControlPeer. |
|
|
Reimplemented in VCF::GTKCommandButton, VCF::GTKTextControl, VCF::GTKToolbar, and VCF::GTKWindow. |
|
|
Reimplemented in VCF::GTKWindow. |
|
|
|
|
|
|
|
|
Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
this keeps the mouse events being sent to this control, even is the mouse leaves the physical bounds of the control
Implements VCF::ControlPeer. |
|
||||||||||||||||
|
|
|
|
|
|
|
releases mouse events - goes back to normal event handling
Implements VCF::ControlPeer. |
|
|
|
|
|
sets the bounds for the component. Bounds are specified in the coordinate system of the componenents parent. Implements VCF::ControlPeer. Reimplemented in VCF::GTKWindow. |
|
|
attahces the Peer to a particular component. This should only be done once. Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
Implements VCF::ControlPeer. |
|
|
sets the text for the widget
Implements VCF::ControlPeer. Reimplemented in VCF::GTKCommandButton, VCF::GTKTextControl, and VCF::GTKWindow. |
|
|
shows or hides the component. This does NOT close the component (if invoked on a frame based component ). Implements VCF::ControlPeer. |
|
|
Takes the coordinates in pt, which are in the coordinate system of the Screen, and translates them into the coordinate system of this control.
Implements VCF::ControlPeer. |
|
|
Takes the coordinates in pt, which are in the coordinate system of this control, and translates them into the coordinate system of the Screen.
Implements VCF::ControlPeer. |
|
|
|
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/AbstractGTKControl.h
