Widget Class Reference

Inheritance diagram for Widget:

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

Detailed Description

Widget is the main visible component of GTK+.


Public Member Functions

bit getAutoShow ()
 Gets if this object should be show be defaul.

void setAutoShow (bit autoShow)
 Sets if this object should be show be defaul.

GtkWidget * gtkW ()
 Gets the GtkObject that this Widget is wrapping.

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, char[] firstPropertyName)
 Creates a new Widget from a types and with a property.

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 (char[] accel_path, AccelGroup accel_group)
 Sets the accel path ???

char[] getAccelPath (gboolean *locked)
 Gets the accle path ???

ListG listAccelClosures ()
 List accel closures.

bit mnemonicActivate (bit group_cycling)
 mnemonicActivate

bit activate ()
bit setScrollAdjustments (Adjustment hadjustment, Adjustment vadjustment)
 setScrollAdjustments

void reparent (Widget new_parent)
 reparent

bit intersect (Rectangle *area, Rectangle *intersection)
 intersect

GdkRegion * regionIntersect (GdkRegion *region)
 regionIntersect

void freezeChildNotify ()
 freezeChildNotify

void childNofity (char[] child_property)
 childNofity

void thawChildNotify ()
 thawChildNotify

bit isFocus ()
 isFocus

void grabFocus ()
 grabFocus

void grabDefault ()
 grabDefault

void setName (char[] name)
 setName

char[] 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 (char[] text)
 createPangoLayout

Pixbuf renderIcon (Stock stockID, IconSize size, char[] detail)
 render icon

void setCompositeName (char[] name)
 Sets a widgets composite name.

char[] 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, char[] property_name)
 todo

GParamSpec ** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, guint *n_properties)
 todo

void gtk_widget_style_get_property (gtkW(), char[] property_name, GValue *value)
 todo

void gtk_widget_style_get_valist (gtkW(), char[] first_property_name, vaList var_args)
 todo

void gtk_widget_style_get (gtkW(), char[] 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, char[] path, char[] path_reversed)
 path

void classPath (guint *path_length, char[] path, char[] 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.

void resetCursor ()
 Resets the cursor.

void setCursor (CursorType cursorType)
 Sets the cursor.


Static Public Member Functions

GType getType ()
 Gets this class type.


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

bit Widget.childFocus DirectionType  direction  ) 
 

childFocus

Parameters:
direction 

void Widget.childNofity char[]  child_property  ) 
 

childNofity

Parameters:
child_property 

void Widget.classPath guint *  path_length,
char[]  path,
char[]  path_reversed
 

classPath

Parameters:
path_length 
path 
path_reversed 

Context Widget.createPangoContext  ) 
 

createPangoContext

Returns:
Context

Layout Widget.createPangoLayout char[]  text  ) 
 

createPangoLayout

Parameters:
text 
Returns:
Layout

void Widget.destroy  ) 
 

Low level GTK explicitlyt destroy the widget.

Reimplemented from DUIObject.

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

char [] Widget.getAccelPath gboolean *  locked  ) 
 

Gets the accle path ???

Parameters:
locked 
Returns:
the accel path

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

Reimplemented in Window.

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

char [] 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

char [] 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, and Window.

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, Dialog, DrawingArea, EventBox, FileSelection, FontSelectionDialog, Frame, HandleBox, HBox, HButtonBox, HPaned, HRuler, HScale, HScrollbar, HSeparator, Image, ImageMenuItem, InputDialog, Item, Label, Layout, List, ListItem, Menu, MenuBar, MenuItem, MenuShell, MessageDialog, Misc, OptionMenu, Paned, Plug, ProgressBar, RadioButton, RadioMenuItem, Range, Ruler, Scale, Scrollbar, ScrolledWindow, Separator, SeparatorMenuItem, Socket, SpinButton, Statusbar, Table, TearoffMenuItem, ToggleButton, Toolbar, VBox, VButtonBox, Viewport, VPaned, VRuler, VScale, VScrollbar, VSeparator, Window, 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,
char[]  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()  ,
char[]  first_property_name,
... 
 

todo

void Widget.gtk_widget_style_get_property gtkW()  ,
char[]  property_name,
GValue *  value
 

todo

void Widget.gtk_widget_style_get_valist gtkW()  ,
char[]  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,
char[]  path,
char[]  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

GdkRegion* Widget.regionIntersect GdkRegion *  region  ) 
 

regionIntersect

Parameters:
region GdkRegion
Returns:

Pixbuf Widget.renderIcon Stock  stockID,
IconSize  size,
char[]  detail
 

render icon

Parameters:
stockID 
size 
detail 

void Widget.reparent Widget  new_parent  ) 
 

reparent

Parameters:
new_parent 

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 char[]  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 char[]  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 char[]  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 provate 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,
char[]  firstPropertyName
 

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

Parameters:
type 
firstPropertyName 

Reimplemented from ObjectG.

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.


Generated on Sun Dec 21 02:47:14 2003 for DUI by doxygen 1.3.4