Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Widget

Class Widget

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget

Implemented interfaces:


public class

Widget



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.

Constructor Summary
(GtkObject* gtkObject)
          
(GtkWidget* gtkWidget)
          /* selection /* Source side drag signals /* Target side drag signals
(GType type, String firstPropertyName)
          Creates a new Widget from a types and with a property

Methods Summary
protected alias EventHandlerR!(Widget , EventButton )
          
alias EventHandlerR!(Widget , EventButton )
          
alias EventHandler!(Widget , EventScroll )
          
alias EventHandler!(Widget , EventMotion )
          
alias EventHandler!(Widget , Event )
          
alias EventHandler!(Widget , Event )
          
alias EventHandlerAfter!(Widget , EventExpose )
          
alias EventHandlerAfter!(Widget , Event )
          
alias EventHandlerR!(Widget , EventKey )
          
alias EventHandlerR!(Widget , EventKey )
          
alias EventHandler!(Widget , EventCrossing )
          
alias EventHandler!(Widget , EventCrossing )
          
alias EventHandlerAfterR!(Widget , EventConfigure )
          
alias EventHandler!(Widget , EventFocus )
          
alias EventHandler!(Widget , EventFocus )
          
alias EventHandler!(Widget , Event )
          
alias EventHandler!(Widget , Event )
          
alias EventHandlerAfterR!(Widget , Event )
          
alias EventHandlerAfterR!(Widget , Event )
          
alias EventHandler!(Widget , EventProperty )
          
alias EventHandler!(Widget , EventSelection )
          
alias EventHandler!(Widget , EventSelection )
          
alias EventHandler!(Widget , EventSelection )
          
alias EventHandler!(Widget , EventProximity )
          
alias EventHandler!(Widget , EventProximity )
          
alias EventHandler!(Widget , EventVisibility )
          
alias EventHandler!(Widget , EventClient )
          
alias EventHandler!(Widget , EventWindowState )
          
protected Widget recoverFromGTK(GtkWidget* gtkwidget)
          /* selection /* Source side drag signals /* Target side drag signals
public void* gtk()
          
static GType getType()
          Gets this class type
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
public bit getAutoShow()
          Gets if this object should be show be defaul
void setAutoShow(bit autoShow)
          Sets if this object should be show be defaul
public char toString()
          
void dump()
          
void widget(GtkWidget* gtkWidget)
          Sets the GtkWidget for this widget
void setTooltip(char tipText, char tipPrivate)
          Sets this widget tooltip
void setTooltip(String tipText, String tipPrivate)
          
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
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()
          /* Queuing draws 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()
          Gets the accle path ???
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(int width, 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)
          /* Accessibility support todo AtkObject * gtk_widget_get_accessible(gtkW()); /* The following functions must not be called on an already realized widget.
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)
          /* Widget styles.
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
void modifyFont(String font)
          
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)
          /* handle composite names for GTK_COMPOSITE_CHILD widgets, the returned name is newly allocated.
String getCompositeName()
          get composite name
void resetRCStyles()
          /* Descend recursively and set rc-style on all widgets without user styles resetRCStyle
void pushColorMap(GdkColormap* cmap)
          /* Push/pop pairs, to change default values upon a widget's creation.
void pushCompositeChild()
          pushCompositeChild
void popCompositeChild()
          popCompositeChild
void popColormap()
          popColormap
void setDefaultColormap(GdkColormap* colormap)
          
void setDirection(TextDirection dir)
          
TextDirection getDirection()
          getDirection
void setDefaultDirection(TextDirection dir)
          setDefaultDirection
TextDirection getDefaultDirection()
          getDefaultDirection
void shapeCombineMask(Bitmap shape_mask, int offset_x, int offset_y)
          /* Counterpart to gdk_window_shape_combine_mask.
void path(guint* path_length, String path, String path_reversed)
          
void classPath(guint* path_length, String path, String path_reversed)
          classPath
void setBackground(Color 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


EventHandlerR!

protected alias EventHandlerR!(Widget , EventButton )

EventHandlerR!

alias EventHandlerR!(Widget , EventButton )

EventHandler!

alias EventHandler!(Widget , EventScroll )

EventHandler!

alias EventHandler!(Widget , EventMotion )

EventHandler!

alias EventHandler!(Widget , Event )

EventHandler!

alias EventHandler!(Widget , Event )

EventHandlerAfter!

alias EventHandlerAfter!(Widget , EventExpose )

EventHandlerAfter!

alias EventHandlerAfter!(Widget , Event )

EventHandlerR!

alias EventHandlerR!(Widget , EventKey )

EventHandlerR!

alias EventHandlerR!(Widget , EventKey )

EventHandler!

alias EventHandler!(Widget , EventCrossing )

EventHandler!

alias EventHandler!(Widget , EventCrossing )

EventHandlerAfterR!

alias EventHandlerAfterR!(Widget , EventConfigure )

EventHandler!

alias EventHandler!(Widget , EventFocus )

EventHandler!

alias EventHandler!(Widget , EventFocus )

EventHandler!

alias EventHandler!(Widget , Event )

EventHandler!

alias EventHandler!(Widget , Event )

EventHandlerAfterR!

alias EventHandlerAfterR!(Widget , Event )

EventHandlerAfterR!

alias EventHandlerAfterR!(Widget , Event )

EventHandler!

alias EventHandler!(Widget , EventProperty )

EventHandler!

alias EventHandler!(Widget , EventSelection )

EventHandler!

alias EventHandler!(Widget , EventSelection )

EventHandler!

alias EventHandler!(Widget , EventSelection )

EventHandler!

alias EventHandler!(Widget , EventProximity )

EventHandler!

alias EventHandler!(Widget , EventProximity )

EventHandler!

alias EventHandler!(Widget , EventVisibility )

EventHandler!

alias EventHandler!(Widget , EventClient )

EventHandler!

alias EventHandler!(Widget , EventWindowState )

recoverFromGTK

protected Widget recoverFromGTK(GtkWidget* gtkwidget)
/* selection /* Source side drag signals /* Target side drag signals

gtk

public void* gtk()

getType

static GType getType()
Gets this class type

Returns:
this class type



ctor(Widget)(GtkObject* gtkObject)

addOnMouseButtonPress

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

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

addOnMouseButtonRelease

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

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

addOnMotionNotify

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

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

addOnDelete

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

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

addOnDestroy

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

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

addOnExpose

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

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

addOnNoExpose

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

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

addOnKeyPress

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

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

addOnKeyRelease

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

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

addOnEnterNotify

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

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

addOnLeaveNotify

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

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

addOnConfigure

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

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

addOnFocusIn

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

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

addOnFocusOut

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

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

addOnMap

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

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

addOnUnmap

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

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

addOnRealize

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

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

addOnUnrealize

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

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

addOnPropertyNotify

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

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

addOnSelectionClear

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

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

addOnSelectionRequest

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

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

addOnSelectionNotify

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

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

addOnProximityIn

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

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

addOnProximityOut

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

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

addOnVisibilityNotify

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

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

addOnClient

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

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

addOnWindowState

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

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



ctor(Widget)(GtkWidget* gtkWidget)
/* selection /* Source side drag signals /* Target side drag signals

getAutoShow

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

Returns:
true if yes

setAutoShow

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

Parameters:
autoShow - true if yes

toString

public char toString()

dump

void dump()

widget

void widget(GtkWidget* gtkWidget)
Sets the GtkWidget for this widget

setTooltip

void setTooltip(char tipText, char tipPrivate)
Sets this widget tooltip

Parameters:
tipText - the tooltip
tipPrivate - a private text

setTooltip

void setTooltip(String tipText, String tipPrivate)

getWindow

GdkDrawable* getWindow()
Gets this widget drawable

Returns:
the widget drawable

getFGgc

GC 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

getDrawable

Drawable getDrawable()
Gets the drawable for this widget

Returns:
the drawable



ctor(Widget)(GType type, String firstPropertyName)
Creates a new Widget from a types and with a property

Parameters:
type -
firstPropertyName -

ref

void ref()
Low level GTK manipulation of the widget

unref

void unref()
Low level GTK manipulation of the widget

destroy

void destroy()
Low level GTK explicitlyt destroy the widget.

destroyed

void destroyed(Widget w)
Destroyed???

unparent

void unparent()
Frees this widget from it parent

show

void show()
Shows this widget @see DUI.
utoShow()
@see autroShow()

showNow

void showNow()
Forces to show this widget emidiatly

hide

void hide()
Hides this widget

showAll

void showAll()
Show all children widgets

hideAll

void hideAll()
hides all children widgets

map

void map()
Maps the widget - low level GTK / X11 ???.
Seems that this has to be explicitly called before some operations

unmap

void unmap()
UnMaps the widget - low level GTK / X11 ???.

realize

void realize()
Realizes the widget - low level GTK / X11 ???.
Seems that this has to be explicitly called before some operations

unrealize

void unrealize()
UnRealizes the widget - low level GTK / X11 ???.

draw

void draw()
/* Queuing draws Requests to draw this widget when convinient

drawArea

void drawArea(int x, int y, int width, int height)
Requestes to draw an area of this widget when convinient

Parameters:
x -
y -
width -
height -

resize

void resize()
Requests resizing this widget when convinient

sizeRequest

void sizeRequest(GtkRequisition* requisition)
Sets the widget desired size

Parameters:
requisition -

sizeAllocate

void sizeAllocate(GtkAllocation* allocation)
Sets the size Allocations ???

Parameters:
allocation -

getChildRequisition

void getChildRequisition(GtkRequisition* requisition)
GEts child requisition ???

Parameters:
requisition -

setAccelPath

void setAccelPath(String accel_path, AccelGroup accel_group)
Sets the accel path ???

Parameters:
accel_path -
accel_group -

listAccelClosures

ListG listAccelClosures()
Gets the accle path ???

Parameters:
locked -

Returns:
the accel path List accel closures
a ListG

mnemonicActivate

bit mnemonicActivate(bit group_cycling)
mnemonicActivate

Parameters:
group_cycling -

Returns:

activate

bit activate()

Returns:

setScrollAdjustments

bit setScrollAdjustments(Adjustment hadjustment, Adjustment vadjustment)
setScrollAdjustments

Parameters:
hadjustment -
vadjustment -

Returns:

reparent

void reparent(Widget newParent)
reparent

Parameters:
new_parent -

intersect

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

Parameters:
area -
intersection -

Returns:

freezeChildNotify

void freezeChildNotify()
freezeChildNotify

regionIntersect

GdkRegion* regionIntersect(GdkRegion* region)
regionIntersect

Parameters:
region - GdkRegion

Returns:

childNofity

void childNofity(String child_property)
childNofity

Parameters:
child_property -

thawChildNotify

void thawChildNotify()
thawChildNotify

isFocus

bit isFocus()
isFocus

Returns:

grabFocus

void grabFocus()
grabFocus

grabDefault

void grabDefault()
grabDefault

setName

void setName(String name)
setName

Parameters:
name -

getName

String getName()
getName

Returns:
name

setState

void setState(StateType state)
setState

Parameters:
state -

setSensitive

void setSensitive(bit sensitive)
setSensitive

Parameters:
sensitive -

setPaintable

void setPaintable(bit app_paintable)
setPaintable

Parameters:
app_paintable -

setDoubleBuffered

void setDoubleBuffered(bit double_buffered)
setDoubleBuffered

Parameters:
double_buffered -

setRedrawOnAllocate

void setRedrawOnAllocate(bit redraw_on_allocate)
setRedrawOnAllocate

Parameters:
redraw_on_allocate -

setParent

void setParent(Widget parent)
setParent

Parameters:
parent -

setParentWindow

void setParentWindow(WindowG parent_window)
setParentWindow

Parameters:
parent_window -

setChildVisible

void setChildVisible(bit isVisible)
setChildVisible

Parameters:
isVisible -

getChildVisible

bit getChildVisible()
getChildVisible

Returns:

getParent

Widget getParent()
Gets the parent widget

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

getParentWindow

WindowG getParentWindow()
Gets the parent window

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

childFocus

bit childFocus(DirectionType direction)
childFocus

Parameters:
direction -

setSizeRequest

void setSizeRequest(int width, int height)
Sets the desired size of this widget

Parameters:
width - the horizontal size
height - the vertical size

getWidth

int getWidth()
Gets the current width of this widget

Returns:
the current width of this widget

getHeight

int getHeight()
Gets the current height of this widget

Returns:
the current height of this widget

getSizeRequest

void getSizeRequest(int width, int height)
Gets the desired size of this widget

Parameters:
width - the horizontal size
height - the vertical size

setEvents

void setEvents(int events)
Sets the events to listen to removing the current set of events.

Parameters:
events - the event we are interested in listen

addEvents

void addEvents(int events)
Add events to listen to without removing the existing ones

Parameters:
events - the new events we are interested in listen

setExtensionEvents

void setExtensionEvents(int mode)
setExtensionEvents

Parameters:
mode -

getExtensionEvents

GdkExtensionMode getExtensionEvents()
getExtensionEvents

getTopLevel

Widget getTopLevel()
getTopLevel

Returns:

getAncestor

Widget getAncestor(GType widget_type)
getAncestor

Parameters:
widget_type -

Returns:

getColormap

GdkColormap* getColormap()
getColormap

getDefaultVisual

Visual getDefaultVisual()
get default visual

Returns:
Visual

getScreen

Screen getScreen()
getScreen

Returns:

hasScreen

bit hasScreen()
hasScreen

Returns:

getDisplay

Display getDisplay()
Gets the display for this widget

Returns:
a new display from the widget GdkDisplay

getRootWindow

WindowG getRootWindow()
getRootWindow

Returns:

getSettings

GtkSettings* getSettings()
get settings

Returns:
GtkSettings

getClipboard

Clipboard getClipboard(GdkAtom selection)
get clipboard

Parameters:
selection -

Returns:
a new Clipboard

setColormap

void setColormap(GdkColormap* colormap)
/* Accessibility support todo AtkObject * gtk_widget_get_accessible(gtkW()); /* The following functions must not be called on an already realized widget.
Because it is possible that somebody can call get_colormap() or get_visual() and save the result, these functions are probably only safe to call in a widget's init() function. Set colormap

Parameters:
colormap -

getEvents

int getEvents()
Gets events ???

Returns:
some kind of number related to events

getPointer

void getPointer(int* x, int* y)
getPointer

Parameters:
x -
y -

isAncestor

bit isAncestor(Widget ancestor)
isAncestor

Parameters:
ancestor -

Returns:

translateCoordinates

bit 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:

hideOnDelete

bit hideOnDelete()
hideOnDelete

Returns:

setStyle

void setStyle(GtkStyle* style)
/* Widget styles.
setStyle
@ param style

ensureStyle

void ensureStyle()
ensureStyle

getStyle

GtkStyle* getStyle()
getStyle

Returns:

modifyStyle

void modifyStyle(GtkRcStyle* style)
modifyStyle

Parameters:
style -

getModifierStyle

GtkRcStyle* getModifierStyle()
getModifierStyle

Returns:
GtkRcStyle

modifyFG

void modifyFG(StateType state, Color color)
modifyFG

Parameters:
state -
color -

modifyBG

void modifyBG(StateType state, Color color)
modifyBG

Parameters:
state -
color -

modifyText

void modifyText(StateType state, Color color)
modifyText

Parameters:
state -
color -

modifyBase

void modifyBase(StateType state, Color color)
modifyBase

Parameters:
state -
color -

modifyFont

void modifyFont(Font font)
modifies this widget font @param font the dabgo.
ont \bug segfaults

modifyFont

void modifyFont(char font)
modifies this widget font from a font description string

Parameters:
font - the fron description string \bug segfaults

modifyFont

void modifyFont(String font)

createPangoContext

Context createPangoContext()
createPangoContext

Returns:
Context

getPangoContext

Context getPangoContext()
getPangoContext

Returns:
Context

createPangoLayout

Layout createPangoLayout(String text)
createPangoLayout

Parameters:
text -

Returns:
Layout

renderIcon

Pixbuf renderIcon(Stock stockID, IconSize size, String detail)
render icon

Parameters:
stockID -
size -
detail -

setCompositeName

void setCompositeName(String name)
/* handle composite names for GTK_COMPOSITE_CHILD widgets, the returned name is newly allocated.
Sets a widgets composite name. The widget must be a composite child of its parent; see gtk_widget_push_composite_child().

Parameters:
name -

getCompositeName

String getCompositeName()
get composite name
@ return

resetRCStyles

void resetRCStyles()
/* Descend recursively and set rc-style on all widgets without user styles resetRCStyle

pushColorMap

void pushColorMap(GdkColormap* cmap)
/* Push/pop pairs, to change default values upon a widget's creation.
This will override the values that got set by the gtk_widget_set_default_* () functions. pushColormap

Parameters:
cmap -

pushCompositeChild

void pushCompositeChild()
pushCompositeChild

popCompositeChild

void popCompositeChild()
popCompositeChild

popColormap

void popColormap()
popColormap

setDefaultColormap

void setDefaultColormap(GdkColormap* colormap)

setDirection

void setDirection(TextDirection dir)

getDirection

TextDirection getDirection()
getDirection

setDefaultDirection

void setDefaultDirection(TextDirection dir)
setDefaultDirection

Parameters:
dir -

getDefaultDirection

TextDirection getDefaultDirection()
getDefaultDirection

Returns:

shapeCombineMask

void shapeCombineMask(Bitmap shape_mask, int offset_x, int offset_y)
/* Counterpart to gdk_window_shape_combine_mask.
shapeCombineMask

Parameters:
shape_mask -
offset_x -
offset_y -

path

void path(guint* path_length, String path, String path_reversed)

classPath

void classPath(guint* path_length, String path, String path_reversed)
classPath

Parameters:
path_length -
path -
path_reversed -

setBackground

void setBackground(Color color)

setCursor

void setCursor(Cursor cursor)
Sets the cursor.

Parameters:
cursor - the new cursor \bug the cursor changes to the parent widget also

resetCursor

public void resetCursor()
Resets the cursor.
don't know if this is implemented by GTK+. Seems that it's not \bug does nothing

setCursor

void setCursor(CursorType cursorType)
Sets the cursor.

Parameters:
cursorType - the new cursor type \bug the cursor changes to the parent widget also

gtkW

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

Returns:
a pointer to the GtkWidget