Logo Search packages:      
Sourcecode: k3d version File versions

sdpGtkButton Class Reference

#include <sdpgtkbutton.h>

Inheritance diagram for sdpGtkButton:

sdpGtkBin sdpGtkContainer sdpGtkWidget sdpGtkObject sdpGtkOptionMenu sdpGtkToggleButton sdpGtkCheckButton sdpGtkRadioButton

List of all members.


Detailed Description

Encapsulates a GtkButton widget.

Definition at line 34 of file sdpgtkbutton.h.


Public Member Functions

void Activate ()
void Attach (sdpGtkWidget &Widget)
 Attaches a child widget.
void Attach (GtkWidget *Widget)
 Attaches a child widget.
bool AttachChild (sdpGtkIObjectContainer *const ObjectContainer, sdpxml::Document &Document, sdpxml::Element &ChildElement, sdpGtkObject *Child)
 Called after a child Gtk+ widget has been created to attach it to this instance.
bool Attached () const
 Returns true if we're attached to an existing Gtk+ object.
void CombineShapeMask (GdkBitmap *Mask, gint OffsetX, gint OffsetY)
bool Create (sdpGtkIObjectContainer *const ObjectContainer, sdpxml::Document &Document, sdpxml::Element &Element)
 Creates a new GtkButton from a GTKML (XML) document.
bool Create (SDPCSTRING Label)
 Creates a new GtkButton with a child label.
bool Create ()
 Creates a new GtkButton.
virtual void CreateChild (sdpGtkIObjectContainer *const ObjectContainer, sdpxml::Document &Document, sdpxml::Element &ChildElement)
 Called by CreateChildren for each child element to create child widgets from a GTKML (XML) document.
virtual bool CreateChildren (sdpGtkIObjectContainer *const ObjectContainer, sdpxml::Document &Document, sdpxml::Element &Element)
 Called after the Gtk+ widget has been created to create child widgets from a GTKML (XML) document.
bool CreateOptions (sdpGtkIObjectContainer *const ObjectContainer, sdpxml::Document &Document, sdpxml::Element &Element)
 Called after the Gtk+ widget has been created to handle setting widget options from a GTKML (XML) document.
bool CreateTooltip (sdpGtkIObjectContainer *const ObjectContainer, sdpxml::Document &Document, sdpxml::Element &Element)
virtual const std::string CustomType () const
 Returns the custom type of this object as a string.
void Destroy ()
 Destroys the widget (note that this is NOT called by the destructor).
void Draw (GdkRectangle *Area)
void EnsureStyle ()
GtkWidget * GetAncestor (GtkType WidgetType)
 Returns the ancestor of this widget that has the given type.
bool GetCanDefault ()
bool GetCanFocus ()
void GetChildRequisition (GtkRequisition *Requisition)
void GetClassPath (guint *PathLength, gchar **Path, gchar **PathReversed)
GdkColormap * GetColormap ()
 Returns the widget colormap.
gpointer GetData (SDPCSTRING Name)
 Returns a user-defined name-value pair.
const gchar * GetName ()
 Returns the widget name.
GtkWidget * GetParent ()
 Returns the parent widget.
GdkWindow * GetParentWindow ()
 Returns the widget's parent window.
void GetPath (guint *PathLength, gchar **Path, gchar **PathReversed)
void GetPointer (gint *X, gint *Y)
GtkReliefStyle GetRelief ()
 Returns the button relief style.
GtkStyle * GetStyle ()
 Returns the widget style.
GtkWidget * GetTopLevel ()
 Returns the top-level ancestor of this widget.
GdkVisual * GetVisual ()
 Returns the widget visual.
void GrabAdd ()
void GrabDefault ()
void GrabFocus ()
void GrabRemove ()
gint Height () const
void Hide ()
 Hides the widget.
void HideAll ()
 Recursively hides the widget and all its children.
void InteractiveActivate ()
 Visibly presses the button, and sends a signal.
bool InteractiveHighlight (const gdouble Speed, const bool Pause)
 Overlays graphics on the screen to draw attention to this widget.
bool InteractiveShow (const gdouble Speed, const bool Pause)
 Does whatever is required (raises the window, changes notebook pages, etc.) to make this widget visible.
bool InteractiveWarpPointer (const gint XOffset, const gint YOffset, const gdouble Speed, const bool Pause, const bool ManhattanStyle)
 Moves the pointer from its current location to a position relative to the widget (expressed in pixels).
bool InteractiveWarpPointer (const gdouble XPercent, const gdouble YPercent, const gdouble Speed, const bool Pause, const bool ManhattanStyle)
 Moves the pointer from its current location to a position relative to the widget (expressed as percentages).
bool InteractiveWarpPointer (const gdouble Speed, const bool Pause, const bool ManhattanStyle)
 Moves the pointer from its current location to the center of the widget.
gint Intersect (GdkRectangle *Area, GdkRectangle *Intersection)
gint IsAncestor (GtkWidget *Child)
 Returns true if the given widget is an ancestor of this one.
gint Left () const
void Map ()
 Maps the widget.
void ModifyStyle (GtkRcStyle *Style)
GtkObject * Object () const
 Returns the GtkObject this instance is attached to.
 operator GtkBin * ()
 Casts this instance to a GtkBin pointer.
 operator GtkButton * ()
 Casts this instance to a GtkButton pointer.
 operator GtkContainer * ()
 Casts this instance to a GtkContainer pointer.
 operator GtkObject * () const
 Casts this instance to a GtkObject.
 operator GtkWidget * ()
 Casts this instance into a GtkWidget pointer.
void QueueClear ()
void QueueClearArea (gint Left, gint Top, gint Width, gint Height)
void QueueDraw ()
 Queues an asynchronous redraw of the widget.
void QueueDrawArea (gint Left, gint Top, gint Width, gint Height)
 Queues an asynchronous redraw of the given area of the widget.
void QueueResize ()
 Queues a resize of the widget.
void Realize ()
 Realizes (creates the X window) for the widget.
void Reference ()
 Increments the reference count of the widget.
void Remove (sdpGtkWidget &Widget)
 Removes a child widget.
void Remove (GtkWidget *Widget)
 Removes a child widget.
void RemoveData (SDPCSTRING Name)
 Deletes a user-defined name-value pair.
void RemoveDragDestination ()
void RemoveDragSource ()
void Reparent (GtkWidget *NewParent)
 Reparents the widget.
void ResetShapeMask ()
void RestoreDefaultStyle ()
 sdpGtkButton (GtkButton *Button)
 Attaches this instance to an existing GtkButton widget.
 sdpGtkButton ()
 Standard constructor.
void SetBorderWidth (guint BorderWidth)
 Sets the container border width.
void SetCanDefault (bool CanDefault)
void SetCanFocus (bool CanFocus)
void SetCharacterSize (gdouble Width, gdouble Height)
 Sets the widget size in characters.
void SetData (SDPCSTRING Name, gpointer Value)
 Sets a user-defined name-value pair.
void SetDragDestination (GtkDestDefaults Flags, GtkTargetEntry *TargetArray, gint TargetCount, GdkDragAction DragAction)
void SetDragSource (GdkModifierType StartButton, GtkTargetEntry *TargetArray, gint TargetCount, GdkDragAction DragAction)
void SetName (SDPCSTRING Name)
 Sets the widget name.
void SetParent (GtkWidget *Parent)
 Sets the widget's parent widget.
void SetParentWindow (GdkWindow *Parent)
 Sets the widget's parent window.
void SetPosition (gint Left, gint Top)
 Sets the widget position relative to its parent.
void SetRelief (GtkReliefStyle Style)
 Sets the button relief style.
void SetSensitive (bool Sensitive)
void SetSize (gint Width, gint Height)
 Sets the widget size in pixels.
void SetState (GtkStateType State)
 Sets the widget state.
void SetStyle (GtkStyle *Style)
 Sets the widget style.
void Show ()
 Makes the widget visible.
void ShowAll ()
 Makes the widget and all its children recursively visible.
void ShowNow ()
 Makes the widget visible right now.
void SizeAllocate (GtkAllocation *Allocation)
void SizeRequest (GtkRequisition *Requisition)
gint Top () const
void UnMap ()
 Unmaps the widget.
void UnParent ()
 Unparents the widget.
void UnRealize ()
 Unrealizes the widget.
void UnReference ()
 Decrements the reference count of the widget.
gint Width () const

Protected Attributes

GtkObject * m_Object
 Stores the GtkObject this instance is attached to.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index