Widget Class Reference

Inheritance diagram for Widget:

Calendar Container DrawingArea Entry Invisible Misc ProgressBar Range Ruler Separator List of all members.

Detailed Description

Widget introduces style properties - these are basically object properties that are stored not on the object, but in the style object associated to the widget.

Style properties are set in resource files. This mechanism is used for configuring such things as the location of the scrollbar arrows through the theme, giving theme authors more control over the look of applications without the need to write a theme engine in C. Use gtkWidgetClassInstallStyleProperty() to install style properties for a widget class, gtkWidgetClassFindStyleProperty() or gtkWidgetClassListStyleProperties() to get information about existing style properties and gtkWidgetStyleGetProperty(), gtkWidgetStyleGet() or gtkWidgetStyleGetValist() to obtain the value of a style property.


Public Member Functions

public void addOnMouseButtonPress (bit delegate(Widget, EventButton) dlg)
 OnMouseButtonPress.
public void addOnMouseButtonRelease (bit delegate(Widget, EventButton) dlg)
 OnMouseButtonPress.
public void addOnMotionNotify (bit delegate(Widget, EventMotion) dlg)
 OnMotionNotify.
public void addOnDelete (bit delegate(Widget, Event) dlg)
public void addOnDestroy (bit delegate(Widget, Event) dlg)
 OnDestroy.
public void addOnExpose (bit delegate(Widget, EventExpose) dlg)
 OnExpose.
public void addOnNoExpose (bit delegate(Widget, Event) dlg)
 OnNoExpose.
public void addOnKeyPress (bit delegate(Widget, EventKey) dlg)
public void addOnKeyRelease (bit delegate(Widget, EventKey) dlg)
 OnKeyRelease.
public void addOnEnterNotify (bit delegate(Widget, EventCrossing) dlg)
 OnEnterNotify.
public void addOnLeaveNotify (bit delegate(Widget, EventCrossing) dlg)
 OnLeaveNotify.
public void addOnConfigure (bit delegate(Widget, EventConfigure) dlg)
 OnConfigure.
public void addOnFocusIn (bit delegate(Widget, EventFocus) dlg)
 OnFocusIn.
public void addOnFocusOut (bit delegate(Widget, EventFocus) dlg)
 OnFocusOut.
public void addOnMap (bit delegate(Widget, Event) dlg)
 OnMap.
public void addOnUnmap (bit delegate(Widget, Event) dlg)
 OnUnmap.
public void addOnRealize (bit delegate(Widget, Event) dlg)
 OnRealize.
public void addOnUnrealize (bit delegate(Widget, Event) dlg)
 OnUnrealize.
public void addOnPropertyNotify (bit delegate(Widget, EventProperty) dlg)
 OnPropertyNotify.
public void addOnSelectionClear (bit delegate(Widget, EventSelection) dlg)
 OnSelectionClear.
public void addOnSelectionRequest (bit delegate(Widget, EventSelection) dlg)
 OnSelectionRequest.
public void addOnSelectionNotify (bit delegate(Widget, EventSelection) dlg)
 OnSelectionNotify.
public void addOnProximityIn (bit delegate(Widget, EventProximity) dlg)
 OnProximityIn.
public void addOnProximityOut (bit delegate(Widget, EventProximity) dlg)
 OnProximityOut.
public void addOnVisibilityNotify (bit delegate(Widget, EventVisibility) dlg)
 OnVisibilityNotify.
public void addOnClient (bit delegate(Widget, EventClient) dlg)
 OnClient.
public void addOnWindowState (bit delegate(Widget, EventWindowState) dlg)
 OnWindowState.
bit getAutoShow ()
 Gets if this object should be show be defaul.
void setAutoShow (bit autoShow)
 Sets if this object should be show be defaul.
void widget (GtkWidget *gtkWidget)
 Sets the GtkWidget for this widget.
void setTooltip (char[] tipText, char[] tipPrivate)
 Sets this widget tooltip.
GdkDrawable * getWindow ()
 Gets this widget drawable.
GC getFGgc ()
 Gets this widget foreground Graphics Context depending on the widget state.
Drawable getDrawable ()
 Gets the drawable for this widget.
 this (GType type, String firstPropertyName)
 Creates a new Widget from a types and with a property.
void ref ()
 Low level GTK manipulation of the widget.
void unref ()
 Low level GTK manipulation of the widget.
void destroy ()
 Low level GTK explicitlyt destroy the widget.
void destroyed (Widget w)
 Destroyed???
void unparent ()
 Frees this widget from it parent.
void show ()
 Shows this widget.
void showNow ()
 Forces to show this widget emidiatly.
void hide ()
 Hides this widget.
void showAll ()
 Show all children widgets.
void hideAll ()
 hides all children widgets
void map ()
 Maps the widget - low level GTK / X11 ???.
void unmap ()
 UnMaps the widget - low level GTK / X11 ???.
void realize ()
 Realizes the widget - low level GTK / X11 ???.
void unrealize ()
 UnRealizes the widget - low level GTK / X11 ???.
void draw ()
 Requests to draw this widget when convinient.
void drawArea (int x, int y, int width, int height)
 Requestes to draw an area of this widget when convinient.
void resize ()
 Requests resizing this widget when convinient.
void sizeRequest (GtkRequisition *requisition)
 Sets the widget desired size.
void sizeAllocate (GtkAllocation *allocation)
 Sets the size Allocations ???
void getChildRequisition (GtkRequisition *requisition)
 GEts child requisition ???
void setAccelPath (String accel_path, AccelGroup accel_group)
 Sets the accel path ???
ListG listAccelClosures ()
 List accel closures.
bit mnemonicActivate (bit group_cycling)
 mnemonicActivate
bit activate ()
bit setScrollAdjustments (Adjustment hadjustment, Adjustment vadjustment)
 setScrollAdjustments
void reparent (Widget newParent)
 reparent
bit intersect (Rectangle *area, Rectangle *intersection)
 intersect
void freezeChildNotify ()
 freezeChildNotify
GdkRegion * regionIntersect (GdkRegion *region)
 regionIntersect
void childNofity (String child_property)
 childNofity
void thawChildNotify ()
 thawChildNotify
bit isFocus ()
 isFocus
void grabFocus ()
 grabFocus
void grabDefault ()
 grabDefault
void setName (String name)
 setName
String getName ()
 getName
void setState (StateType state)
 setState
void setSensitive (bit sensitive)
 setSensitive
void setPaintable (bit app_paintable)
 setPaintable
void setDoubleBuffered (bit double_buffered)
 setDoubleBuffered
void setRedrawOnAllocate (bit redraw_on_allocate)
 setRedrawOnAllocate
void setParent (Widget parent)
 setParent
void setParentWindow (WindowG parent_window)
 setParentWindow
void setChildVisible (bit isVisible)
 setChildVisible
bit getChildVisible ()
 getChildVisible
Widget getParent ()
 Gets the parent widget.
WindowG getParentWindow ()
 Gets the parent window.
bit childFocus (DirectionType direction)
 childFocus
void setSizeRequest (int width, int height)
 Sets the desired size of this widget.
int getWidth ()
 Gets the current width of this widget.
int getHeight ()
 Gets the current height of this widget.
void getSizeRequest (out int width, out int height)
 Gets the desired size of this widget.
void setEvents (int events)
 Sets the events to listen to removing the current set of events.
void addEvents (int events)
 Add events to listen to without removing the existing ones.
void setExtensionEvents (int mode)
 setExtensionEvents
GdkExtensionMode getExtensionEvents ()
 getExtensionEvents
Widget getTopLevel ()
 getTopLevel
Widget getAncestor (GType widget_type)
 getAncestor
GdkColormap * getColormap ()
 getColormap
Visual getDefaultVisual ()
 get default visual
Screen getScreen ()
 getScreen
bit hasScreen ()
 hasScreen
Display getDisplay ()
 Gets the display for this widget.
WindowG getRootWindow ()
 getRootWindow
GtkSettings * getSettings ()
 get settings
Clipboard getClipboard (GdkAtom selection)
 get clipboard
void setColormap (GdkColormap *colormap)
 Set colormap.
int getEvents ()
 Gets events ???
void getPointer (int *x, int *y)
 getPointer
bit isAncestor (Widget ancestor)
 isAncestor
bit translateCoordinates (Widget src_widget, Widget dest_widget, int src_x, int src_y, int *dest_x, int *dest_y)
 translateCoordinates
bit hideOnDelete ()
 hideOnDelete
void setStyle (GtkStyle *style)
 setStyle @ param style
void ensureStyle ()
 ensureStyle
GtkStyle * getStyle ()
 getStyle
void modifyStyle (GtkRcStyle *style)
 modifyStyle
GtkRcStyle * getModifierStyle ()
 getModifierStyle
void modifyFG (StateType state, Color color)
 modifyFG
void modifyBG (StateType state, Color color)
 modifyBG
void modifyText (StateType state, Color color)
 modifyText
void modifyBase (StateType state, Color color)
 modifyBase
void modifyFont (Font font)
 modifies this widget font
void modifyFont (char[] font)
 modifies this widget font from a font description string
Context createPangoContext ()
 createPangoContext
Context getPangoContext ()
 getPangoContext
Layout createPangoLayout (String text)
 createPangoLayout
Pixbuf renderIcon (Stock stockID, IconSize size, String detail)
 render icon
void setCompositeName (String name)
 Sets a widgets composite name.
String getCompositeName ()
 get composite name @ return
void resetRCStyles ()
 resetRCStyle
void pushColorMap (GdkColormap *cmap)
 pushColormap
void pushCompositeChild ()
 pushCompositeChild
void popCompositeChild ()
 popCompositeChild
void popColormap ()
 popColormap
void gtk_widget_class_install_style_property (GtkWidgetClass *klass, GParamSpec *pspec)
 todo
void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, GParamSpec *pspec, GtkRcPropertyParser parser)
 todo
GParamSpec * gtk_widget_class_find_style_property (GtkWidgetClass *klass, String property_name)
 todo
GParamSpec ** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, guint *n_properties)
 todo
void gtk_widget_style_get_property (gtkW(), String property_name, GValue *value)
 todo
void gtk_widget_style_get_valist (gtkW(), String first_property_name, vaList var_args)
 todo
void gtk_widget_style_get (gtkW(), String first_property_name,...)
 todo
void setDefaultColormap (GdkColormap *colormap)
 setDefault colormap
GtkStyle * gtk_widget_get_default_style (void)
 todo
void setDirection (TextDirection dir)
 setDirection
TextDirection getDirection ()
 getDirection
void setDefaultDirection (TextDirection dir)
 setDefaultDirection
TextDirection getDefaultDirection ()
 getDefaultDirection
void shapeCombineMask (Bitmap shape_mask, int offset_x, int offset_y)
 shapeCombineMask
void gtk_widget_reset_shapes (gtkW())
 todo
void path (guint *path_length, String path, String path_reversed)
 path
void classPath (guint *path_length, String path, String path_reversed)
 classPath
GType gtk_requisition_get_type (void)
 todo move this to Requisition
GtkRequisition * gtk_requisition_copy (Requisition *requisition)
 todo move this to Requisition
void gtk_requisition_free (Requisition *requisition)
 todo move this to Requisition
GtkWidgetAuxInfo * _gtk_widget_get_aux_info (gtkW(), gboolean create)
 todo
void _gtk_widget_propagate_hierarchy_changed (gtkW(), GtkWidget *previous_toplevel)
 todo
void _gtk_widget_propagate_screen_changed (gtkW(), GdkScreen *previous_screen)
 todo
GdkColormap * _gtk_widget_peek_colormap (void)
 todo
void setBackground (Color color)
 Sets the background color.
void setCursor (Cursor cursor)
 Sets the cursor.
public void resetCursor ()
 Resets the cursor.
void setCursor (CursorType cursorType)
 Sets the cursor.
GtkWidget * gtkW ()
 Gets the GtkObject that this Widget is wrapping.

Static Public Member Functions

GType getType ()
 Gets this class type.

Protected Attributes

GtkWidget * gtkWidget
 If true this widget will be automatically shown apon creation if the DUI autoShow is also set to true.


Member Function Documentation

GtkWidgetAuxInfo* Widget._gtk_widget_get_aux_info gtkW()  ,
gboolean  create
 

todo

GdkColormap* Widget._gtk_widget_peek_colormap void   ) 
 

todo

void Widget._gtk_widget_propagate_hierarchy_changed gtkW()  ,
GtkWidget *  previous_toplevel
 

todo

void Widget._gtk_widget_propagate_screen_changed gtkW()  ,
GdkScreen *  previous_screen
 

todo

bit Widget.activate  ) 
 

Returns:

void Widget.addEvents int  events  ) 
 

Add events to listen to without removing the existing ones.

Parameters:
events the new events we are interested in listen

public void Widget.addOnClient bit delegate(Widget, EventClient dlg  ) 
 

OnClient.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnConfigure bit delegate(Widget, EventConfigure dlg  ) 
 

OnConfigure.

Parameters:
dlg the method to be added to the event calls

Reimplemented in DrawingArea.

public void Widget.addOnDelete bit delegate(Widget, Event dlg  ) 
 

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnDestroy bit delegate(Widget, Event dlg  ) 
 

OnDestroy.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnEnterNotify bit delegate(Widget, EventCrossing dlg  ) 
 

OnEnterNotify.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnExpose bit delegate(Widget, EventExpose dlg  ) 
 

OnExpose.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnFocusIn bit delegate(Widget, EventFocus dlg  ) 
 

OnFocusIn.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnFocusOut bit delegate(Widget, EventFocus dlg  ) 
 

OnFocusOut.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnKeyPress bit delegate(Widget, EventKey dlg  ) 
 

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnKeyRelease bit delegate(Widget, EventKey dlg  ) 
 

OnKeyRelease.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnLeaveNotify bit delegate(Widget, EventCrossing dlg  ) 
 

OnLeaveNotify.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnMap bit delegate(Widget, Event dlg  ) 
 

OnMap.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnMotionNotify bit delegate(Widget, EventMotion dlg  ) 
 

OnMotionNotify.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnMouseButtonPress bit delegate(Widget, EventButton dlg  ) 
 

OnMouseButtonPress.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnMouseButtonRelease bit delegate(Widget, EventButton dlg  ) 
 

OnMouseButtonPress.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnNoExpose bit delegate(Widget, Event dlg  ) 
 

OnNoExpose.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnPropertyNotify bit delegate(Widget, EventProperty dlg  ) 
 

OnPropertyNotify.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnProximityIn bit delegate(Widget, EventProximity dlg  ) 
 

OnProximityIn.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnProximityOut bit delegate(Widget, EventProximity dlg  ) 
 

OnProximityOut.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnRealize bit delegate(Widget, Event dlg  ) 
 

OnRealize.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnSelectionClear bit delegate(Widget, EventSelection dlg  ) 
 

OnSelectionClear.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnSelectionNotify bit delegate(Widget, EventSelection dlg  ) 
 

OnSelectionNotify.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnSelectionRequest bit delegate(Widget, EventSelection dlg  ) 
 

OnSelectionRequest.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnUnmap bit delegate(Widget, Event dlg  ) 
 

OnUnmap.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnUnrealize bit delegate(Widget, Event dlg  ) 
 

OnUnrealize.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnVisibilityNotify bit delegate(Widget, EventVisibility dlg  ) 
 

OnVisibilityNotify.

Parameters:
dlg the method to be added to the event calls

public void Widget.addOnWindowState bit delegate(Widget, EventWindowState dlg  ) 
 

OnWindowState.

Parameters:
dlg the method to be added to the event calls

bit Widget.childFocus DirectionType  direction  ) 
 

childFocus

Parameters:
direction 

void Widget.childNofity String  child_property  ) 
 

childNofity

Parameters:
child_property 

void Widget.classPath guint *  path_length,
String  path,
String  path_reversed
 

classPath

Parameters:
path_length 
path 
path_reversed 

Context Widget.createPangoContext  ) 
 

createPangoContext

Returns:
Context

Layout Widget.createPangoLayout String  text  ) 
 

createPangoLayout

Parameters:
text 
Returns:
Layout

void Widget.destroy  ) 
 

Low level GTK explicitlyt destroy the widget.

void Widget.destroyed Widget  w  ) 
 

Destroyed???

void Widget.draw  ) 
 

Requests to draw this widget when convinient.

void Widget.drawArea int  x,
int  y,
int  width,
int  height
 

Requestes to draw an area of this widget when convinient.

Parameters:
x 
y 
width 
height 

void Widget.ensureStyle  ) 
 

ensureStyle

void Widget.freezeChildNotify  ) 
 

freezeChildNotify

Widget Widget.getAncestor GType  widget_type  ) 
 

getAncestor

Parameters:
widget_type 
Returns:

bit Widget.getAutoShow  ) 
 

Gets if this object should be show be defaul.

Returns:
true if yes

void Widget.getChildRequisition GtkRequisition *  requisition  ) 
 

GEts child requisition ???

Parameters:
requisition 

bit Widget.getChildVisible  ) 
 

getChildVisible

Returns:

Clipboard Widget.getClipboard GdkAtom  selection  ) 
 

get clipboard

Parameters:
selection 
Returns:
a new Clipboard

GdkColormap* Widget.getColormap  ) 
 

getColormap

String Widget.getCompositeName  ) 
 

get composite name @ return

TextDirection Widget.getDefaultDirection  ) 
 

getDefaultDirection

Returns:

Visual Widget.getDefaultVisual  ) 
 

get default visual

Returns:
Visual

TextDirection Widget.getDirection  ) 
 

getDirection

Display Widget.getDisplay  ) 
 

Gets the display for this widget.

Returns:
a new display from the widget GdkDisplay

Drawable Widget.getDrawable  ) 
 

Gets the drawable for this widget.

Returns:
the drawable

int Widget.getEvents  ) 
 

Gets events ???

Returns:
some kind of number related to events

GdkExtensionMode Widget.getExtensionEvents  ) 
 

getExtensionEvents

GC Widget.getFGgc  ) 
 

Gets this widget foreground Graphics Context depending on the widget state.

This GC are shared through all the widget so any changes will affect other widgets

Returns:
the widget foregroupd GC

int Widget.getHeight  ) 
 

Gets the current height of this widget.

Returns:
the current height of this widget

GtkRcStyle* Widget.getModifierStyle  ) 
 

getModifierStyle

Returns:
GtkRcStyle

String Widget.getName  ) 
 

getName

Returns:
name

Context Widget.getPangoContext  ) 
 

getPangoContext

Returns:
Context

Widget Widget.getParent  ) 
 

Gets the parent widget.

Returns:
a new Widget that is the parent of this one

WindowG Widget.getParentWindow  ) 
 

Gets the parent window.

Returns:
a new WindowG that is the parent of this widget

void Widget.getPointer int *  x,
int *  y
 

getPointer

Parameters:
x 
y 

WindowG Widget.getRootWindow  ) 
 

getRootWindow

Returns:

Screen Widget.getScreen  ) 
 

getScreen

Returns:

Reimplemented in Invisible.

GtkSettings* Widget.getSettings  ) 
 

get settings

Returns:
GtkSettings

void Widget.getSizeRequest out int  width,
out int  height
 

Gets the desired size of this widget.

Parameters:
width the horizontal size
height the vertical size

GtkStyle* Widget.getStyle  ) 
 

getStyle

Returns:

Widget Widget.getTopLevel  ) 
 

getTopLevel

Returns:

GType Widget.getType  )  [static]
 

Gets this class type.

Returns:
this class type

Reimplemented in Box, DrawingArea, EventBox, HandleBox, HBox, HButtonBox, HPaned, HRuler, HScale, HScrollbar, HSeparator, Image, Item, Layout, List, ListItem, Menu, MenuBar, MenuShell, Misc, Paned, ProgressBar, Range, Ruler, Scale, Scrollbar, ScrolledWindow, Separator, Socket, SpinButton, Statusbar, Table, Toolbar, Tree, TreeItem, TreeView, VBox, VButtonBox, Viewport, VPaned, VRuler, VScale, VScrollbar, VSeparator, and Layout.

int Widget.getWidth  ) 
 

Gets the current width of this widget.

Returns:
the current width of this widget

GdkDrawable* Widget.getWindow  ) 
 

Gets this widget drawable.

Returns:
the widget drawable

void Widget.grabDefault  ) 
 

grabDefault

void Widget.grabFocus  ) 
 

grabFocus

GtkRequisition* Widget.gtk_requisition_copy Requisition *  requisition  ) 
 

todo move this to Requisition

void Widget.gtk_requisition_free Requisition *  requisition  ) 
 

todo move this to Requisition

GType Widget.gtk_requisition_get_type void   ) 
 

todo move this to Requisition

GParamSpec* Widget.gtk_widget_class_find_style_property GtkWidgetClass *  klass,
String  property_name
 

todo

void Widget.gtk_widget_class_install_style_property GtkWidgetClass *  klass,
GParamSpec *  pspec
 

todo

void Widget.gtk_widget_class_install_style_property_parser GtkWidgetClass *  klass,
GParamSpec *  pspec,
GtkRcPropertyParser  parser
 

todo

GParamSpec* * Widget.gtk_widget_class_list_style_properties GtkWidgetClass *  klass,
guint *  n_properties
 

todo

GtkStyle* Widget.gtk_widget_get_default_style void   ) 
 

todo

void Widget.gtk_widget_reset_shapes gtkW()   ) 
 

todo

void Widget.gtk_widget_style_get gtkW()  ,
String  first_property_name,
  ...
 

todo

void Widget.gtk_widget_style_get_property gtkW()  ,
String  property_name,
GValue *  value
 

todo

void Widget.gtk_widget_style_get_valist gtkW()  ,
String  first_property_name,
vaList  var_args
 

todo

GtkWidget* Widget.gtkW  ) 
 

Gets the GtkObject that this Widget is wrapping.

Returns:
a pointer to the GtkWidget

bit Widget.hasScreen  ) 
 

hasScreen

Returns:

void Widget.hide  ) 
 

Hides this widget.

void Widget.hideAll  ) 
 

hides all children widgets

bit Widget.hideOnDelete  ) 
 

hideOnDelete

Returns:

bit Widget.intersect Rectangle *  area,
Rectangle *  intersection
 

intersect

Parameters:
area 
intersection 
Returns:

bit Widget.isAncestor Widget  ancestor  ) 
 

isAncestor

Parameters:
ancestor 
Returns:

bit Widget.isFocus  ) 
 

isFocus

Returns:

ListG Widget.listAccelClosures  ) 
 

List accel closures.

Returns:
a ListG

void Widget.map  ) 
 

Maps the widget - low level GTK / X11 ???.

Seems that this has to be explicitly called before some operations

bit Widget.mnemonicActivate bit  group_cycling  ) 
 

mnemonicActivate

Parameters:
group_cycling 
Returns:

void Widget.modifyBase StateType  state,
Color  color
 

modifyBase

Parameters:
state 
color 

void Widget.modifyBG StateType  state,
Color  color
 

modifyBG

Parameters:
state 
color 

void Widget.modifyFG StateType  state,
Color  color
 

modifyFG

Parameters:
state 
color 

void Widget.modifyFont char[]  font  ) 
 

modifies this widget font from a font description string

Parameters:
font the fron description string
Bug:
segfaults

void Widget.modifyFont Font  font  ) 
 

modifies this widget font

Parameters:
font the dabgo.Font
Bug:
segfaults

void Widget.modifyStyle GtkRcStyle *  style  ) 
 

modifyStyle

Parameters:
style 

void Widget.modifyText StateType  state,
Color  color
 

modifyText

Parameters:
state 
color 

void Widget.path guint *  path_length,
String  path,
String  path_reversed
 

path

Parameters:
path_length 
path 
path_reversed 

void Widget.popColormap  ) 
 

popColormap

void Widget.popCompositeChild  ) 
 

popCompositeChild

void Widget.pushColorMap GdkColormap *  cmap  ) 
 

pushColormap

Parameters:
cmap 

void Widget.pushCompositeChild  ) 
 

pushCompositeChild

void Widget.realize  ) 
 

Realizes the widget - low level GTK / X11 ???.

Seems that this has to be explicitly called before some operations

void Widget.ref  ) 
 

Low level GTK manipulation of the widget.

GdkRegion* Widget.regionIntersect GdkRegion *  region  ) 
 

regionIntersect

Parameters:
region GdkRegion
Returns:

Pixbuf Widget.renderIcon Stock  stockID,
IconSize  size,
String  detail
 

render icon

Parameters:
stockID 
size 
detail 

void Widget.reparent Widget  newParent  ) 
 

reparent

Parameters:
new_parent 

public void Widget.resetCursor  ) 
 

Resets the cursor.

don't know if this is implemented by GTK+. Seems that it's not

Bug:
does nothing

void Widget.resetRCStyles  ) 
 

resetRCStyle

void Widget.resize  ) 
 

Requests resizing this widget when convinient.

void Widget.setAccelPath String  accel_path,
AccelGroup  accel_group
 

Sets the accel path ???

Parameters:
accel_path 
accel_group 

void Widget.setAutoShow bit  autoShow  ) 
 

Sets if this object should be show be defaul.

Parameters:
autoShow true if yes

void Widget.setBackground Color  color  ) 
 

Sets the background color.

Parameters:
color the new background color
Bug:
nothing happens

void Widget.setChildVisible bit  isVisible  ) 
 

setChildVisible

Parameters:
isVisible 

void Widget.setColormap GdkColormap *  colormap  ) 
 

Set colormap.

Parameters:
colormap 

void Widget.setCompositeName String  name  ) 
 

Sets a widgets composite name.

The widget must be a composite child of its parent; see gtk_widget_push_composite_child().

Parameters:
name 

void Widget.setCursor CursorType  cursorType  ) 
 

Sets the cursor.

Parameters:
cursorType the new cursor type
Bug:
the cursor changes to the parent widget also

void Widget.setCursor Cursor  cursor  ) 
 

Sets the cursor.

Parameters:
cursor the new cursor
Bug:
the cursor changes to the parent widget also

void Widget.setDefaultColormap GdkColormap *  colormap  ) 
 

setDefault colormap

Parameters:
colormap the colormap

void Widget.setDefaultDirection TextDirection  dir  ) 
 

setDefaultDirection

Parameters:
dir 

void Widget.setDirection TextDirection  dir  ) 
 

setDirection

Parameters:
dir 

void Widget.setDoubleBuffered bit  double_buffered  ) 
 

setDoubleBuffered

Parameters:
double_buffered 

void Widget.setEvents int  events  ) 
 

Sets the events to listen to removing the current set of events.

Parameters:
events the event we are interested in listen

void Widget.setExtensionEvents int  mode  ) 
 

setExtensionEvents

Parameters:
mode 

void Widget.setName String  name  ) 
 

setName

Parameters:
name 

void Widget.setPaintable bit  app_paintable  ) 
 

setPaintable

Parameters:
app_paintable 

void Widget.setParent Widget  parent  ) 
 

setParent

Parameters:
parent 

void Widget.setParentWindow WindowG  parent_window  ) 
 

setParentWindow

Parameters:
parent_window 

void Widget.setRedrawOnAllocate bit  redraw_on_allocate  ) 
 

setRedrawOnAllocate

Parameters:
redraw_on_allocate 

bit Widget.setScrollAdjustments Adjustment  hadjustment,
Adjustment  vadjustment
 

setScrollAdjustments

Parameters:
hadjustment 
vadjustment 
Returns:

void Widget.setSensitive bit  sensitive  ) 
 

setSensitive

Parameters:
sensitive 

void Widget.setSizeRequest int  width,
int  height
 

Sets the desired size of this widget.

Parameters:
width the horizontal size
height the vertical size

void Widget.setState StateType  state  ) 
 

setState

Parameters:
state 

void Widget.setStyle GtkStyle *  style  ) 
 

setStyle @ param style

void Widget.setTooltip char[]  tipText,
char[]  tipPrivate
 

Sets this widget tooltip.

Parameters:
tipText the tooltip
tipPrivate a private text

void Widget.shapeCombineMask Bitmap  shape_mask,
int  offset_x,
int  offset_y
 

shapeCombineMask

Parameters:
shape_mask 
offset_x 
offset_y 

void Widget.show  ) 
 

Shows this widget.

See also:
DUI.autoShow()

autroShow()

void Widget.showAll  ) 
 

Show all children widgets.

void Widget.showNow  ) 
 

Forces to show this widget emidiatly.

void Widget.sizeAllocate GtkAllocation *  allocation  ) 
 

Sets the size Allocations ???

Parameters:
allocation 

void Widget.sizeRequest GtkRequisition *  requisition  ) 
 

Sets the widget desired size.

Parameters:
requisition 

void Widget.thawChildNotify  ) 
 

thawChildNotify

Widget.this GType  type,
String  firstPropertyName
 

Creates a new Widget from a types and with a property.

Parameters:
type 
firstPropertyName 

bit Widget.translateCoordinates Widget  src_widget,
Widget  dest_widget,
int  src_x,
int  src_y,
int *  dest_x,
int *  dest_y
 

translateCoordinates

Parameters:
src_widget 
dest_widget 
src_x 
src_y 
dest_x 
dest_y 
Returns:

void Widget.unmap  ) 
 

UnMaps the widget - low level GTK / X11 ???.

void Widget.unparent  ) 
 

Frees this widget from it parent.

void Widget.unrealize  ) 
 

UnRealizes the widget - low level GTK / X11 ???.

void Widget.unref  ) 
 

Low level GTK manipulation of the widget.

void Widget.widget GtkWidget *  gtkWidget  ) 
 

Sets the GtkWidget for this widget.


Member Data Documentation

GtkWidget* Widget.gtkWidget [protected]
 

If true this widget will be automatically shown apon creation if the DUI autoShow is also set to true.


SourceForge.net Logo DSource.org Logo digitalmars.com Logo