Entry

The #GtkEntry widget is a single line text entry widget. A fairly large set of key bindings are supported by default. If the entered text is longer than the allocation of the widget, the widget will scroll so that the cursor position is visible.

When using an entry for passwords and other sensitive information, it can be put into “password mode” using gtk_entry_set_visibility(). In this mode, entered text is displayed using a “invisible” character. By default, GTK+ picks the best invisible character that is available in the current font, but it can be changed with gtk_entry_set_invisible_char(). Since 2.16, GTK+ displays a warning when Caps Lock or input methods might interfere with entering text in a password entry. The warning can be turned off with the #GtkEntry:caps-lock-warning property.

Since 2.16, GtkEntry has the ability to display progress or activity information behind the text. To make an entry display such information, use gtk_entry_set_progress_fraction() or gtk_entry_set_progress_pulse_step().

Additionally, GtkEntry can show icons at either side of the entry. These icons can be activatable by clicking, can be set up as drag source and can have tooltips. To add an icon, use gtk_entry_set_icon_from_gicon() or one of the various other functions that set an icon from a stock id, an icon name or a pixbuf. To trigger an action when the user clicks an icon, connect to the #GtkEntry::icon-press signal. To allow DND operations from an icon, use gtk_entry_set_icon_drag_source(). To set a tooltip on an icon, use gtk_entry_set_icon_tooltip_text() or the corresponding function for markup.

Note that functionality or information that is only available by clicking on an icon in an entry may not be accessible at all to users which are not able to use a mouse or other pointing device. It is therefore recommended that any such functionality should also be available by other means, e.g. via the context menu of the entry.

CSS nodes

|[<!-- language="plain" --> entry ├── image.left ├── image.right ├── undershoot.left ├── undershoot.right ├── selection ├── [progress.pulse] ╰── window.popup ]|

GtkEntry has a main node with the name entry. Depending on the properties of the entry, the style classes .read-only and .flat may appear. The style classes .warning and .error may also be used with entries.

When the entry shows icons, it adds subnodes with the name image and the style class .left or .right, depending on where the icon appears.

When the entry has a selection, it adds a subnode with the name selection.

When the entry shows progress, it adds a subnode with the name progress. The node has the style class .pulse when the shown progress is pulsing.

The CSS node for a context menu is added as a subnode below entry as well.

The undershoot nodes are used to draw the underflow indication when content is scrolled out of view. These nodes get the .left and .right style classes added depending on where the indication is drawn.

When touch is used and touch selection handles are shown, they are using CSS nodes with name cursor-handle. They get the .top or .bottom style class depending on where they are shown in relation to the selection. If there is just a single handle for the text cursor, it gets the style class .insertion-cursor.

class Entry : Widget , CellEditableIF , EditableIF {}

Constructors

this
this(GtkEntry* gtkEntry, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string text)
this
this(string text, int max)
this
this()

Creates a new entry.

this
this(EntryBuffer buffer)

Creates a new entry with the specified text buffer.

Members

Classes

OnActivateDelegateWrapper
class OnActivateDelegateWrapper
Undocumented in source.
OnBackspaceDelegateWrapper
class OnBackspaceDelegateWrapper
Undocumented in source.
OnCopyClipboardDelegateWrapper
class OnCopyClipboardDelegateWrapper
Undocumented in source.
OnCutClipboardDelegateWrapper
class OnCutClipboardDelegateWrapper
Undocumented in source.
OnDeleteFromCursorDelegateWrapper
class OnDeleteFromCursorDelegateWrapper
Undocumented in source.
OnIconPressDelegateWrapper
class OnIconPressDelegateWrapper
Undocumented in source.
OnIconPressGenericDelegateWrapper
class OnIconPressGenericDelegateWrapper
Undocumented in source.
OnIconReleaseDelegateWrapper
class OnIconReleaseDelegateWrapper
Undocumented in source.
OnIconReleaseGenericDelegateWrapper
class OnIconReleaseGenericDelegateWrapper
Undocumented in source.
OnInsertAtCursorDelegateWrapper
class OnInsertAtCursorDelegateWrapper
Undocumented in source.
OnMoveCursorDelegateWrapper
class OnMoveCursorDelegateWrapper
Undocumented in source.
OnPasteClipboardDelegateWrapper
class OnPasteClipboardDelegateWrapper
Undocumented in source.
OnPopulatePopupDelegateWrapper
class OnPopulatePopupDelegateWrapper
Undocumented in source.
OnPreeditChangedDelegateWrapper
class OnPreeditChangedDelegateWrapper
Undocumented in source.
OnToggleOverwriteDelegateWrapper
class OnToggleOverwriteDelegateWrapper
Undocumented in source.

Functions

addOnActivate
gulong addOnActivate(void delegate(Entry) dlg, ConnectFlags connectFlags)

The ::activate signal is emitted when the user hits the Enter key.

addOnBackspace
gulong addOnBackspace(void delegate(Entry) dlg, ConnectFlags connectFlags)

The ::backspace signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user asks for it.

addOnCopyClipboard
gulong addOnCopyClipboard(void delegate(Entry) dlg, ConnectFlags connectFlags)

The ::copy-clipboard signal is a [keybinding signal]GtkBindingSignal which gets emitted to copy the selection to the clipboard.

addOnCutClipboard
gulong addOnCutClipboard(void delegate(Entry) dlg, ConnectFlags connectFlags)

The ::cut-clipboard signal is a [keybinding signal]GtkBindingSignal which gets emitted to cut the selection to the clipboard.

addOnDeleteFromCursor
gulong addOnDeleteFromCursor(void delegate(GtkDeleteType, int, Entry) dlg, ConnectFlags connectFlags)

The ::delete-from-cursor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates a text deletion.

addOnIconPress
gulong addOnIconPress(void delegate(GtkEntryIconPosition, Event, Entry) dlg, ConnectFlags connectFlags)

The ::icon-press signal is emitted when an activatable icon is clicked.

addOnIconPress
gulong addOnIconPress(void delegate(GtkEntryIconPosition, GdkEventButton*, Entry) dlg, ConnectFlags connectFlags)

The ::icon-press signal is emitted when an activatable icon is clicked.

addOnIconRelease
gulong addOnIconRelease(void delegate(GtkEntryIconPosition, Event, Entry) dlg, ConnectFlags connectFlags)

The ::icon-release signal is emitted on the button release from a mouse click over an activatable icon.

addOnIconRelease
gulong addOnIconRelease(void delegate(GtkEntryIconPosition, GdkEventButton*, Entry) dlg, ConnectFlags connectFlags)

The ::icon-release signal is emitted on the button release from a mouse click over an activatable icon.

addOnInsertAtCursor
gulong addOnInsertAtCursor(void delegate(string, Entry) dlg, ConnectFlags connectFlags)

The ::insert-at-cursor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates the insertion of a fixed string at the cursor.

addOnMoveCursor
gulong addOnMoveCursor(void delegate(GtkMovementStep, int, bool, Entry) dlg, ConnectFlags connectFlags)

The ::move-cursor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates a cursor movement. If the cursor is not visible in @entry, this signal causes the viewport to be moved instead.

addOnPasteClipboard
gulong addOnPasteClipboard(void delegate(Entry) dlg, ConnectFlags connectFlags)

The ::paste-clipboard signal is a [keybinding signal]GtkBindingSignal which gets emitted to paste the contents of the clipboard into the text view.

addOnPopulatePopup
gulong addOnPopulatePopup(void delegate(Widget, Entry) dlg, ConnectFlags connectFlags)

The ::populate-popup signal gets emitted before showing the context menu of the entry.

addOnPreeditChanged
gulong addOnPreeditChanged(void delegate(string, Entry) dlg, ConnectFlags connectFlags)

If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal.

addOnToggleOverwrite
gulong addOnToggleOverwrite(void delegate(Entry) dlg, ConnectFlags connectFlags)

The ::toggle-overwrite signal is a [keybinding signal]GtkBindingSignal which gets emitted to toggle the overwrite mode of the entry.

getActivatesDefault
bool getActivatesDefault()

Retrieves the value set by gtk_entry_set_activates_default().

getAlignment
float getAlignment()

Gets the value set by gtk_entry_set_alignment().

getAttributes
PgAttributeList getAttributes()

Gets the attribute list that was set on the entry using gtk_entry_set_attributes(), if any.

getBuffer
EntryBuffer getBuffer()

Get the #GtkEntryBuffer object which holds the text for this widget.

getCompletion
EntryCompletion getCompletion()

Returns the auxiliary completion object currently in use by @entry.

getCurrentIconDragSource
int getCurrentIconDragSource()

Returns the index of the icon which is the source of the current DND operation, or -1.

getCursorHadjustment
Adjustment getCursorHadjustment()

Retrieves the horizontal cursor adjustment for the entry. See gtk_entry_set_cursor_hadjustment().

getEntryStruct
GtkEntry* getEntryStruct(bool transferOwnership)

Get the main Gtk struct

getHasFrame
bool getHasFrame()

Gets the value set by gtk_entry_set_has_frame().

getIconActivatable
bool getIconActivatable(GtkEntryIconPosition iconPos)

Returns whether the icon is activatable.

getIconArea
void getIconArea(GtkEntryIconPosition iconPos, GdkRectangle iconArea)

Gets the area where entry’s icon at @icon_pos is drawn. This function is useful when drawing something to the entry in a draw callback.

getIconAtPos
int getIconAtPos(int x, int y)

Finds the icon at the given position and return its index. The position’s coordinates are relative to the @entry’s top left corner. If @x, @y doesn’t lie inside an icon, -1 is returned. This function is intended for use in a #GtkWidget::query-tooltip signal handler.

getIconGicon
IconIF getIconGicon(GtkEntryIconPosition iconPos)

Retrieves the #GIcon used for the icon, or %NULL if there is no icon or if the icon was set by some other method (e.g., by stock, pixbuf, or icon name).

getIconName
string getIconName(GtkEntryIconPosition iconPos)

Retrieves the icon name used for the icon, or %NULL if there is no icon or if the icon was set by some other method (e.g., by pixbuf, stock or gicon).

getIconPixbuf
Pixbuf getIconPixbuf(GtkEntryIconPosition iconPos)

Retrieves the image used for the icon.

getIconSensitive
bool getIconSensitive(GtkEntryIconPosition iconPos)

Returns whether the icon appears sensitive or insensitive.

getIconStock
string getIconStock(GtkEntryIconPosition iconPos)

Retrieves the stock id used for the icon, or %NULL if there is no icon or if the icon was set by some other method (e.g., by pixbuf, icon name or gicon).

getIconStorageType
GtkImageType getIconStorageType(GtkEntryIconPosition iconPos)

Gets the type of representation being used by the icon to store image data. If the icon has no image data, the return value will be %GTK_IMAGE_EMPTY.

getIconTooltipMarkup
string getIconTooltipMarkup(GtkEntryIconPosition iconPos)

Gets the contents of the tooltip on the icon at the specified position in @entry.

getIconTooltipText
string getIconTooltipText(GtkEntryIconPosition iconPos)

Gets the contents of the tooltip on the icon at the specified position in @entry.

getInnerBorder
Border getInnerBorder()

This function returns the entry’s #GtkEntry:inner-border property. See gtk_entry_set_inner_border() for more information.

getInputHints
GtkInputHints getInputHints()

Gets the value of the #GtkEntry:input-hints property.

getInputPurpose
GtkInputPurpose getInputPurpose()

Gets the value of the #GtkEntry:input-purpose property.

getInvisibleChar
dchar getInvisibleChar()

Retrieves the character displayed in place of the real characters for entries with visibility set to false. See gtk_entry_set_invisible_char().

getLayout
PgLayout getLayout()

Gets the #PangoLayout used to display the entry. The layout is useful to e.g. convert text positions to pixel positions, in combination with gtk_entry_get_layout_offsets(). The returned layout is owned by the entry and must not be modified or freed by the caller.

getLayoutOffsets
void getLayoutOffsets(int x, int y)

Obtains the position of the #PangoLayout used to render text in the entry, in widget coordinates. Useful if you want to line up the text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget.

getMaxLength
int getMaxLength()

Retrieves the maximum allowed length of the text in @entry. See gtk_entry_set_max_length().

getMaxWidthChars
int getMaxWidthChars()

Retrieves the desired maximum width of @entry, in characters. See gtk_entry_set_max_width_chars().

getOverwriteMode
bool getOverwriteMode()

Gets the value set by gtk_entry_set_overwrite_mode().

getPlaceholderText
string getPlaceholderText()

Retrieves the text that will be displayed when @entry is empty and unfocused

getProgressFraction
double getProgressFraction()

Returns the current fraction of the task that’s been completed. See gtk_entry_set_progress_fraction().

getProgressPulseStep
double getProgressPulseStep()

Retrieves the pulse step set with gtk_entry_set_progress_pulse_step().

getStockId
StockID getStockId(GtkEntryIconPosition iconPos)

Gets the stock id of action. Since 2.16

getStruct
void* getStruct()

the main Gtk struct as a void*

getTabs
PgTabArray getTabs()

Gets the tabstops that were set on the entry using gtk_entry_set_tabs(), if any.

getText
string getText()

Retrieves the contents of the entry widget. See also gtk_editable_get_chars().

getTextArea
void getTextArea(GdkRectangle textArea)

Gets the area where the entry’s text is drawn. This function is useful when drawing something to the entry in a draw callback.

getTextLength
ushort getTextLength()

Retrieves the current length of the text in @entry.

getVisibility
bool getVisibility()

Retrieves whether the text in @entry is visible. See gtk_entry_set_visibility().

getWidthChars
int getWidthChars()

Gets the value set by gtk_entry_set_width_chars().

grabFocusWithoutSelecting
void grabFocusWithoutSelecting()

Causes @entry to have keyboard focus.

imContextFilterKeypress
bool imContextFilterKeypress(GdkEventKey* event)

Allow the #GtkEntry input method to internally handle key press and release events. If this function returns %TRUE, then no further processing should be done for this key event. See gtk_im_context_filter_keypress().

layoutIndexToTextIndex
int layoutIndexToTextIndex(int layoutIndex)

Converts from a position in the entry’s #PangoLayout (returned by gtk_entry_get_layout()) to a position in the entry contents (returned by gtk_entry_get_text()).

progressPulse
void progressPulse()

Indicates that some progress is made, but you don’t know how much. Causes the entry’s progress indicator to enter “activity mode,” where a block bounces back and forth. Each call to gtk_entry_progress_pulse() causes the block to move by a little bit (the amount of movement per pulse is determined by gtk_entry_set_progress_pulse_step()).

resetImContext
void resetImContext()

Reset the input method context of the entry if needed.

setActivatesDefault
void setActivatesDefault(bool setting)

If @setting is %TRUE, pressing Enter in the @entry will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons.

setAlignment
void setAlignment(float xalign)

Sets the alignment for the contents of the entry. This controls the horizontal positioning of the contents when the displayed text is shorter than the width of the entry.

setAttributes
void setAttributes(PgAttributeList attrs)

Sets a #PangoAttrList; the attributes in the list are applied to the entry text.

setBuffer
void setBuffer(EntryBuffer buffer)

Set the #GtkEntryBuffer object which holds the text for this widget.

setCompletion
void setCompletion(EntryCompletion completion)

Sets @completion to be the auxiliary completion object to use with @entry. All further configuration of the completion mechanism is done on @completion using the #GtkEntryCompletion API. Completion is disabled if @completion is set to %NULL.

setCursorHadjustment
void setCursorHadjustment(Adjustment adjustment)

Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position. See gtk_scrolled_window_get_hadjustment() for a typical way of obtaining the adjustment.

setHasFrame
void setHasFrame(bool setting)

Sets whether the entry has a beveled frame around it.

setIconActivatable
void setIconActivatable(GtkEntryIconPosition iconPos, bool activatable)

Sets whether the icon is activatable.

setIconDragSource
void setIconDragSource(GtkEntryIconPosition iconPos, TargetList targetList, GdkDragAction actions)

Sets up the icon at the given position so that GTK+ will start a drag operation when the user clicks and drags the icon.

setIconFromGicon
void setIconFromGicon(GtkEntryIconPosition iconPos, IconIF icon)

Sets the icon shown in the entry at the specified position from the current icon theme. If the icon isn’t known, a “broken image” icon will be displayed instead.

setIconFromIconName
void setIconFromIconName(GtkEntryIconPosition iconPos, string iconName)

Sets the icon shown in the entry at the specified position from the current icon theme.

setIconFromPixbuf
void setIconFromPixbuf(GtkEntryIconPosition iconPos, Pixbuf pixbuf)

Sets the icon shown in the specified position using a pixbuf.

setIconFromStock
void setIconFromStock(GtkEntryIconPosition iconPos, string stockId)

Sets the icon shown in the entry at the specified position from a stock image.

setIconSensitive
void setIconSensitive(GtkEntryIconPosition iconPos, bool sensitive)

Sets the sensitivity for the specified icon.

setIconTooltipMarkup
void setIconTooltipMarkup(GtkEntryIconPosition iconPos, string tooltip)

Sets @tooltip as the contents of the tooltip for the icon at the specified position. @tooltip is assumed to be marked up with the [Pango text markup language]PangoMarkupFormat.

setIconTooltipText
void setIconTooltipText(GtkEntryIconPosition iconPos, string tooltip)

Sets @tooltip as the contents of the tooltip for the icon at the specified position.

setInnerBorder
void setInnerBorder(Border border)

Sets %entry’s inner-border property to @border, or clears it if %NULL is passed. The inner-border is the area around the entry’s text, but inside its frame.

setInputHints
void setInputHints(GtkInputHints hints)

Sets the #GtkEntry:input-hints property, which allows input methods to fine-tune their behaviour.

setInputPurpose
void setInputPurpose(GtkInputPurpose purpose)

Sets the #GtkEntry:input-purpose property which can be used by on-screen keyboards and other input methods to adjust their behaviour.

setInvisibleChar
void setInvisibleChar(dchar ch)

Sets the character to use in place of the actual text when gtk_entry_set_visibility() has been called to set text visibility to %FALSE. i.e. this is the character used in “password mode” to show the user how many characters have been typed. By default, GTK+ picks the best invisible char available in the current font. If you set the invisible char to 0, then the user will get no feedback at all; there will be no text on the screen as they type.

setMaxLength
void setMaxLength(int max)

Sets the maximum allowed length of the contents of the widget. If the current contents are longer than the given length, then they will be truncated to fit.

setMaxWidthChars
void setMaxWidthChars(int nChars)

Sets the desired maximum width in characters of @entry.

setOverwriteMode
void setOverwriteMode(bool overwrite)

Sets whether the text is overwritten when typing in the #GtkEntry.

setPlaceholderText
void setPlaceholderText(string text)

Sets text to be displayed in @entry when it is empty and unfocused. This can be used to give a visual hint of the expected contents of the #GtkEntry.

setProgressFraction
void setProgressFraction(double fraction)

Causes the entry’s progress indicator to “fill in” the given fraction of the bar. The fraction should be between 0.0 and 1.0, inclusive.

setProgressPulseStep
void setProgressPulseStep(double fraction)

Sets the fraction of total entry width to move the progress bouncing block for each call to gtk_entry_progress_pulse().

setStockId
void setStockId(GtkEntryIconPosition iconPos, StockID stockId)

Sets the stock id on action Since 2.16

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
setTabs
void setTabs(PgTabArray tabs)

Sets a #PangoTabArray; the tabstops in the array are applied to the entry text.

setText
void setText(string text)

Sets the text in the widget to the given value, replacing the current contents.

setVisibility
void setVisibility(bool visible)

Sets whether the contents of the entry are visible or not. When visibility is set to %FALSE, characters are displayed as the invisible char, and will also appear that way when the text in the entry widget is copied elsewhere.

setWidthChars
void setWidthChars(int nChars)

Changes the size request of the entry to be about the right size for @n_chars characters. Note that it changes the size request, the size can still be affected by how you pack the widget into containers. If @n_chars is -1, the size reverts to the default entry size.

textIndexToLayoutIndex
int textIndexToLayoutIndex(int textIndex)

Converts from a position in the entry contents (returned by gtk_entry_get_text()) to a position in the entry’s #PangoLayout (returned by gtk_entry_get_layout(), with text retrieved via pango_layout_get_text()).

unsetInvisibleChar
void unsetInvisibleChar()

Unsets the invisible char previously set with gtk_entry_set_invisible_char(). So that the default invisible char is used again.

Mixins

__anonymous
mixin EditableT!(GtkEntry)
Undocumented in source.
__anonymous
mixin CellEditableT!(GtkEntry)
Undocumented in source.

Static functions

callBackActivate
void callBackActivate(GtkEntry* entryStruct, OnActivateDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackActivateDestroy
void callBackActivateDestroy(OnActivateDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackBackspace
void callBackBackspace(GtkEntry* entryStruct, OnBackspaceDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackBackspaceDestroy
void callBackBackspaceDestroy(OnBackspaceDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCopyClipboard
void callBackCopyClipboard(GtkEntry* entryStruct, OnCopyClipboardDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCopyClipboardDestroy
void callBackCopyClipboardDestroy(OnCopyClipboardDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCutClipboard
void callBackCutClipboard(GtkEntry* entryStruct, OnCutClipboardDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCutClipboardDestroy
void callBackCutClipboardDestroy(OnCutClipboardDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDeleteFromCursor
void callBackDeleteFromCursor(GtkEntry* entryStruct, GtkDeleteType type, int count, OnDeleteFromCursorDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDeleteFromCursorDestroy
void callBackDeleteFromCursorDestroy(OnDeleteFromCursorDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconPress
void callBackIconPress(GtkEntry* entryStruct, GtkEntryIconPosition iconPos, GdkEventButton* event, OnIconPressDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconPressDestroy
void callBackIconPressDestroy(OnIconPressDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconPressGeneric
void callBackIconPressGeneric(GtkEntry* entryStruct, GtkEntryIconPosition iconPos, GdkEvent* event, OnIconPressGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconPressGenericDestroy
void callBackIconPressGenericDestroy(OnIconPressGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconRelease
void callBackIconRelease(GtkEntry* entryStruct, GtkEntryIconPosition iconPos, GdkEventButton* event, OnIconReleaseDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconReleaseDestroy
void callBackIconReleaseDestroy(OnIconReleaseDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconReleaseGeneric
void callBackIconReleaseGeneric(GtkEntry* entryStruct, GtkEntryIconPosition iconPos, GdkEvent* event, OnIconReleaseGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackIconReleaseGenericDestroy
void callBackIconReleaseGenericDestroy(OnIconReleaseGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackInsertAtCursor
void callBackInsertAtCursor(GtkEntry* entryStruct, char* str, OnInsertAtCursorDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackInsertAtCursorDestroy
void callBackInsertAtCursorDestroy(OnInsertAtCursorDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveCursor
void callBackMoveCursor(GtkEntry* entryStruct, GtkMovementStep step, int count, bool extendSelection, OnMoveCursorDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveCursorDestroy
void callBackMoveCursorDestroy(OnMoveCursorDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPasteClipboard
void callBackPasteClipboard(GtkEntry* entryStruct, OnPasteClipboardDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPasteClipboardDestroy
void callBackPasteClipboardDestroy(OnPasteClipboardDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPopulatePopup
void callBackPopulatePopup(GtkEntry* entryStruct, GtkWidget* widget, OnPopulatePopupDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPopulatePopupDestroy
void callBackPopulatePopupDestroy(OnPopulatePopupDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPreeditChanged
void callBackPreeditChanged(GtkEntry* entryStruct, char* preedit, OnPreeditChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPreeditChangedDestroy
void callBackPreeditChangedDestroy(OnPreeditChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggleOverwrite
void callBackToggleOverwrite(GtkEntry* entryStruct, OnToggleOverwriteDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggleOverwriteDestroy
void callBackToggleOverwriteDestroy(OnToggleOverwriteDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()

Variables

gtkEntry
GtkEntry* gtkEntry;

the main Gtk struct

onActivateListeners
OnActivateDelegateWrapper[] onActivateListeners;
Undocumented in source.
onBackspaceListeners
OnBackspaceDelegateWrapper[] onBackspaceListeners;
Undocumented in source.
onCopyClipboardListeners
OnCopyClipboardDelegateWrapper[] onCopyClipboardListeners;
Undocumented in source.
onCutClipboardListeners
OnCutClipboardDelegateWrapper[] onCutClipboardListeners;
Undocumented in source.
onDeleteFromCursorListeners
OnDeleteFromCursorDelegateWrapper[] onDeleteFromCursorListeners;
Undocumented in source.
onIconPressGenericListeners
OnIconPressGenericDelegateWrapper[] onIconPressGenericListeners;
Undocumented in source.
onIconPressListeners
OnIconPressDelegateWrapper[] onIconPressListeners;
Undocumented in source.
onIconReleaseGenericListeners
OnIconReleaseGenericDelegateWrapper[] onIconReleaseGenericListeners;
Undocumented in source.
onIconReleaseListeners
OnIconReleaseDelegateWrapper[] onIconReleaseListeners;
Undocumented in source.
onInsertAtCursorListeners
OnInsertAtCursorDelegateWrapper[] onInsertAtCursorListeners;
Undocumented in source.
onMoveCursorListeners
OnMoveCursorDelegateWrapper[] onMoveCursorListeners;
Undocumented in source.
onPasteClipboardListeners
OnPasteClipboardDelegateWrapper[] onPasteClipboardListeners;
Undocumented in source.
onPopulatePopupListeners
OnPopulatePopupDelegateWrapper[] onPopulatePopupListeners;
Undocumented in source.
onPreeditChangedListeners
OnPreeditChangedDelegateWrapper[] onPreeditChangedListeners;
Undocumented in source.
onToggleOverwriteListeners
OnToggleOverwriteDelegateWrapper[] onToggleOverwriteListeners;
Undocumented in source.

Inherited Members

From Widget

gtkWidget
GtkWidget* gtkWidget;

the main Gtk struct

getWidgetStruct
GtkWidget* getWidgetStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin ImplementorT!(GtkWidget)
Undocumented in source.
__anonymous
mixin BuildableT!(GtkWidget)
Undocumented in source.
getWidgetClass
GtkWidgetClass* getWidgetClass()
Undocumented in source. Be warned that the author may not have intended to support it.
getWidth
int getWidth()
getHeight
int getHeight()
setCursor
void setCursor(Cursor cursor)

Sets the cursor.

resetCursor
void resetCursor()

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

modifyFont
void modifyFont(string family, int size)

Modifies the font for this widget. This just calls modifyFont(new PgFontDescription(PgFontDescription.fromString(family ~ " " ~ size)));

onEvent
bool onEvent(GdkEvent* event)
onButtonPressEvent
bool onButtonPressEvent(GdkEventButton* event)
onButtonReleaseEvent
bool onButtonReleaseEvent(GdkEventButton* event)
onScrollEvent
bool onScrollEvent(GdkEventScroll* event)
onMotionNotifyEvent
bool onMotionNotifyEvent(GdkEventMotion* event)
onDeleteEvent
bool onDeleteEvent(GdkEventAny* event)
onDestroyEvent
bool onDestroyEvent(GdkEventAny* event)
onKeyPressEvent
bool onKeyPressEvent(GdkEventKey* event)
onKeyReleaseEvent
bool onKeyReleaseEvent(GdkEventKey* event)
onEnterNotifyEvent
bool onEnterNotifyEvent(GdkEventCrossing* event)
onLeaveNotifyEvent
bool onLeaveNotifyEvent(GdkEventCrossing* event)
onConfigureEvent
bool onConfigureEvent(GdkEventConfigure* event)
onFocusInEvent
bool onFocusInEvent(GdkEventFocus* event)
onFocusOutEvent
bool onFocusOutEvent(GdkEventFocus* event)
onMapEvent
bool onMapEvent(GdkEventAny* event)
onUnmapEvent
bool onUnmapEvent(GdkEventAny* event)
onPropertyNotifyEvent
bool onPropertyNotifyEvent(GdkEventProperty* event)
onSelectionClearEvent
bool onSelectionClearEvent(GdkEventSelection* event)
onSelectionRequestEvent
bool onSelectionRequestEvent(GdkEventSelection* event)
onSelectionNotifyEvent
bool onSelectionNotifyEvent(GdkEventSelection* event)
onProximityInEvent
bool onProximityInEvent(GdkEventProximity* event)
onProximityOutEvent
bool onProximityOutEvent(GdkEventProximity* event)
onVisibilityNotifyEvent
bool onVisibilityNotifyEvent(GdkEventVisibility* event)
onWindowStateEvent
bool onWindowStateEvent(GdkEventWindowState* event)
onDamageEvent
bool onDamageEvent(GdkEventExpose* event)
onGrabBrokenEvent
bool onGrabBrokenEvent(GdkEventGrabBroken* event)
addTickCallback
void addTickCallback(bool delegate(Widget, FrameClock) callback)

Queues an animation frame update and adds a callback to be called before each frame. Until the tick callback is removed, it will be called frequently (usually at the frame rate of the output device or as quickly as the application can be repainted, whichever is slower). For this reason, is most suitable for handling graphics that change every frame or every few frames. The tick callback does not automatically imply a relayout or repaint. If you want a repaint or relayout, and aren't changing widget properties that would trigger that (for example, changing the text of a gtk.Label), then you will have to call queueResize() or queuDrawArea() yourself.

tickCallbackListeners
bool delegate(Widget, FrameClock)[] tickCallbackListeners;
Undocumented in source.
gtkTickCallback
int gtkTickCallback(GtkWidget* widgetStruct, GdkFrameClock* frameClock, Widget _widget)
Undocumented in source. Be warned that the author may not have intended to support it.
ScopedOnDrawDelegateWrapper
class ScopedOnDrawDelegateWrapper
Undocumented in source.
scopedOnDrawListeners
ScopedOnDrawDelegateWrapper[] scopedOnDrawListeners;
Undocumented in source.
addOnDraw
gulong addOnDraw(bool delegate(Scoped!Context, Widget) dlg, ConnectFlags connectFlags)

This signal is emitted when a widget is supposed to render itself. The @widget's top left corner must be painted at the origin of the passed in context and be sized to the values returned by gtk_widget_get_allocated_width() and gtk_widget_get_allocated_height().

callBackScopedDraw
int callBackScopedDraw(GtkWidget* widgetStruct, cairo_t* cr, ScopedOnDrawDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDrawScopedDestroy
void callBackDrawScopedDestroy(ScopedOnDrawDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDrawDelegateWrapper
class OnDrawDelegateWrapper
Undocumented in source.
onDrawListeners
OnDrawDelegateWrapper[] onDrawListeners;
Undocumented in source.
addOnDraw
deprecated gulong addOnDraw(bool delegate(Context, Widget) dlg, ConnectFlags connectFlags)

This signal is emitted when a widget is supposed to render itself. The @widget's top left corner must be painted at the origin of the passed in context and be sized to the values returned by gtk_widget_get_allocated_width() and gtk_widget_get_allocated_height().

callBackDraw
int callBackDraw(GtkWidget* widgetStruct, cairo_t* cr, OnDrawDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDrawDestroy
void callBackDrawDestroy(OnDrawDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()
getDefaultDirection
GtkTextDirection getDefaultDirection()

Obtains the current default reading direction. See gtk_widget_set_default_direction().

getDefaultStyle
Style getDefaultStyle()

Returns the default style used by all widgets initially.

popCompositeChild
void popCompositeChild()

Cancels the effect of a previous call to gtk_widget_push_composite_child().

pushCompositeChild
void pushCompositeChild()

Makes all newly-created widgets as composite children until the corresponding gtk_widget_pop_composite_child() call.

setDefaultDirection
void setDefaultDirection(GtkTextDirection dir)

Sets the default reading direction for widgets where the direction has not been explicitly set by gtk_widget_set_direction().

activate
bool activate()

For widgets that can be “activated” (buttons, menu items, etc.) this function activates them. Activation is what happens when you press Enter on a widget during key navigation. If @widget isn't activatable, the function returns %FALSE.

addAccelerator
void addAccelerator(string accelSignal, AccelGroup accelGroup, uint accelKey, GdkModifierType accelMods, GtkAccelFlags accelFlags)

Installs an accelerator for this @widget in @accel_group that causes @accel_signal to be emitted if the accelerator is activated. The @accel_group needs to be added to the widget’s toplevel via gtk_window_add_accel_group(), and the signal must be of type %G_SIGNAL_ACTION. Accelerators added through this function are not user changeable during runtime. If you want to support accelerators that can be changed by the user, use gtk_accel_map_add_entry() and gtk_widget_set_accel_path() or gtk_menu_item_set_accel_path() instead.

addDeviceEvents
void addDeviceEvents(Device device, GdkEventMask events)

Adds the device events in the bitfield @events to the event mask for @widget. See gtk_widget_set_device_events() for details.

addEvents
void addEvents(int events)

Adds the events in the bitfield @events to the event mask for @widget. See gtk_widget_set_events() and the [input handling overview][event-masks] for details.

addMnemonicLabel
void addMnemonicLabel(Widget label)

Adds a widget to the list of mnemonic labels for this widget. (See gtk_widget_list_mnemonic_labels()). Note the list of mnemonic labels for the widget is cleared when the widget is destroyed, so the caller must make sure to update its internal state at this point as well, by using a connection to the #GtkWidget::destroy signal or a weak notifier.

addTickCallback
uint addTickCallback(GtkTickCallback callback, void* userData, GDestroyNotify notify)

Queues an animation frame update and adds a callback to be called before each frame. Until the tick callback is removed, it will be called frequently (usually at the frame rate of the output device or as quickly as the application can be repainted, whichever is slower). For this reason, is most suitable for handling graphics that change every frame or every few frames. The tick callback does not automatically imply a relayout or repaint. If you want a repaint or relayout, and aren’t changing widget properties that would trigger that (for example, changing the text of a #GtkLabel), then you will have to call gtk_widget_queue_resize() or gtk_widget_queue_draw_area() yourself.

canActivateAccel
bool canActivateAccel(uint signalId)

Determines whether an accelerator that activates the signal identified by @signal_id can currently be activated. This is done by emitting the #GtkWidget::can-activate-accel signal on @widget; if the signal isn’t overridden by a handler or in a derived widget, then the default check is that the widget must be sensitive, and the widget and all its ancestors mapped.

childFocus
bool childFocus(GtkDirectionType direction)

This function is used by custom widget implementations; if you're writing an app, you’d use gtk_widget_grab_focus() to move the focus to a particular widget, and gtk_container_set_focus_chain() to change the focus tab order. So you may want to investigate those functions instead.

childNotify
void childNotify(string childProperty)

Emits a #GtkWidget::child-notify signal for the [child property][child-properties] @child_property on @widget.

classPath
void classPath(uint pathLength, string path, string pathReversed)

Same as gtk_widget_path(), but always uses the name of a widget’s type, never uses a custom name set with gtk_widget_set_name().

computeExpand
bool computeExpand(GtkOrientation orientation)

Computes whether a container should give this widget extra space when possible. Containers should check this, rather than looking at gtk_widget_get_hexpand() or gtk_widget_get_vexpand().

createPangoContext
PgContext createPangoContext()

Creates a new #PangoContext with the appropriate font map, font options, font description, and base direction for drawing text for this widget. See also gtk_widget_get_pango_context().

createPangoLayout
PgLayout createPangoLayout(string text)

Creates a new #PangoLayout with the appropriate font map, font description, and base direction for drawing text for this widget.

destroy
void destroy()

Destroys a widget.

destroyed
void destroyed(Widget widgetPointer)

This function sets *@widget_pointer to %NULL if @widget_pointer != %NULL. It’s intended to be used as a callback connected to the “destroy” signal of a widget. You connect gtk_widget_destroyed() as a signal handler, and pass the address of your widget variable as user data. Then when the widget is destroyed, the variable will be set to %NULL. Useful for example to avoid multiple copies of the same dialog.

deviceIsShadowed
bool deviceIsShadowed(Device device)

Returns %TRUE if @device has been shadowed by a GTK+ device grab on another widget, so it would stop sending events to @widget. This may be used in the #GtkWidget::grab-notify signal to check for specific devices. See gtk_device_grab_add().

dragBegin
DragContext dragBegin(TargetList targets, GdkDragAction actions, int button, Event event)

This function is equivalent to gtk_drag_begin_with_coordinates(), passing -1, -1 as coordinates.

dragBeginWithCoordinates
DragContext dragBeginWithCoordinates(TargetList targets, GdkDragAction actions, int button, Event event, int x, int y)

Initiates a drag on the source side. The function only needs to be used when the application is starting drags itself, and is not needed when gtk_drag_source_set() is used.

dragCheckThreshold
bool dragCheckThreshold(int startX, int startY, int currentX, int currentY)

Checks to see if a mouse drag starting at (@start_x, @start_y) and ending at (@current_x, @current_y) has passed the GTK+ drag threshold, and thus should trigger the beginning of a drag-and-drop operation.

dragDestAddImageTargets
void dragDestAddImageTargets()

Add the image targets supported by #GtkSelectionData to the target list of the drag destination. The targets are added with @info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_dest_set_target_list().

dragDestAddTextTargets
void dragDestAddTextTargets()

Add the text targets supported by #GtkSelectionData to the target list of the drag destination. The targets are added with @info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_dest_set_target_list().

dragDestAddUriTargets
void dragDestAddUriTargets()

Add the URI targets supported by #GtkSelectionData to the target list of the drag destination. The targets are added with @info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_dest_set_target_list().

dragDestFindTarget
GdkAtom dragDestFindTarget(DragContext context, TargetList targetList)

Looks for a match between the supported targets of @context and the @dest_target_list, returning the first matching target, otherwise returning %GDK_NONE. @dest_target_list should usually be the return value from gtk_drag_dest_get_target_list(), but some widgets may have different valid targets for different parts of the widget; in that case, they will have to implement a drag_motion handler that passes the correct target list to this function.

dragDestGetTargetList
TargetList dragDestGetTargetList()

Returns the list of targets this widget can accept from drag-and-drop.

dragDestGetTrackMotion
bool dragDestGetTrackMotion()

Returns whether the widget has been configured to always emit #GtkWidget::drag-motion signals.

dragDestSet
void dragDestSet(GtkDestDefaults flags, TargetEntry[] targets, GdkDragAction actions)

Sets a widget as a potential drop destination, and adds default behaviors.

dragDestSetProxy
void dragDestSetProxy(GdkWin proxyWindow, GdkDragProtocol protocol, bool useCoordinates)

Sets this widget as a proxy for drops to another window.

dragDestSetTargetList
void dragDestSetTargetList(TargetList targetList)

Sets the target types that this widget can accept from drag-and-drop. The widget must first be made into a drag destination with gtk_drag_dest_set().

dragDestSetTrackMotion
void dragDestSetTrackMotion(bool trackMotion)

Tells the widget to emit #GtkWidget::drag-motion and #GtkWidget::drag-leave events regardless of the targets and the %GTK_DEST_DEFAULT_MOTION flag.

dragDestUnset
void dragDestUnset()

Clears information about a drop destination set with gtk_drag_dest_set(). The widget will no longer receive notification of drags.

dragGetData
void dragGetData(DragContext context, GdkAtom target, uint time)

Gets the data associated with a drag. When the data is received or the retrieval fails, GTK+ will emit a #GtkWidget::drag-data-received signal. Failure of the retrieval is indicated by the length field of the @selection_data signal parameter being negative. However, when gtk_drag_get_data() is called implicitely because the %GTK_DEST_DEFAULT_DROP was set, then the widget will not receive notification of failed drops.

dragHighlight
void dragHighlight()

Highlights a widget as a currently hovered drop target. To end the highlight, call gtk_drag_unhighlight(). GTK+ calls this automatically if %GTK_DEST_DEFAULT_HIGHLIGHT is set.

dragSourceAddImageTargets
void dragSourceAddImageTargets()

Add the writable image targets supported by #GtkSelectionData to the target list of the drag source. The targets are added with @info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_source_set_target_list().

dragSourceAddTextTargets
void dragSourceAddTextTargets()

Add the text targets supported by #GtkSelectionData to the target list of the drag source. The targets are added with @info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_source_set_target_list().

dragSourceAddUriTargets
void dragSourceAddUriTargets()

Add the URI targets supported by #GtkSelectionData to the target list of the drag source. The targets are added with @info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_source_set_target_list().

dragSourceGetTargetList
TargetList dragSourceGetTargetList()

Gets the list of targets this widget can provide for drag-and-drop.

dragSourceSet
void dragSourceSet(GdkModifierType startButtonMask, TargetEntry[] targets, GdkDragAction actions)

Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget. The widget must have a window.

dragSourceSetIconGicon
void dragSourceSetIconGicon(IconIF icon)

Sets the icon that will be used for drags from a particular source to @icon. See the docs for #GtkIconTheme for more details.

dragSourceSetIconName
void dragSourceSetIconName(string iconName)

Sets the icon that will be used for drags from a particular source to a themed icon. See the docs for #GtkIconTheme for more details.

dragSourceSetIconPixbuf
void dragSourceSetIconPixbuf(Pixbuf pixbuf)

Sets the icon that will be used for drags from a particular widget from a #GdkPixbuf. GTK+ retains a reference for @pixbuf and will release it when it is no longer needed.

dragSourceSetIconStock
void dragSourceSetIconStock(string stockId)

Sets the icon that will be used for drags from a particular source to a stock icon.

dragSourceSetTargetList
void dragSourceSetTargetList(TargetList targetList)

Changes the target types that this widget offers for drag-and-drop. The widget must first be made into a drag source with gtk_drag_source_set().

dragSourceUnset
void dragSourceUnset()

Undoes the effects of gtk_drag_source_set().

dragUnhighlight
void dragUnhighlight()

Removes a highlight set by gtk_drag_highlight() from a widget.

draw
void draw(Context cr)

Draws @widget to @cr. The top left corner of the widget will be drawn to the currently set origin point of @cr.

ensureStyle
void ensureStyle()

Ensures that @widget has a style (@widget->style).

errorBell
void errorBell()

Notifies the user about an input-related error on this widget. If the #GtkSettings:gtk-error-bell setting is %TRUE, it calls gdk_window_beep(), otherwise it does nothing.

event
bool event(Event event)

Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don’t use this function; instead, use gtk_main_do_event() so the event will behave as if it were in the event queue. Don’t synthesize expose events; instead, use gdk_window_invalidate_rect() to invalidate a region of the window.

freezeChildNotify
void freezeChildNotify()

Stops emission of #GtkWidget::child-notify signals on @widget. The signals are queued until gtk_widget_thaw_child_notify() is called on @widget.

getAccessible
ObjectAtk getAccessible()

Returns the accessible object that describes the widget to an assistive technology.

getActionGroup
ActionGroupIF getActionGroup(string prefix)

Retrieves the #GActionGroup that was registered using @prefix. The resulting #GActionGroup may have been registered to @widget or any #GtkWidget in its ancestry.

getAllocatedBaseline
int getAllocatedBaseline()

Returns the baseline that has currently been allocated to @widget. This function is intended to be used when implementing handlers for the #GtkWidget::draw function, and when allocating child widgets in #GtkWidget::size_allocate.

getAllocatedHeight
int getAllocatedHeight()

Returns the height that has currently been allocated to @widget. This function is intended to be used when implementing handlers for the #GtkWidget::draw function.

getAllocatedSize
void getAllocatedSize(GtkAllocation allocation, int baseline)

Retrieves the widget’s allocated size.

getAllocatedWidth
int getAllocatedWidth()

Returns the width that has currently been allocated to @widget. This function is intended to be used when implementing handlers for the #GtkWidget::draw function.

getAllocation
void getAllocation(GtkAllocation allocation)

Retrieves the widget’s allocation.

getAncestor
Widget getAncestor(GType widgetType)

Gets the first ancestor of @widget with type @widget_type. For example, gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets the first #GtkBox that’s an ancestor of @widget. No reference will be added to the returned widget; it should not be unreferenced. See note about checking for a toplevel #GtkWindow in the docs for gtk_widget_get_toplevel().

getAppPaintable
bool getAppPaintable()

Determines whether the application intends to draw on the widget in an #GtkWidget::draw handler.

getCanDefault
bool getCanDefault()

Determines whether @widget can be a default widget. See gtk_widget_set_can_default().

getCanFocus
bool getCanFocus()

Determines whether @widget can own the input focus. See gtk_widget_set_can_focus().

getChildRequisition
void getChildRequisition(Requisition requisition)

This function is only for use in widget implementations. Obtains @widget->requisition, unless someone has forced a particular geometry on the widget (e.g. with gtk_widget_set_size_request()), in which case it returns that geometry instead of the widget's requisition.

getChildVisible
bool getChildVisible()

Gets the value set with gtk_widget_set_child_visible(). If you feel a need to use this function, your code probably needs reorganization.

getClip
void getClip(GtkAllocation clip)

Retrieves the widget’s clip area.

getClipboard
Clipboard getClipboard(GdkAtom selection)

Returns the clipboard object for the given selection to be used with @widget. @widget must have a #GdkDisplay associated with it, so must be attached to a toplevel window.

getCompositeName
string getCompositeName()

Obtains the composite name of a widget.

getDeviceEnabled
bool getDeviceEnabled(Device device)

Returns whether @device can interact with @widget and its children. See gtk_widget_set_device_enabled().

getDeviceEvents
GdkEventMask getDeviceEvents(Device device)

Returns the events mask for the widget corresponding to an specific device. These are the events that the widget will receive when @device operates on it.

getDirection
GtkTextDirection getDirection()

Gets the reading direction for a particular widget. See gtk_widget_set_direction().

getDisplay
Display getDisplay()

Get the #GdkDisplay for the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a #GtkWindow at the top.

getDoubleBuffered
bool getDoubleBuffered()

Determines whether the widget is double buffered.

getEvents
int getEvents()

Returns the event mask (see #GdkEventMask) for the widget. These are the events that the widget will receive.

getFocusOnClick
bool getFocusOnClick()

Returns whether the widget should grab focus when it is clicked with the mouse. See gtk_widget_set_focus_on_click().

getFontMap
PgFontMap getFontMap()

Gets the font map that has been set with gtk_widget_set_font_map().

getFontOptions
FontOption getFontOptions()

Returns the #cairo_font_options_t used for Pango rendering. When not set, the defaults font options for the #GdkScreen will be used.

getFrameClock
FrameClock getFrameClock()

Obtains the frame clock for a widget. The frame clock is a global “ticker” that can be used to drive animations and repaints. The most common reason to get the frame clock is to call gdk_frame_clock_get_frame_time(), in order to get a time to use for animating. For example you might record the start of the animation with an initial value from gdk_frame_clock_get_frame_time(), and then update the animation by calling gdk_frame_clock_get_frame_time() again during each repaint.

getHalign
GtkAlign getHalign()

Gets the value of the #GtkWidget:halign property.

getHasTooltip
bool getHasTooltip()

Returns the current value of the has-tooltip property. See #GtkWidget:has-tooltip for more information.

getHasWindow
bool getHasWindow()

Determines whether @widget has a #GdkWindow of its own. See gtk_widget_set_has_window().

getHexpand
bool getHexpand()

Gets whether the widget would like any available extra horizontal space. When a user resizes a #GtkWindow, widgets with expand=TRUE generally receive the extra space. For example, a list or scrollable area or document in your window would often be set to expand.

getHexpandSet
bool getHexpandSet()

Gets whether gtk_widget_set_hexpand() has been used to explicitly set the expand flag on this widget.

getMapped
bool getMapped()

Whether the widget is mapped.

getMarginBottom
int getMarginBottom()

Gets the value of the #GtkWidget:margin-bottom property.

getMarginEnd
int getMarginEnd()

Gets the value of the #GtkWidget:margin-end property.

getMarginLeft
int getMarginLeft()

Gets the value of the #GtkWidget:margin-left property.

getMarginRight
int getMarginRight()

Gets the value of the #GtkWidget:margin-right property.

getMarginStart
int getMarginStart()

Gets the value of the #GtkWidget:margin-start property.

getMarginTop
int getMarginTop()

Gets the value of the #GtkWidget:margin-top property.

getModifierMask
GdkModifierType getModifierMask(GdkModifierIntent intent)

Returns the modifier mask the @widget’s windowing system backend uses for a particular purpose.

getModifierStyle
RcStyle getModifierStyle()

Returns the current modifier style for the widget. (As set by gtk_widget_modify_style().) If no style has previously set, a new #GtkRcStyle will be created with all values unset, and set as the modifier style for the widget. If you make changes to this rc style, you must call gtk_widget_modify_style(), passing in the returned rc style, to make sure that your changes take effect.

getName
string getName()

Retrieves the name of a widget. See gtk_widget_set_name() for the significance of widget names.

getNoShowAll
bool getNoShowAll()

Returns the current value of the #GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() will affect this widget.

getOpacity
double getOpacity()

Fetches the requested opacity for this widget. See gtk_widget_set_opacity().

getPangoContext
PgContext getPangoContext()

Gets a #PangoContext with the appropriate font map, font description, and base direction for this widget. Unlike the context returned by gtk_widget_create_pango_context(), this context is owned by the widget (it can be used until the screen for the widget changes or the widget is removed from its toplevel), and will be updated to match any changes to the widget’s attributes. This can be tracked by using the #GtkWidget::screen-changed signal on the widget.

getParent
Widget getParent()

Returns the parent container of @widget.

getParentWindow
GdkWin getParentWindow()

Gets @widget’s parent window, or %NULL if it does not have one.

getPath
WidgetPath getPath()

Returns the #GtkWidgetPath representing @widget, if the widget is not connected to a toplevel widget, a partial path will be created.

getPointer
void getPointer(int x, int y)

Obtains the location of the mouse pointer in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as @widget->window coordinates for widgets that return %TRUE for gtk_widget_get_has_window(); and are relative to @widget->allocation.x, @widget->allocation.y otherwise.

getPreferredHeight
void getPreferredHeight(int minimumHeight, int naturalHeight)

Retrieves a widget’s initial minimum and natural height.

getPreferredHeightAndBaselineForWidth
void getPreferredHeightAndBaselineForWidth(int width, int minimumHeight, int naturalHeight, int minimumBaseline, int naturalBaseline)

Retrieves a widget’s minimum and natural height and the corresponding baselines if it would be given the specified @width, or the default height if @width is -1. The baselines may be -1 which means that no baseline is requested for this widget.

getPreferredHeightForWidth
void getPreferredHeightForWidth(int width, int minimumHeight, int naturalHeight)

Retrieves a widget’s minimum and natural height if it would be given the specified @width.

getPreferredSize
void getPreferredSize(Requisition minimumSize, Requisition naturalSize)

Retrieves the minimum and natural size of a widget, taking into account the widget’s preference for height-for-width management.

getPreferredWidth
void getPreferredWidth(int minimumWidth, int naturalWidth)

Retrieves a widget’s initial minimum and natural width.

getPreferredWidthForHeight
void getPreferredWidthForHeight(int height, int minimumWidth, int naturalWidth)

Retrieves a widget’s minimum and natural width if it would be given the specified @height.

getRealized
bool getRealized()

Determines whether @widget is realized.

getReceivesDefault
bool getReceivesDefault()

Determines whether @widget is always treated as the default widget within its toplevel when it has the focus, even if another widget is the default.

getRequestMode
GtkSizeRequestMode getRequestMode()

Gets whether the widget prefers a height-for-width layout or a width-for-height layout.

getRequisition
void getRequisition(Requisition requisition)

Retrieves the widget’s requisition.

getRootWindow
GdkWin getRootWindow()

Get the root window where this widget is located. This function can only be called after the widget has been added to a widget hierarchy with #GtkWindow at the top.

getScaleFactor
int getScaleFactor()

Retrieves the internal scale factor that maps from window coordinates to the actual device pixels. On traditional systems this is 1, on high density outputs, it can be a higher value (typically 2).

getScreen
Screen getScreen()

Get the #GdkScreen from the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a #GtkWindow at the top.

getSensitive
bool getSensitive()

Returns the widget’s sensitivity (in the sense of returning the value that has been set using gtk_widget_set_sensitive()).

getSettings
Settings getSettings()

Gets the settings object holding the settings used for this widget.

getSizeRequest
void getSizeRequest(int width, int height)

Gets the size request that was explicitly set for the widget using gtk_widget_set_size_request(). A value of -1 stored in @width or @height indicates that that dimension has not been set explicitly and the natural requisition of the widget will be used instead. See gtk_widget_set_size_request(). To get the size a widget will actually request, call gtk_widget_get_preferred_size() instead of this function.

getStateFlags
GtkStateFlags getStateFlags()

Returns the widget state as a flag set. It is worth mentioning that the effective %GTK_STATE_FLAG_INSENSITIVE state will be returned, that is, also based on parent insensitivity, even if @widget itself is sensitive.

getStyle
Style getStyle()

Simply an accessor function that returns @widget->style.

getStyleContext
StyleContext getStyleContext()

Returns the style context associated to @widget. The returned object is guaranteed to be the same for the lifetime of @widget.

getSupportMultidevice
bool getSupportMultidevice()

Returns %TRUE if @widget is multiple pointer aware. See gtk_widget_set_support_multidevice() for more information.

getTemplateChild
ObjectG getTemplateChild(GType widgetType, string name)

Fetch an object build from the template XML for @widget_type in this @widget instance.

getTooltipMarkup
string getTooltipMarkup()

Gets the contents of the tooltip for @widget.

getTooltipText
string getTooltipText()

Gets the contents of the tooltip for @widget.

getTooltipWindow
Window getTooltipWindow()

Returns the #GtkWindow of the current tooltip. This can be the GtkWindow created by default, or the custom tooltip window set using gtk_widget_set_tooltip_window().

getToplevel
Widget getToplevel()

This function returns the topmost widget in the container hierarchy @widget is a part of. If @widget has no parent widgets, it will be returned as the topmost widget. No reference will be added to the returned widget; it should not be unreferenced.

getValign
GtkAlign getValign()

Gets the value of the #GtkWidget:valign property.

getValignWithBaseline
GtkAlign getValignWithBaseline()

Gets the value of the #GtkWidget:valign property, including %GTK_ALIGN_BASELINE.

getVexpand
bool getVexpand()

Gets whether the widget would like any available extra vertical space.

getVexpandSet
bool getVexpandSet()

Gets whether gtk_widget_set_vexpand() has been used to explicitly set the expand flag on this widget.

getVisible
bool getVisible()

Determines whether the widget is visible. If you want to take into account whether the widget’s parent is also marked as visible, use gtk_widget_is_visible() instead.

getVisual
Visual getVisual()

Gets the visual that will be used to render @widget.

getWindow
GdkWin getWindow()

Returns the widget’s window if it is realized, %NULL otherwise

grabAdd
void grabAdd()

Makes @widget the current grabbed widget.

grabDefault
void grabDefault()

Causes @widget to become the default widget. @widget must be able to be a default widget; typically you would ensure this yourself by calling gtk_widget_set_can_default() with a %TRUE value. The default widget is activated when the user presses Enter in a window. Default widgets must be activatable, that is, gtk_widget_activate() should affect them. Note that #GtkEntry widgets require the “activates-default” property set to %TRUE before they activate the default widget when Enter is pressed and the #GtkEntry is focused.

grabFocus
void grabFocus()

Causes @widget to have the keyboard focus for the #GtkWindow it's inside. @widget must be a focusable widget, such as a #GtkEntry; something like #GtkFrame won’t work.

grabRemove
void grabRemove()

Removes the grab from the given widget.

hasDefault
bool hasDefault()

Determines whether @widget is the current default widget within its toplevel. See gtk_widget_set_can_default().

hasFocus
bool hasFocus()

Determines if the widget has the global input focus. See gtk_widget_is_focus() for the difference between having the global input focus, and only having the focus within a toplevel.

hasGrab
bool hasGrab()

Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse).

hasRcStyle
bool hasRcStyle()

Determines if the widget style has been looked up through the rc mechanism.

hasScreen
bool hasScreen()

Checks whether there is a #GdkScreen is associated with this widget. All toplevel widgets have an associated screen, and all widgets added into a hierarchy with a toplevel window at the top.

hasVisibleFocus
bool hasVisibleFocus()

Determines if the widget should show a visible indication that it has the global input focus. This is a convenience function for use in ::draw handlers that takes into account whether focus indication should currently be shown in the toplevel window of @widget. See gtk_window_get_focus_visible() for more information about focus indication.

hide
void hide()

Reverses the effects of gtk_widget_show(), causing the widget to be hidden (invisible to the user).

hideOnDelete
bool hideOnDelete()

Utility function; intended to be connected to the #GtkWidget::delete-event signal on a #GtkWindow. The function calls gtk_widget_hide() on its argument, then returns %TRUE. If connected to ::delete-event, the result is that clicking the close button for a window (on the window frame, top right corner usually) will hide but not destroy the window. By default, GTK+ destroys windows when ::delete-event is received.

inDestruction
bool inDestruction()

Returns whether the widget is currently being destroyed. This information can sometimes be used to avoid doing unnecessary work.

initTemplate
void initTemplate()

Creates and initializes child widgets defined in templates. This function must be called in the instance initializer for any class which assigned itself a template using gtk_widget_class_set_template()

inputShapeCombineRegion
void inputShapeCombineRegion(Region region)

Sets an input shape for this widget’s GDK window. This allows for windows which react to mouse click in a nonrectangular region, see gdk_window_input_shape_combine_region() for more information.

insertActionGroup
void insertActionGroup(string name, ActionGroupIF group)

Inserts @group into @widget. Children of @widget that implement #GtkActionable can then be associated with actions in @group by setting their “action-name” to @prefix.action-name.

intersect
bool intersect(GdkRectangle* area, GdkRectangle intersection)

Computes the intersection of a @widget’s area and @area, storing the intersection in @intersection, and returns %TRUE if there was an intersection. @intersection may be %NULL if you’re only interested in whether there was an intersection.

isAncestor
bool isAncestor(Widget ancestor)

Determines whether @widget is somewhere inside @ancestor, possibly with intermediate containers.

isComposited
bool isComposited()

Whether @widget can rely on having its alpha channel drawn correctly. On X11 this function returns whether a compositing manager is running for @widget’s screen.

isDrawable
bool isDrawable()

Determines whether @widget can be drawn to. A widget can be drawn to if it is mapped and visible.

isFocus
bool isFocus()

Determines if the widget is the focus widget within its toplevel. (This does not mean that the #GtkWidget:has-focus property is necessarily set; #GtkWidget:has-focus will only be set if the toplevel widget additionally has the global input focus.)

isSensitive
bool isSensitive()

Returns the widget’s effective sensitivity, which means it is sensitive itself and also its parent widget is sensitive

isToplevel
bool isToplevel()

Determines whether @widget is a toplevel widget.

isVisible
bool isVisible()

Determines whether the widget and all its parents are marked as visible.

keynavFailed
bool keynavFailed(GtkDirectionType direction)

This function should be called whenever keyboard navigation within a single widget hits a boundary. The function emits the #GtkWidget::keynav-failed signal on the widget and its return value should be interpreted in a way similar to the return value of gtk_widget_child_focus():

listAccelClosures
ListG listAccelClosures()

Lists the closures used by @widget for accelerator group connections with gtk_accel_group_connect_by_path() or gtk_accel_group_connect(). The closures can be used to monitor accelerator changes on @widget, by connecting to the @GtkAccelGroup::accel-changed signal of the #GtkAccelGroup of a closure which can be found out with gtk_accel_group_from_accel_closure().

listActionPrefixes
string[] listActionPrefixes()

Retrieves a %NULL-terminated array of strings containing the prefixes of #GActionGroup's available to @widget.

listMnemonicLabels
ListG listMnemonicLabels()

Returns a newly allocated list of the widgets, normally labels, for which this widget is the target of a mnemonic (see for example, gtk_label_set_mnemonic_widget()).

map
void map()

This function is only for use in widget implementations. Causes a widget to be mapped if it isn’t already.

mnemonicActivate
bool mnemonicActivate(bool groupCycling)

Emits the #GtkWidget::mnemonic-activate signal.

modifyBase
void modifyBase(GtkStateType state, Color color)

Sets the base color for a widget in a particular state. All other style values are left untouched. The base color is the background color used along with the text color (see gtk_widget_modify_text()) for widgets such as #GtkEntry and #GtkTextView. See also gtk_widget_modify_style().

modifyBg
void modifyBg(GtkStateType state, Color color)

Sets the background color for a widget in a particular state.

modifyCursor
void modifyCursor(Color primary, Color secondary)

Sets the cursor color to use in a widget, overriding the #GtkWidget cursor-color and secondary-cursor-color style properties.

modifyFg
void modifyFg(GtkStateType state, Color color)

Sets the foreground color for a widget in a particular state.

modifyFont
void modifyFont(PgFontDescription fontDesc)

Sets the font to use for a widget.

modifyStyle
void modifyStyle(RcStyle style)

Modifies style values on the widget.

modifyText
void modifyText(GtkStateType state, Color color)

Sets the text color for a widget in a particular state.

overrideBackgroundColor
void overrideBackgroundColor(GtkStateFlags state, RGBA color)

Sets the background color to use for a widget.

overrideColor
void overrideColor(GtkStateFlags state, RGBA color)

Sets the color to use for a widget.

overrideCursor
void overrideCursor(RGBA cursor, RGBA secondaryCursor)

Sets the cursor color to use in a widget, overriding the cursor-color and secondary-cursor-color style properties. All other style values are left untouched. See also gtk_widget_modify_style().

overrideFont
void overrideFont(PgFontDescription fontDesc)

Sets the font to use for a widget. All other style values are left untouched. See gtk_widget_override_color().

overrideSymbolicColor
void overrideSymbolicColor(string name, RGBA color)

Sets a symbolic color for a widget.

path
void path(uint pathLength, string path, string pathReversed)

Obtains the full path to @widget. The path is simply the name of a widget and all its parents in the container hierarchy, separated by periods. The name of a widget comes from gtk_widget_get_name(). Paths are used to apply styles to a widget in gtkrc configuration files. Widget names are the type of the widget by default (e.g. “GtkButton”) or can be set to an application-specific value with gtk_widget_set_name(). By setting the name of a widget, you allow users or theme authors to apply styles to that specific widget in their gtkrc file. @path_reversed_p fills in the path in reverse order, i.e. starting with @widget’s name instead of starting with the name of @widget’s outermost ancestor.

queueAllocate
void queueAllocate()

This function is only for use in widget implementations.

queueComputeExpand
void queueComputeExpand()

Mark @widget as needing to recompute its expand flags. Call this function when setting legacy expand child properties on the child of a container.

queueDraw
void queueDraw()

Equivalent to calling gtk_widget_queue_draw_area() for the entire area of a widget.

queueDrawArea
void queueDrawArea(int x, int y, int width, int height)

Convenience function that calls gtk_widget_queue_draw_region() on the region created from the given coordinates.

queueDrawRegion
void queueDrawRegion(Region region)

Invalidates the area of @widget defined by @region by calling gdk_window_invalidate_region() on the widget’s window and all its child windows. Once the main loop becomes idle (after the current batch of events has been processed, roughly), the window will receive expose events for the union of all regions that have been invalidated.

queueResize
void queueResize()

This function is only for use in widget implementations. Flags a widget to have its size renegotiated; should be called when a widget for some reason has a new size request. For example, when you change the text in a #GtkLabel, #GtkLabel queues a resize to ensure there’s enough space for the new text.

queueResizeNoRedraw
void queueResizeNoRedraw()

This function works like gtk_widget_queue_resize(), except that the widget is not invalidated.

realize
void realize()

Creates the GDK (windowing system) resources associated with a widget. For example, @widget->window will be created when a widget is realized. Normally realization happens implicitly; if you show a widget and all its parent containers, then the widget will be realized and mapped automatically.

regionIntersect
Region regionIntersect(Region region)

Computes the intersection of a @widget’s area and @region, returning the intersection. The result may be empty, use cairo_region_is_empty() to check.

registerWindow
void registerWindow(GdkWin window)

Registers a #GdkWindow with the widget and sets it up so that the widget receives events for it. Call gtk_widget_unregister_window() when destroying the window.

removeAccelerator
bool removeAccelerator(AccelGroup accelGroup, uint accelKey, GdkModifierType accelMods)

Removes an accelerator from @widget, previously installed with gtk_widget_add_accelerator().

removeMnemonicLabel
void removeMnemonicLabel(Widget label)

Removes a widget from the list of mnemonic labels for this widget. (See gtk_widget_list_mnemonic_labels()). The widget must have previously been added to the list with gtk_widget_add_mnemonic_label().

removeTickCallback
void removeTickCallback(uint id)

Removes a tick callback previously registered with gtk_widget_add_tick_callback().

renderIcon
Pixbuf renderIcon(string stockId, GtkIconSize size, string detail)

A convenience function that uses the theme settings for @widget to look up @stock_id and render it to a pixbuf. @stock_id should be a stock icon ID such as #GTK_STOCK_OPEN or #GTK_STOCK_OK. @size should be a size such as #GTK_ICON_SIZE_MENU. @detail should be a string that identifies the widget or code doing the rendering, so that theme engines can special-case rendering for that widget or code.

renderIconPixbuf
Pixbuf renderIconPixbuf(string stockId, GtkIconSize size)

A convenience function that uses the theme engine and style settings for @widget to look up @stock_id and render it to a pixbuf. @stock_id should be a stock icon ID such as #GTK_STOCK_OPEN or #GTK_STOCK_OK. @size should be a size such as #GTK_ICON_SIZE_MENU.

reparent
void reparent(Widget newParent)

Moves a widget from one #GtkContainer to another, handling reference count issues to avoid destroying the widget.

resetRcStyles
void resetRcStyles()

Reset the styles of @widget and all descendents, so when they are looked up again, they get the correct values for the currently loaded RC file settings.

resetStyle
void resetStyle()

Updates the style context of @widget and all descendants by updating its widget path. #GtkContainers may want to use this on a child when reordering it in a way that a different style might apply to it. See also gtk_container_get_path_for_child().

sendExpose
int sendExpose(Event event)

Very rarely-used function. This function is used to emit an expose event on a widget. This function is not normally used directly. The only time it is used is when propagating an expose event to a windowless child widget (gtk_widget_get_has_window() is %FALSE), and that is normally done using gtk_container_propagate_draw().

sendFocusChange
bool sendFocusChange(Event event)

Sends the focus change @event to @widget

setAccelPath
void setAccelPath(string accelPath, AccelGroup accelGroup)

Given an accelerator group, @accel_group, and an accelerator path, @accel_path, sets up an accelerator in @accel_group so whenever the key binding that is defined for @accel_path is pressed, @widget will be activated. This removes any accelerators (for any accelerator group) installed by previous calls to gtk_widget_set_accel_path(). Associating accelerators with paths allows them to be modified by the user and the modifications to be saved for future use. (See gtk_accel_map_save().)

setAllocation
void setAllocation(GtkAllocation* allocation)

Sets the widget’s allocation. This should not be used directly, but from within a widget’s size_allocate method.

setAppPaintable
void setAppPaintable(bool appPaintable)

Sets whether the application intends to draw on the widget in an #GtkWidget::draw handler.

setCanDefault
void setCanDefault(bool canDefault)

Specifies whether @widget can be a default widget. See gtk_widget_grab_default() for details about the meaning of “default”.

setCanFocus
void setCanFocus(bool canFocus)

Specifies whether @widget can own the input focus. See gtk_widget_grab_focus() for actually setting the input focus on a widget.

setChildVisible
void setChildVisible(bool isVisible)

Sets whether @widget should be mapped along with its when its parent is mapped and @widget has been shown with gtk_widget_show().

setClip
void setClip(GtkAllocation* clip)

Sets the widget’s clip. This must not be used directly, but from within a widget’s size_allocate method. It must be called after gtk_widget_set_allocation() (or after chaining up to the parent class), because that function resets the clip.

setCompositeName
void setCompositeName(string name)

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

setDeviceEnabled
void setDeviceEnabled(Device device, bool enabled)

Enables or disables a #GdkDevice to interact with @widget and all its children.

setDeviceEvents
void setDeviceEvents(Device device, GdkEventMask events)

Sets the device event mask (see #GdkEventMask) for a widget. The event mask determines which events a widget will receive from @device. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt a widget’s functionality, so be careful. This function must be called while a widget is unrealized. Consider gtk_widget_add_device_events() for widgets that are already realized, or if you want to preserve the existing event mask. This function can’t be used with windowless widgets (which return %FALSE from gtk_widget_get_has_window()); to get events on those widgets, place them inside a #GtkEventBox and receive events on the event box.

setDirection
void setDirection(GtkTextDirection dir)

Sets the reading direction on a particular widget. This direction controls the primary direction for widgets containing text, and also the direction in which the children of a container are packed. The ability to set the direction is present in order so that correct localization into languages with right-to-left reading directions can be done. Generally, applications will let the default reading direction present, except for containers where the containers are arranged in an order that is explicitly visual rather than logical (such as buttons for text justification).

setDoubleBuffered
void setDoubleBuffered(bool doubleBuffered)

Widgets are double buffered by default; you can use this function to turn off the buffering. “Double buffered” simply means that gdk_window_begin_draw_frame() and gdk_window_end_draw_frame() are called automatically around expose events sent to the widget. gdk_window_begin_draw_frame() diverts all drawing to a widget's window to an offscreen buffer, and gdk_window_end_draw_frame() draws the buffer to the screen. The result is that users see the window update in one smooth step, and don’t see individual graphics primitives being rendered.

setEvents
void setEvents(int events)

Sets the event mask (see #GdkEventMask) for a widget. The event mask determines which events a widget will receive. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt a widget’s functionality, so be careful. This function must be called while a widget is unrealized. Consider gtk_widget_add_events() for widgets that are already realized, or if you want to preserve the existing event mask. This function can’t be used with widgets that have no window. (See gtk_widget_get_has_window()). To get events on those widgets, place them inside a #GtkEventBox and receive events on the event box.

setFocusOnClick
void setFocusOnClick(bool focusOnClick)

Sets whether the widget should grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.

setFontMap
void setFontMap(PgFontMap fontMap)

Sets the font map to use for Pango rendering. When not set, the widget will inherit the font map from its parent.

setFontOptions
void setFontOptions(FontOption options)

Sets the #cairo_font_options_t used for Pango rendering in this widget. When not set, the default font options for the #GdkScreen will be used.

setHalign
void setHalign(GtkAlign alig)

Sets the horizontal alignment of @widget. See the #GtkWidget:halign property.

setHasTooltip
void setHasTooltip(bool hasTooltip)

Sets the has-tooltip property on @widget to @has_tooltip. See #GtkWidget:has-tooltip for more information.

setHasWindow
void setHasWindow(bool hasWindow)

Specifies whether @widget has a #GdkWindow of its own. Note that all realized widgets have a non-%NULL “window” pointer (gtk_widget_get_window() never returns a %NULL window when a widget is realized), but for many of them it’s actually the #GdkWindow of one of its parent widgets. Widgets that do not create a %window for themselves in #GtkWidget::realize must announce this by calling this function with @has_window = %FALSE.

setHexpand
void setHexpand(bool expand)

Sets whether the widget would like any available extra horizontal space. When a user resizes a #GtkWindow, widgets with expand=TRUE generally receive the extra space. For example, a list or scrollable area or document in your window would often be set to expand.

setHexpandSet
void setHexpandSet(bool set)

Sets whether the hexpand flag (see gtk_widget_get_hexpand()) will be used.

setMapped
void setMapped(bool mapped)

Marks the widget as being mapped.

setMarginBottom
void setMarginBottom(int margin)

Sets the bottom margin of @widget. See the #GtkWidget:margin-bottom property.

setMarginEnd
void setMarginEnd(int margin)

Sets the end margin of @widget. See the #GtkWidget:margin-end property.

setMarginLeft
void setMarginLeft(int margin)

Sets the left margin of @widget. See the #GtkWidget:margin-left property.

setMarginRight
void setMarginRight(int margin)

Sets the right margin of @widget. See the #GtkWidget:margin-right property.

setMarginStart
void setMarginStart(int margin)

Sets the start margin of @widget. See the #GtkWidget:margin-start property.

setMarginTop
void setMarginTop(int margin)

Sets the top margin of @widget. See the #GtkWidget:margin-top property.

setName
void setName(string name)

Widgets can be named, which allows you to refer to them from a CSS file. You can apply a style to widgets with a particular name in the CSS file. See the documentation for the CSS syntax (on the same page as the docs for #GtkStyleContext).

setNoShowAll
void setNoShowAll(bool noShowAll)

Sets the #GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() will affect this widget.

setOpacity
void setOpacity(double opacity)

Request the @widget to be rendered partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Opacity values are clamped to the [0,1] range.). This works on both toplevel widget, and child widgets, although there are some limitations:

setParent
void setParent(Widget parent)

This function is useful only when implementing subclasses of #GtkContainer. Sets the container as the parent of @widget, and takes care of some details such as updating the state and style of the child to reflect its new location. The opposite function is gtk_widget_unparent().

setParentWindow
void setParentWindow(GdkWin parentWindow)

Sets a non default parent window for @widget.

setRealized
void setRealized(bool realized)

Marks the widget as being realized. This function must only be called after all #GdkWindows for the @widget have been created and registered.

setReceivesDefault
void setReceivesDefault(bool receivesDefault)

Specifies whether @widget will be treated as the default widget within its toplevel when it has the focus, even if another widget is the default.

setRedrawOnAllocate
void setRedrawOnAllocate(bool redrawOnAllocate)

Sets whether the entire widget is queued for drawing when its size allocation changes. By default, this setting is %TRUE and the entire widget is redrawn on every size change. If your widget leaves the upper left unchanged when made bigger, turning this setting off will improve performance.

setSensitive
void setSensitive(bool sensitive)

Sets the sensitivity of a widget. A widget is sensitive if the user can interact with it. Insensitive widgets are “grayed out” and the user can’t interact with them. Insensitive widgets are known as “inactive”, “disabled”, or “ghosted” in some other toolkits.

setSizeRequest
void setSizeRequest(int width, int height)

Sets the minimum size of a widget; that is, the widget’s size request will be at least @width by @height. You can use this function to force a widget to be larger than it normally would be.

setStateFlags
void setStateFlags(GtkStateFlags flags, bool clear)

This function is for use in widget implementations. Turns on flag values in the current widget state (insensitive, prelighted, etc.).

setStyle
void setStyle(Style style)

Used to set the #GtkStyle for a widget (@widget->style). Since GTK 3, this function does nothing, the passed in style is ignored.

setSupportMultidevice
void setSupportMultidevice(bool supportMultidevice)

Enables or disables multiple pointer awareness. If this setting is %TRUE, @widget will start receiving multiple, per device enter/leave events. Note that if custom #GdkWindows are created in #GtkWidget::realize, gdk_window_set_support_multidevice() will have to be called manually on them.

setTooltipMarkup
void setTooltipMarkup(string markup)

Sets @markup as the contents of the tooltip, which is marked up with the [Pango text markup language]PangoMarkupFormat.

setTooltipText
void setTooltipText(string text)

Sets @text as the contents of the tooltip. This function will take care of setting #GtkWidget:has-tooltip to %TRUE and of the default handler for the #GtkWidget::query-tooltip signal.

setTooltipWindow
void setTooltipWindow(Window customWindow)

Replaces the default window used for displaying tooltips with @custom_window. GTK+ will take care of showing and hiding @custom_window at the right moment, to behave likewise as the default tooltip window. If @custom_window is %NULL, the default tooltip window will be used.

setValign
void setValign(GtkAlign alig)

Sets the vertical alignment of @widget. See the #GtkWidget:valign property.

setVexpand
void setVexpand(bool expand)

Sets whether the widget would like any available extra vertical space.

setVexpandSet
void setVexpandSet(bool set)

Sets whether the vexpand flag (see gtk_widget_get_vexpand()) will be used.

setVisible
void setVisible(bool visible)

Sets the visibility state of @widget. Note that setting this to %TRUE doesn’t mean the widget is actually viewable, see gtk_widget_get_visible().

setVisual
void setVisual(Visual visual)

Sets the visual that should be used for by widget and its children for creating #GdkWindows. The visual must be on the same #GdkScreen as returned by gtk_widget_get_screen(), so handling the #GtkWidget::screen-changed signal is necessary.

setWindow
void setWindow(GdkWin window)

Sets a widget’s window. This function should only be used in a widget’s #GtkWidget::realize implementation. The %window passed is usually either new window created with gdk_window_new(), or the window of its parent widget as returned by gtk_widget_get_parent_window().

shapeCombineRegion
void shapeCombineRegion(Region region)

Sets a shape for this widget’s GDK window. This allows for transparent windows etc., see gdk_window_shape_combine_region() for more information.

show
void show()

Flags a widget to be displayed. Any widget that isn’t shown will not appear on the screen. If you want to show all the widgets in a container, it’s easier to call gtk_widget_show_all() on the container, instead of individually showing the widgets.

showAll
void showAll()

Recursively shows a widget, and any child widgets (if the widget is a container).

showNow
void showNow()

Shows a widget. If the widget is an unmapped toplevel widget (i.e. a #GtkWindow that has not yet been shown), enter the main loop and wait for the window to actually be mapped. Be careful; because the main loop is running, anything can happen during this function.

sizeAllocate
void sizeAllocate(GtkAllocation* allocation)

This function is only used by #GtkContainer subclasses, to assign a size and position to their child widgets.

sizeAllocateWithBaseline
void sizeAllocateWithBaseline(GtkAllocation* allocation, int baseline)

This function is only used by #GtkContainer subclasses, to assign a size, position and (optionally) baseline to their child widgets.

sizeRequest
void sizeRequest(Requisition requisition)

This function is typically used when implementing a #GtkContainer subclass. Obtains the preferred size of a widget. The container uses this information to arrange its child widgets and decide what size allocations to give them with gtk_widget_size_allocate().

styleAttach
void styleAttach()

This function attaches the widget’s #GtkStyle to the widget's #GdkWindow. It is a replacement for

styleGetProperty
void styleGetProperty(string propertyName, Value value)

Gets the value of a style property of @widget.

styleGetValist
void styleGetValist(string firstPropertyName, void* varArgs)

Non-vararg variant of gtk_widget_style_get(). Used primarily by language bindings.

thawChildNotify
void thawChildNotify()

Reverts the effect of a previous call to gtk_widget_freeze_child_notify(). This causes all queued #GtkWidget::child-notify signals on @widget to be emitted.

translateCoordinates
bool translateCoordinates(Widget destWidget, int srcX, int srcY, int destX, int destY)

Translate coordinates relative to @src_widget’s allocation to coordinates relative to @dest_widget’s allocations. In order to perform this operation, both widgets must be realized, and must share a common toplevel.

triggerTooltipQuery
void triggerTooltipQuery()

Triggers a tooltip query on the display where the toplevel of @widget is located. See gtk_tooltip_trigger_tooltip_query() for more information.

unmap
void unmap()

This function is only for use in widget implementations. Causes a widget to be unmapped if it’s currently mapped.

unparent
void unparent()

This function is only for use in widget implementations. Should be called by implementations of the remove method on #GtkContainer, to dissociate a child from the container.

unrealize
void unrealize()

This function is only useful in widget implementations. Causes a widget to be unrealized (frees all GDK resources associated with the widget, such as @widget->window).

unregisterWindow
void unregisterWindow(GdkWin window)

Unregisters a #GdkWindow from the widget that was previously set up with gtk_widget_register_window(). You need to call this when the window is no longer used by the widget, such as when you destroy it.

unsetStateFlags
void unsetStateFlags(GtkStateFlags flags)

This function is for use in widget implementations. Turns off flag values for the current widget state (insensitive, prelighted, etc.). See gtk_widget_set_state_flags().

OnAccelClosuresChangedDelegateWrapper
class OnAccelClosuresChangedDelegateWrapper
Undocumented in source.
onAccelClosuresChangedListeners
OnAccelClosuresChangedDelegateWrapper[] onAccelClosuresChangedListeners;
Undocumented in source.
addOnAccelClosuresChanged
gulong addOnAccelClosuresChanged(void delegate(Widget) dlg, ConnectFlags connectFlags)
callBackAccelClosuresChanged
void callBackAccelClosuresChanged(GtkWidget* widgetStruct, OnAccelClosuresChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackAccelClosuresChangedDestroy
void callBackAccelClosuresChangedDestroy(OnAccelClosuresChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnButtonPressDelegateWrapper
class OnButtonPressDelegateWrapper
Undocumented in source.
onButtonPressListeners
OnButtonPressDelegateWrapper[] onButtonPressListeners;
Undocumented in source.
addOnButtonPress
gulong addOnButtonPress(bool delegate(GdkEventButton*, Widget) dlg, ConnectFlags connectFlags)

The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.

callBackButtonPress
int callBackButtonPress(GtkWidget* widgetStruct, GdkEventButton* event, OnButtonPressDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackButtonPressDestroy
void callBackButtonPressDestroy(OnButtonPressDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnButtonPressEventGenericDelegateWrapper
class OnButtonPressEventGenericDelegateWrapper
Undocumented in source.
onButtonPressEventGenericListeners
OnButtonPressEventGenericDelegateWrapper[] onButtonPressEventGenericListeners;
Undocumented in source.
addOnButtonPress
gulong addOnButtonPress(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.

callBackButtonPressEventGeneric
int callBackButtonPressEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnButtonPressEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackButtonPressEventGenericDestroy
void callBackButtonPressEventGenericDestroy(OnButtonPressEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnButtonReleaseDelegateWrapper
class OnButtonReleaseDelegateWrapper
Undocumented in source.
onButtonReleaseListeners
OnButtonReleaseDelegateWrapper[] onButtonReleaseListeners;
Undocumented in source.
addOnButtonRelease
gulong addOnButtonRelease(bool delegate(GdkEventButton*, Widget) dlg, ConnectFlags connectFlags)

The ::button-release-event signal will be emitted when a button (typically from a mouse) is released.

callBackButtonRelease
int callBackButtonRelease(GtkWidget* widgetStruct, GdkEventButton* event, OnButtonReleaseDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackButtonReleaseDestroy
void callBackButtonReleaseDestroy(OnButtonReleaseDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnButtonReleaseEventGenericDelegateWrapper
class OnButtonReleaseEventGenericDelegateWrapper
Undocumented in source.
onButtonReleaseEventGenericListeners
OnButtonReleaseEventGenericDelegateWrapper[] onButtonReleaseEventGenericListeners;
Undocumented in source.
addOnButtonRelease
gulong addOnButtonRelease(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::button-release-event signal will be emitted when a button (typically from a mouse) is released.

callBackButtonReleaseEventGeneric
int callBackButtonReleaseEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnButtonReleaseEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackButtonReleaseEventGenericDestroy
void callBackButtonReleaseEventGenericDestroy(OnButtonReleaseEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnCanActivateAccelDelegateWrapper
class OnCanActivateAccelDelegateWrapper
Undocumented in source.
onCanActivateAccelListeners
OnCanActivateAccelDelegateWrapper[] onCanActivateAccelListeners;
Undocumented in source.
addOnCanActivateAccel
gulong addOnCanActivateAccel(bool delegate(uint, Widget) dlg, ConnectFlags connectFlags)

Determines whether an accelerator that activates the signal identified by @signal_id can currently be activated. This signal is present to allow applications and derived widgets to override the default #GtkWidget handling for determining whether an accelerator can be activated.

callBackCanActivateAccel
int callBackCanActivateAccel(GtkWidget* widgetStruct, uint signalId, OnCanActivateAccelDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCanActivateAccelDestroy
void callBackCanActivateAccelDestroy(OnCanActivateAccelDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnChildNotifyDelegateWrapper
class OnChildNotifyDelegateWrapper
Undocumented in source.
onChildNotifyListeners
OnChildNotifyDelegateWrapper[] onChildNotifyListeners;
Undocumented in source.
addOnChildNotify
gulong addOnChildNotify(void delegate(ParamSpec, Widget) dlg, ConnectFlags connectFlags)

The ::child-notify signal is emitted for each [child property][child-properties] that has changed on an object. The signal's detail holds the property name.

callBackChildNotify
void callBackChildNotify(GtkWidget* widgetStruct, GParamSpec* childProperty, OnChildNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackChildNotifyDestroy
void callBackChildNotifyDestroy(OnChildNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnCompositedChangedDelegateWrapper
class OnCompositedChangedDelegateWrapper
Undocumented in source.
onCompositedChangedListeners
OnCompositedChangedDelegateWrapper[] onCompositedChangedListeners;
Undocumented in source.
addOnCompositedChanged
gulong addOnCompositedChanged(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::composited-changed signal is emitted when the composited status of @widgets screen changes. See gdk_screen_is_composited().

callBackCompositedChanged
void callBackCompositedChanged(GtkWidget* widgetStruct, OnCompositedChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCompositedChangedDestroy
void callBackCompositedChangedDestroy(OnCompositedChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnConfigureDelegateWrapper
class OnConfigureDelegateWrapper
Undocumented in source.
onConfigureListeners
OnConfigureDelegateWrapper[] onConfigureListeners;
Undocumented in source.
addOnConfigure
gulong addOnConfigure(bool delegate(GdkEventConfigure*, Widget) dlg, ConnectFlags connectFlags)

The ::configure-event signal will be emitted when the size, position or stacking of the @widget's window has changed.

callBackConfigure
int callBackConfigure(GtkWidget* widgetStruct, GdkEventConfigure* event, OnConfigureDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackConfigureDestroy
void callBackConfigureDestroy(OnConfigureDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnConfigureEventGenericDelegateWrapper
class OnConfigureEventGenericDelegateWrapper
Undocumented in source.
onConfigureEventGenericListeners
OnConfigureEventGenericDelegateWrapper[] onConfigureEventGenericListeners;
Undocumented in source.
addOnConfigure
gulong addOnConfigure(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::configure-event signal will be emitted when the size, position or stacking of the @widget's window has changed.

callBackConfigureEventGeneric
int callBackConfigureEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnConfigureEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackConfigureEventGenericDestroy
void callBackConfigureEventGenericDestroy(OnConfigureEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDamageDelegateWrapper
class OnDamageDelegateWrapper
Undocumented in source.
onDamageListeners
OnDamageDelegateWrapper[] onDamageListeners;
Undocumented in source.
addOnDamage
gulong addOnDamage(bool delegate(GdkEventExpose*, Widget) dlg, ConnectFlags connectFlags)

Emitted when a redirected window belonging to @widget gets drawn into. The region/area members of the event shows what area of the redirected drawable was drawn into.

callBackDamage
int callBackDamage(GtkWidget* widgetStruct, GdkEventExpose* event, OnDamageDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDamageDestroy
void callBackDamageDestroy(OnDamageDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDamageEventGenericDelegateWrapper
class OnDamageEventGenericDelegateWrapper
Undocumented in source.
onDamageEventGenericListeners
OnDamageEventGenericDelegateWrapper[] onDamageEventGenericListeners;
Undocumented in source.
addOnDamage
gulong addOnDamage(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

Emitted when a redirected window belonging to @widget gets drawn into. The region/area members of the event shows what area of the redirected drawable was drawn into.

callBackDamageEventGeneric
int callBackDamageEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnDamageEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDamageEventGenericDestroy
void callBackDamageEventGenericDestroy(OnDamageEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDeleteDelegateWrapper
class OnDeleteDelegateWrapper
Undocumented in source.
onDeleteListeners
OnDeleteDelegateWrapper[] onDeleteListeners;
Undocumented in source.
addOnDelete
gulong addOnDelete(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::delete-event signal is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window. Connecting gtk_widget_hide_on_delete() to this signal will cause the window to be hidden instead, so that it can later be shown again without reconstructing it.

callBackDelete
int callBackDelete(GtkWidget* widgetStruct, GdkEvent* event, OnDeleteDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDeleteDestroy
void callBackDeleteDestroy(OnDeleteDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDestroyDelegateWrapper
class OnDestroyDelegateWrapper
Undocumented in source.
onDestroyListeners
OnDestroyDelegateWrapper[] onDestroyListeners;
Undocumented in source.
addOnDestroy
gulong addOnDestroy(void delegate(Widget) dlg, ConnectFlags connectFlags)

Signals that all holders of a reference to the widget should release the reference that they hold. May result in finalization of the widget if all references are released.

callBackDestroy
void callBackDestroy(GtkWidget* widgetStruct, OnDestroyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDestroyDestroy
void callBackDestroyDestroy(OnDestroyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDestroyEventDelegateWrapper
class OnDestroyEventDelegateWrapper
Undocumented in source.
onDestroyEventListeners
OnDestroyEventDelegateWrapper[] onDestroyEventListeners;
Undocumented in source.
addOnDestroyEvent
gulong addOnDestroyEvent(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::destroy-event signal is emitted when a #GdkWindow is destroyed. You rarely get this signal, because most widgets disconnect themselves from their window before they destroy it, so no widget owns the window at destroy time.

callBackDestroyEvent
int callBackDestroyEvent(GtkWidget* widgetStruct, GdkEvent* event, OnDestroyEventDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDestroyEventDestroy
void callBackDestroyEventDestroy(OnDestroyEventDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDirectionChangedDelegateWrapper
class OnDirectionChangedDelegateWrapper
Undocumented in source.
onDirectionChangedListeners
OnDirectionChangedDelegateWrapper[] onDirectionChangedListeners;
Undocumented in source.
addOnDirectionChanged
gulong addOnDirectionChanged(void delegate(GtkTextDirection, Widget) dlg, ConnectFlags connectFlags)

The ::direction-changed signal is emitted when the text direction of a widget changes.

callBackDirectionChanged
void callBackDirectionChanged(GtkWidget* widgetStruct, GtkTextDirection previousDirection, OnDirectionChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDirectionChangedDestroy
void callBackDirectionChangedDestroy(OnDirectionChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragBeginDelegateWrapper
class OnDragBeginDelegateWrapper
Undocumented in source.
onDragBeginListeners
OnDragBeginDelegateWrapper[] onDragBeginListeners;
Undocumented in source.
addOnDragBegin
gulong addOnDragBegin(void delegate(DragContext, Widget) dlg, ConnectFlags connectFlags)

The ::drag-begin signal is emitted on the drag source when a drag is started. A typical reason to connect to this signal is to set up a custom drag icon with e.g. gtk_drag_source_set_icon_pixbuf().

callBackDragBegin
void callBackDragBegin(GtkWidget* widgetStruct, GdkDragContext* context, OnDragBeginDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragBeginDestroy
void callBackDragBeginDestroy(OnDragBeginDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragDataDeleteDelegateWrapper
class OnDragDataDeleteDelegateWrapper
Undocumented in source.
onDragDataDeleteListeners
OnDragDataDeleteDelegateWrapper[] onDragDataDeleteListeners;
Undocumented in source.
addOnDragDataDelete
gulong addOnDragDataDelete(void delegate(DragContext, Widget) dlg, ConnectFlags connectFlags)

The ::drag-data-delete signal is emitted on the drag source when a drag with the action %GDK_ACTION_MOVE is successfully completed. The signal handler is responsible for deleting the data that has been dropped. What "delete" means depends on the context of the drag operation.

callBackDragDataDelete
void callBackDragDataDelete(GtkWidget* widgetStruct, GdkDragContext* context, OnDragDataDeleteDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragDataDeleteDestroy
void callBackDragDataDeleteDestroy(OnDragDataDeleteDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragDataGetDelegateWrapper
class OnDragDataGetDelegateWrapper
Undocumented in source.
onDragDataGetListeners
OnDragDataGetDelegateWrapper[] onDragDataGetListeners;
Undocumented in source.
addOnDragDataGet
gulong addOnDragDataGet(void delegate(DragContext, SelectionData, uint, uint, Widget) dlg, ConnectFlags connectFlags)

The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill @data with the data in the format which is indicated by @info. See gtk_selection_data_set() and gtk_selection_data_set_text().

callBackDragDataGet
void callBackDragDataGet(GtkWidget* widgetStruct, GdkDragContext* context, GtkSelectionData* data, uint info, uint time, OnDragDataGetDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragDataGetDestroy
void callBackDragDataGetDestroy(OnDragDataGetDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragDataReceivedDelegateWrapper
class OnDragDataReceivedDelegateWrapper
Undocumented in source.
onDragDataReceivedListeners
OnDragDataReceivedDelegateWrapper[] onDragDataReceivedListeners;
Undocumented in source.
addOnDragDataReceived
gulong addOnDragDataReceived(void delegate(DragContext, int, int, SelectionData, uint, uint, Widget) dlg, ConnectFlags connectFlags)

The ::drag-data-received signal is emitted on the drop site when the dragged data has been received. If the data was received in order to determine whether the drop will be accepted, the handler is expected to call gdk_drag_status() and not finish the drag. If the data was received in response to a #GtkWidget::drag-drop signal (and this is the last target to be received), the handler for this signal is expected to process the received data and then call gtk_drag_finish(), setting the @success parameter depending on whether the data was processed successfully.

callBackDragDataReceived
void callBackDragDataReceived(GtkWidget* widgetStruct, GdkDragContext* context, int x, int y, GtkSelectionData* data, uint info, uint time, OnDragDataReceivedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragDataReceivedDestroy
void callBackDragDataReceivedDestroy(OnDragDataReceivedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragDropDelegateWrapper
class OnDragDropDelegateWrapper
Undocumented in source.
onDragDropListeners
OnDragDropDelegateWrapper[] onDragDropListeners;
Undocumented in source.
addOnDragDrop
gulong addOnDragDrop(bool delegate(DragContext, int, int, uint, Widget) dlg, ConnectFlags connectFlags)

The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns %FALSE and no further processing is necessary. Otherwise, the handler returns %TRUE. In this case, the handler must ensure that gtk_drag_finish() is called to let the source know that the drop is done. The call to gtk_drag_finish() can be done either directly or in a #GtkWidget::drag-data-received handler which gets triggered by calling gtk_drag_get_data() to receive the data for one or more of the supported targets.

callBackDragDrop
int callBackDragDrop(GtkWidget* widgetStruct, GdkDragContext* context, int x, int y, uint time, OnDragDropDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragDropDestroy
void callBackDragDropDestroy(OnDragDropDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragEndDelegateWrapper
class OnDragEndDelegateWrapper
Undocumented in source.
onDragEndListeners
OnDragEndDelegateWrapper[] onDragEndListeners;
Undocumented in source.
addOnDragEnd
gulong addOnDragEnd(void delegate(DragContext, Widget) dlg, ConnectFlags connectFlags)

The ::drag-end signal is emitted on the drag source when a drag is finished. A typical reason to connect to this signal is to undo things done in #GtkWidget::drag-begin.

callBackDragEnd
void callBackDragEnd(GtkWidget* widgetStruct, GdkDragContext* context, OnDragEndDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragEndDestroy
void callBackDragEndDestroy(OnDragEndDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragFailedDelegateWrapper
class OnDragFailedDelegateWrapper
Undocumented in source.
onDragFailedListeners
OnDragFailedDelegateWrapper[] onDragFailedListeners;
Undocumented in source.
addOnDragFailed
gulong addOnDragFailed(bool delegate(DragContext, GtkDragResult, Widget) dlg, ConnectFlags connectFlags)

The ::drag-failed signal is emitted on the drag source when a drag has failed. The signal handler may hook custom code to handle a failed DnD operation based on the type of error, it returns %TRUE is the failure has been already handled (not showing the default "drag operation failed" animation), otherwise it returns %FALSE.

callBackDragFailed
int callBackDragFailed(GtkWidget* widgetStruct, GdkDragContext* context, GtkDragResult result, OnDragFailedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragFailedDestroy
void callBackDragFailedDestroy(OnDragFailedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragLeaveDelegateWrapper
class OnDragLeaveDelegateWrapper
Undocumented in source.
onDragLeaveListeners
OnDragLeaveDelegateWrapper[] onDragLeaveListeners;
Undocumented in source.
addOnDragLeave
gulong addOnDragLeave(void delegate(DragContext, uint, Widget) dlg, ConnectFlags connectFlags)

The ::drag-leave signal is emitted on the drop site when the cursor leaves the widget. A typical reason to connect to this signal is to undo things done in #GtkWidget::drag-motion, e.g. undo highlighting with gtk_drag_unhighlight().

callBackDragLeave
void callBackDragLeave(GtkWidget* widgetStruct, GdkDragContext* context, uint time, OnDragLeaveDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragLeaveDestroy
void callBackDragLeaveDestroy(OnDragLeaveDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragMotionDelegateWrapper
class OnDragMotionDelegateWrapper
Undocumented in source.
onDragMotionListeners
OnDragMotionDelegateWrapper[] onDragMotionListeners;
Undocumented in source.
addOnDragMotion
gulong addOnDragMotion(bool delegate(DragContext, int, int, uint, Widget) dlg, ConnectFlags connectFlags)

The ::drag-motion signal is emitted on the drop site when the user moves the cursor over the widget during a drag. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns %FALSE and no further processing is necessary. Otherwise, the handler returns %TRUE. In this case, the handler is responsible for providing the necessary information for displaying feedback to the user, by calling gdk_drag_status().

callBackDragMotion
int callBackDragMotion(GtkWidget* widgetStruct, GdkDragContext* context, int x, int y, uint time, OnDragMotionDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragMotionDestroy
void callBackDragMotionDestroy(OnDragMotionDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnEnterNotifyDelegateWrapper
class OnEnterNotifyDelegateWrapper
Undocumented in source.
onEnterNotifyListeners
OnEnterNotifyDelegateWrapper[] onEnterNotifyListeners;
Undocumented in source.
addOnEnterNotify
gulong addOnEnterNotify(bool delegate(GdkEventCrossing*, Widget) dlg, ConnectFlags connectFlags)

The ::enter-notify-event will be emitted when the pointer enters the @widget's window.

callBackEnterNotify
int callBackEnterNotify(GtkWidget* widgetStruct, GdkEventCrossing* event, OnEnterNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackEnterNotifyDestroy
void callBackEnterNotifyDestroy(OnEnterNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnEnterNotifyEventGenericDelegateWrapper
class OnEnterNotifyEventGenericDelegateWrapper
Undocumented in source.
onEnterNotifyEventGenericListeners
OnEnterNotifyEventGenericDelegateWrapper[] onEnterNotifyEventGenericListeners;
Undocumented in source.
addOnEnterNotify
gulong addOnEnterNotify(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::enter-notify-event will be emitted when the pointer enters the @widget's window.

callBackEnterNotifyEventGeneric
int callBackEnterNotifyEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnEnterNotifyEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackEnterNotifyEventGenericDestroy
void callBackEnterNotifyEventGenericDestroy(OnEnterNotifyEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDelegateWrapper
class OnDelegateWrapper
Undocumented in source.
onListeners
OnDelegateWrapper[] onListeners;
Undocumented in source.
addOn
gulong addOn(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The GTK+ main loop will emit three signals for each GDK event delivered to a widget: one generic ::event signal, another, more specific, signal that matches the type of event delivered (e.g. #GtkWidget::key-press-event) and finally a generic #GtkWidget::event-after signal.

callBack
int callBack(GtkWidget* widgetStruct, GdkEvent* event, OnDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDestroy
void callBackDestroy(OnDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnEventAfterDelegateWrapper
class OnEventAfterDelegateWrapper
Undocumented in source.
onEventAfterListeners
OnEventAfterDelegateWrapper[] onEventAfterListeners;
Undocumented in source.
addOnEventAfter
gulong addOnEventAfter(void delegate(Event, Widget) dlg, ConnectFlags connectFlags)

After the emission of the #GtkWidget::event signal and (optionally) the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values.

callBackEventAfter
void callBackEventAfter(GtkWidget* widgetStruct, GdkEvent* event, OnEventAfterDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackEventAfterDestroy
void callBackEventAfterDestroy(OnEventAfterDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnFocusDelegateWrapper
class OnFocusDelegateWrapper
Undocumented in source.
onFocusListeners
OnFocusDelegateWrapper[] onFocusListeners;
Undocumented in source.
addOnFocus
gulong addOnFocus(bool delegate(GtkDirectionType, Widget) dlg, ConnectFlags connectFlags)
callBackFocus
int callBackFocus(GtkWidget* widgetStruct, GtkDirectionType direction, OnFocusDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackFocusDestroy
void callBackFocusDestroy(OnFocusDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnFocusInDelegateWrapper
class OnFocusInDelegateWrapper
Undocumented in source.
onFocusInListeners
OnFocusInDelegateWrapper[] onFocusInListeners;
Undocumented in source.
addOnFocusIn
gulong addOnFocusIn(bool delegate(GdkEventFocus*, Widget) dlg, ConnectFlags connectFlags)

The ::focus-in-event signal will be emitted when the keyboard focus enters the @widget's window.

callBackFocusIn
int callBackFocusIn(GtkWidget* widgetStruct, GdkEventFocus* event, OnFocusInDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackFocusInDestroy
void callBackFocusInDestroy(OnFocusInDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnFocusInEventGenericDelegateWrapper
class OnFocusInEventGenericDelegateWrapper
Undocumented in source.
onFocusInEventGenericListeners
OnFocusInEventGenericDelegateWrapper[] onFocusInEventGenericListeners;
Undocumented in source.
addOnFocusIn
gulong addOnFocusIn(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::focus-in-event signal will be emitted when the keyboard focus enters the @widget's window.

callBackFocusInEventGeneric
int callBackFocusInEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnFocusInEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackFocusInEventGenericDestroy
void callBackFocusInEventGenericDestroy(OnFocusInEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnFocusOutDelegateWrapper
class OnFocusOutDelegateWrapper
Undocumented in source.
onFocusOutListeners
OnFocusOutDelegateWrapper[] onFocusOutListeners;
Undocumented in source.
addOnFocusOut
gulong addOnFocusOut(bool delegate(GdkEventFocus*, Widget) dlg, ConnectFlags connectFlags)

The ::focus-out-event signal will be emitted when the keyboard focus leaves the @widget's window.

callBackFocusOut
int callBackFocusOut(GtkWidget* widgetStruct, GdkEventFocus* event, OnFocusOutDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackFocusOutDestroy
void callBackFocusOutDestroy(OnFocusOutDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnFocusOutEventGenericDelegateWrapper
class OnFocusOutEventGenericDelegateWrapper
Undocumented in source.
onFocusOutEventGenericListeners
OnFocusOutEventGenericDelegateWrapper[] onFocusOutEventGenericListeners;
Undocumented in source.
addOnFocusOut
gulong addOnFocusOut(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::focus-out-event signal will be emitted when the keyboard focus leaves the @widget's window.

callBackFocusOutEventGeneric
int callBackFocusOutEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnFocusOutEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackFocusOutEventGenericDestroy
void callBackFocusOutEventGenericDestroy(OnFocusOutEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnGrabBrokenDelegateWrapper
class OnGrabBrokenDelegateWrapper
Undocumented in source.
onGrabBrokenListeners
OnGrabBrokenDelegateWrapper[] onGrabBrokenListeners;
Undocumented in source.
addOnGrabBroken
gulong addOnGrabBroken(bool delegate(GdkEventGrabBroken*, Widget) dlg, ConnectFlags connectFlags)

Emitted when a pointer or keyboard grab on a window belonging to @widget gets broken.

callBackGrabBroken
int callBackGrabBroken(GtkWidget* widgetStruct, GdkEventGrabBroken* event, OnGrabBrokenDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackGrabBrokenDestroy
void callBackGrabBrokenDestroy(OnGrabBrokenDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnGrabBrokenEventGenericDelegateWrapper
class OnGrabBrokenEventGenericDelegateWrapper
Undocumented in source.
onGrabBrokenEventGenericListeners
OnGrabBrokenEventGenericDelegateWrapper[] onGrabBrokenEventGenericListeners;
Undocumented in source.
addOnGrabBroken
gulong addOnGrabBroken(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

Emitted when a pointer or keyboard grab on a window belonging to @widget gets broken.

callBackGrabBrokenEventGeneric
int callBackGrabBrokenEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnGrabBrokenEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackGrabBrokenEventGenericDestroy
void callBackGrabBrokenEventGenericDestroy(OnGrabBrokenEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnGrabFocusDelegateWrapper
class OnGrabFocusDelegateWrapper
Undocumented in source.
onGrabFocusListeners
OnGrabFocusDelegateWrapper[] onGrabFocusListeners;
Undocumented in source.
addOnGrabFocus
gulong addOnGrabFocus(void delegate(Widget) dlg, ConnectFlags connectFlags)
callBackGrabFocus
void callBackGrabFocus(GtkWidget* widgetStruct, OnGrabFocusDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackGrabFocusDestroy
void callBackGrabFocusDestroy(OnGrabFocusDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnGrabNotifyDelegateWrapper
class OnGrabNotifyDelegateWrapper
Undocumented in source.
onGrabNotifyListeners
OnGrabNotifyDelegateWrapper[] onGrabNotifyListeners;
Undocumented in source.
addOnGrabNotify
gulong addOnGrabNotify(void delegate(bool, Widget) dlg, ConnectFlags connectFlags)

The ::grab-notify signal is emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed.

callBackGrabNotify
void callBackGrabNotify(GtkWidget* widgetStruct, bool wasGrabbed, OnGrabNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackGrabNotifyDestroy
void callBackGrabNotifyDestroy(OnGrabNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnHideDelegateWrapper
class OnHideDelegateWrapper
Undocumented in source.
onHideListeners
OnHideDelegateWrapper[] onHideListeners;
Undocumented in source.
addOnHide
gulong addOnHide(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::hide signal is emitted when @widget is hidden, for example with gtk_widget_hide().

callBackHide
void callBackHide(GtkWidget* widgetStruct, OnHideDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackHideDestroy
void callBackHideDestroy(OnHideDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnHierarchyChangedDelegateWrapper
class OnHierarchyChangedDelegateWrapper
Undocumented in source.
onHierarchyChangedListeners
OnHierarchyChangedDelegateWrapper[] onHierarchyChangedListeners;
Undocumented in source.
addOnHierarchyChanged
gulong addOnHierarchyChanged(void delegate(Widget, Widget) dlg, ConnectFlags connectFlags)

The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is “anchored” when its toplevel ancestor is a #GtkWindow. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.

callBackHierarchyChanged
void callBackHierarchyChanged(GtkWidget* widgetStruct, GtkWidget* previousToplevel, OnHierarchyChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackHierarchyChangedDestroy
void callBackHierarchyChangedDestroy(OnHierarchyChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnKeyPressDelegateWrapper
class OnKeyPressDelegateWrapper
Undocumented in source.
onKeyPressListeners
OnKeyPressDelegateWrapper[] onKeyPressListeners;
Undocumented in source.
addOnKeyPress
gulong addOnKeyPress(bool delegate(GdkEventKey*, Widget) dlg, ConnectFlags connectFlags)

The ::key-press-event signal is emitted when a key is pressed. The signal emission will reoccur at the key-repeat rate when the key is kept pressed.

callBackKeyPress
int callBackKeyPress(GtkWidget* widgetStruct, GdkEventKey* event, OnKeyPressDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackKeyPressDestroy
void callBackKeyPressDestroy(OnKeyPressDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnKeyPressEventGenericDelegateWrapper
class OnKeyPressEventGenericDelegateWrapper
Undocumented in source.
onKeyPressEventGenericListeners
OnKeyPressEventGenericDelegateWrapper[] onKeyPressEventGenericListeners;
Undocumented in source.
addOnKeyPress
gulong addOnKeyPress(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::key-press-event signal is emitted when a key is pressed. The signal emission will reoccur at the key-repeat rate when the key is kept pressed.

callBackKeyPressEventGeneric
int callBackKeyPressEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnKeyPressEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackKeyPressEventGenericDestroy
void callBackKeyPressEventGenericDestroy(OnKeyPressEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnKeyReleaseDelegateWrapper
class OnKeyReleaseDelegateWrapper
Undocumented in source.
onKeyReleaseListeners
OnKeyReleaseDelegateWrapper[] onKeyReleaseListeners;
Undocumented in source.
addOnKeyRelease
gulong addOnKeyRelease(bool delegate(GdkEventKey*, Widget) dlg, ConnectFlags connectFlags)

The ::key-release-event signal is emitted when a key is released.

callBackKeyRelease
int callBackKeyRelease(GtkWidget* widgetStruct, GdkEventKey* event, OnKeyReleaseDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackKeyReleaseDestroy
void callBackKeyReleaseDestroy(OnKeyReleaseDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnKeyReleaseEventGenericDelegateWrapper
class OnKeyReleaseEventGenericDelegateWrapper
Undocumented in source.
onKeyReleaseEventGenericListeners
OnKeyReleaseEventGenericDelegateWrapper[] onKeyReleaseEventGenericListeners;
Undocumented in source.
addOnKeyRelease
gulong addOnKeyRelease(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::key-release-event signal is emitted when a key is released.

callBackKeyReleaseEventGeneric
int callBackKeyReleaseEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnKeyReleaseEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackKeyReleaseEventGenericDestroy
void callBackKeyReleaseEventGenericDestroy(OnKeyReleaseEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnKeynavFailedDelegateWrapper
class OnKeynavFailedDelegateWrapper
Undocumented in source.
onKeynavFailedListeners
OnKeynavFailedDelegateWrapper[] onKeynavFailedListeners;
Undocumented in source.
addOnKeynavFailed
gulong addOnKeynavFailed(bool delegate(GtkDirectionType, Widget) dlg, ConnectFlags connectFlags)

Gets emitted if keyboard navigation fails. See gtk_widget_keynav_failed() for details.

callBackKeynavFailed
int callBackKeynavFailed(GtkWidget* widgetStruct, GtkDirectionType direction, OnKeynavFailedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackKeynavFailedDestroy
void callBackKeynavFailedDestroy(OnKeynavFailedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnLeaveNotifyDelegateWrapper
class OnLeaveNotifyDelegateWrapper
Undocumented in source.
onLeaveNotifyListeners
OnLeaveNotifyDelegateWrapper[] onLeaveNotifyListeners;
Undocumented in source.
addOnLeaveNotify
gulong addOnLeaveNotify(bool delegate(GdkEventCrossing*, Widget) dlg, ConnectFlags connectFlags)

The ::leave-notify-event will be emitted when the pointer leaves the @widget's window.

callBackLeaveNotify
int callBackLeaveNotify(GtkWidget* widgetStruct, GdkEventCrossing* event, OnLeaveNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackLeaveNotifyDestroy
void callBackLeaveNotifyDestroy(OnLeaveNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnLeaveNotifyEventGenericDelegateWrapper
class OnLeaveNotifyEventGenericDelegateWrapper
Undocumented in source.
onLeaveNotifyEventGenericListeners
OnLeaveNotifyEventGenericDelegateWrapper[] onLeaveNotifyEventGenericListeners;
Undocumented in source.
addOnLeaveNotify
gulong addOnLeaveNotify(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::leave-notify-event will be emitted when the pointer leaves the @widget's window.

callBackLeaveNotifyEventGeneric
int callBackLeaveNotifyEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnLeaveNotifyEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackLeaveNotifyEventGenericDestroy
void callBackLeaveNotifyEventGenericDestroy(OnLeaveNotifyEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMapDelegateWrapper
class OnMapDelegateWrapper
Undocumented in source.
onMapListeners
OnMapDelegateWrapper[] onMapListeners;
Undocumented in source.
addOnMap
gulong addOnMap(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::map signal is emitted when @widget is going to be mapped, that is when the widget is visible (which is controlled with gtk_widget_set_visible()) and all its parents up to the toplevel widget are also visible. Once the map has occurred, #GtkWidget::map-event will be emitted.

callBackMap
void callBackMap(GtkWidget* widgetStruct, OnMapDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMapDestroy
void callBackMapDestroy(OnMapDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMapEventDelegateWrapper
class OnMapEventDelegateWrapper
Undocumented in source.
onMapEventListeners
OnMapEventDelegateWrapper[] onMapEventListeners;
Undocumented in source.
addOnMapEvent
gulong addOnMapEvent(bool delegate(GdkEventAny*, Widget) dlg, ConnectFlags connectFlags)

The ::map-event signal will be emitted when the @widget's window is mapped. A window is mapped when it becomes visible on the screen.

callBackMapEvent
int callBackMapEvent(GtkWidget* widgetStruct, GdkEventAny* event, OnMapEventDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMapEventDestroy
void callBackMapEventDestroy(OnMapEventDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMapEventGenericDelegateWrapper
class OnMapEventGenericDelegateWrapper
Undocumented in source.
onMapEventGenericListeners
OnMapEventGenericDelegateWrapper[] onMapEventGenericListeners;
Undocumented in source.
addOnMapEvent
gulong addOnMapEvent(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::map-event signal will be emitted when the @widget's window is mapped. A window is mapped when it becomes visible on the screen.

callBackMapEventGeneric
int callBackMapEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnMapEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMapEventGenericDestroy
void callBackMapEventGenericDestroy(OnMapEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMnemonicActivateDelegateWrapper
class OnMnemonicActivateDelegateWrapper
Undocumented in source.
onMnemonicActivateListeners
OnMnemonicActivateDelegateWrapper[] onMnemonicActivateListeners;
Undocumented in source.
addOnMnemonicActivate
gulong addOnMnemonicActivate(bool delegate(bool, Widget) dlg, ConnectFlags connectFlags)

The default handler for this signal activates @widget if @group_cycling is %FALSE, or just makes @widget grab focus if @group_cycling is %TRUE.

callBackMnemonicActivate
int callBackMnemonicActivate(GtkWidget* widgetStruct, bool groupCycling, OnMnemonicActivateDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMnemonicActivateDestroy
void callBackMnemonicActivateDestroy(OnMnemonicActivateDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMotionNotifyDelegateWrapper
class OnMotionNotifyDelegateWrapper
Undocumented in source.
onMotionNotifyListeners
OnMotionNotifyDelegateWrapper[] onMotionNotifyListeners;
Undocumented in source.
addOnMotionNotify
gulong addOnMotionNotify(bool delegate(GdkEventMotion*, Widget) dlg, ConnectFlags connectFlags)

The ::motion-notify-event signal is emitted when the pointer moves over the widget's #GdkWindow.

callBackMotionNotify
int callBackMotionNotify(GtkWidget* widgetStruct, GdkEventMotion* event, OnMotionNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMotionNotifyDestroy
void callBackMotionNotifyDestroy(OnMotionNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMotionNotifyEventGenericDelegateWrapper
class OnMotionNotifyEventGenericDelegateWrapper
Undocumented in source.
onMotionNotifyEventGenericListeners
OnMotionNotifyEventGenericDelegateWrapper[] onMotionNotifyEventGenericListeners;
Undocumented in source.
addOnMotionNotify
gulong addOnMotionNotify(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::motion-notify-event signal is emitted when the pointer moves over the widget's #GdkWindow.

callBackMotionNotifyEventGeneric
int callBackMotionNotifyEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnMotionNotifyEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMotionNotifyEventGenericDestroy
void callBackMotionNotifyEventGenericDestroy(OnMotionNotifyEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMoveFocusDelegateWrapper
class OnMoveFocusDelegateWrapper
Undocumented in source.
onMoveFocusListeners
OnMoveFocusDelegateWrapper[] onMoveFocusListeners;
Undocumented in source.
addOnMoveFocus
gulong addOnMoveFocus(void delegate(GtkDirectionType, Widget) dlg, ConnectFlags connectFlags)
callBackMoveFocus
void callBackMoveFocus(GtkWidget* widgetStruct, GtkDirectionType direction, OnMoveFocusDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveFocusDestroy
void callBackMoveFocusDestroy(OnMoveFocusDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnParentSetDelegateWrapper
class OnParentSetDelegateWrapper
Undocumented in source.
onParentSetListeners
OnParentSetDelegateWrapper[] onParentSetListeners;
Undocumented in source.
addOnParentSet
gulong addOnParentSet(void delegate(Widget, Widget) dlg, ConnectFlags connectFlags)

The ::parent-set signal is emitted when a new parent has been set on a widget.

callBackParentSet
void callBackParentSet(GtkWidget* widgetStruct, GtkWidget* oldParent, OnParentSetDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackParentSetDestroy
void callBackParentSetDestroy(OnParentSetDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnPopupMenuDelegateWrapper
class OnPopupMenuDelegateWrapper
Undocumented in source.
onPopupMenuListeners
OnPopupMenuDelegateWrapper[] onPopupMenuListeners;
Undocumented in source.
addOnPopupMenu
gulong addOnPopupMenu(bool delegate(Widget) dlg, ConnectFlags connectFlags)

This signal gets emitted whenever a widget should pop up a context menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu. For example, the #GtkEntry widget creates a menu with clipboard commands. See the [Popup Menu Migration Checklist][checklist-popup-menu] for an example of how to use this signal.

callBackPopupMenu
int callBackPopupMenu(GtkWidget* widgetStruct, OnPopupMenuDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPopupMenuDestroy
void callBackPopupMenuDestroy(OnPopupMenuDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnPropertyNotifyDelegateWrapper
class OnPropertyNotifyDelegateWrapper
Undocumented in source.
onPropertyNotifyListeners
OnPropertyNotifyDelegateWrapper[] onPropertyNotifyListeners;
Undocumented in source.
addOnPropertyNotify
gulong addOnPropertyNotify(bool delegate(GdkEventProperty*, Widget) dlg, ConnectFlags connectFlags)

The ::property-notify-event signal will be emitted when a property on the @widget's window has been changed or deleted.

callBackPropertyNotify
int callBackPropertyNotify(GtkWidget* widgetStruct, GdkEventProperty* event, OnPropertyNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPropertyNotifyDestroy
void callBackPropertyNotifyDestroy(OnPropertyNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnPropertyNotifyEventGenericDelegateWrapper
class OnPropertyNotifyEventGenericDelegateWrapper
Undocumented in source.
onPropertyNotifyEventGenericListeners
OnPropertyNotifyEventGenericDelegateWrapper[] onPropertyNotifyEventGenericListeners;
Undocumented in source.
addOnPropertyNotify
gulong addOnPropertyNotify(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::property-notify-event signal will be emitted when a property on the @widget's window has been changed or deleted.

callBackPropertyNotifyEventGeneric
int callBackPropertyNotifyEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnPropertyNotifyEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPropertyNotifyEventGenericDestroy
void callBackPropertyNotifyEventGenericDestroy(OnPropertyNotifyEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnProximityInDelegateWrapper
class OnProximityInDelegateWrapper
Undocumented in source.
onProximityInListeners
OnProximityInDelegateWrapper[] onProximityInListeners;
Undocumented in source.
addOnProximityIn
gulong addOnProximityIn(bool delegate(GdkEventProximity*, Widget) dlg, ConnectFlags connectFlags)

To receive this signal the #GdkWindow associated to the widget needs to enable the #GDK_PROXIMITY_IN_MASK mask.

callBackProximityIn
int callBackProximityIn(GtkWidget* widgetStruct, GdkEventProximity* event, OnProximityInDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackProximityInDestroy
void callBackProximityInDestroy(OnProximityInDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnProximityInEventGenericDelegateWrapper
class OnProximityInEventGenericDelegateWrapper
Undocumented in source.
onProximityInEventGenericListeners
OnProximityInEventGenericDelegateWrapper[] onProximityInEventGenericListeners;
Undocumented in source.
addOnProximityIn
gulong addOnProximityIn(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

To receive this signal the #GdkWindow associated to the widget needs to enable the #GDK_PROXIMITY_IN_MASK mask.

callBackProximityInEventGeneric
int callBackProximityInEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnProximityInEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackProximityInEventGenericDestroy
void callBackProximityInEventGenericDestroy(OnProximityInEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnProximityOutDelegateWrapper
class OnProximityOutDelegateWrapper
Undocumented in source.
onProximityOutListeners
OnProximityOutDelegateWrapper[] onProximityOutListeners;
Undocumented in source.
addOnProximityOut
gulong addOnProximityOut(bool delegate(GdkEventProximity*, Widget) dlg, ConnectFlags connectFlags)

To receive this signal the #GdkWindow associated to the widget needs to enable the #GDK_PROXIMITY_OUT_MASK mask.

callBackProximityOut
int callBackProximityOut(GtkWidget* widgetStruct, GdkEventProximity* event, OnProximityOutDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackProximityOutDestroy
void callBackProximityOutDestroy(OnProximityOutDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnProximityOutEventGenericDelegateWrapper
class OnProximityOutEventGenericDelegateWrapper
Undocumented in source.
onProximityOutEventGenericListeners
OnProximityOutEventGenericDelegateWrapper[] onProximityOutEventGenericListeners;
Undocumented in source.
addOnProximityOut
gulong addOnProximityOut(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

To receive this signal the #GdkWindow associated to the widget needs to enable the #GDK_PROXIMITY_OUT_MASK mask.

callBackProximityOutEventGeneric
int callBackProximityOutEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnProximityOutEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackProximityOutEventGenericDestroy
void callBackProximityOutEventGenericDestroy(OnProximityOutEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnQueryTooltipDelegateWrapper
class OnQueryTooltipDelegateWrapper
Undocumented in source.
onQueryTooltipListeners
OnQueryTooltipDelegateWrapper[] onQueryTooltipListeners;
Undocumented in source.
addOnQueryTooltip
gulong addOnQueryTooltip(bool delegate(int, int, bool, Tooltip, Widget) dlg, ConnectFlags connectFlags)

Emitted when #GtkWidget:has-tooltip is %TRUE and the hover timeout has expired with the cursor hovering "above" @widget; or emitted when @widget got focus in keyboard mode.

callBackQueryTooltip
int callBackQueryTooltip(GtkWidget* widgetStruct, int x, int y, bool keyboardMode, GtkTooltip* tooltip, OnQueryTooltipDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackQueryTooltipDestroy
void callBackQueryTooltipDestroy(OnQueryTooltipDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnRealizeDelegateWrapper
class OnRealizeDelegateWrapper
Undocumented in source.
onRealizeListeners
OnRealizeDelegateWrapper[] onRealizeListeners;
Undocumented in source.
addOnRealize
gulong addOnRealize(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::realize signal is emitted when @widget is associated with a #GdkWindow, which means that gtk_widget_realize() has been called or the widget has been mapped (that is, it is going to be drawn).

callBackRealize
void callBackRealize(GtkWidget* widgetStruct, OnRealizeDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackRealizeDestroy
void callBackRealizeDestroy(OnRealizeDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnScreenChangedDelegateWrapper
class OnScreenChangedDelegateWrapper
Undocumented in source.
onScreenChangedListeners
OnScreenChangedDelegateWrapper[] onScreenChangedListeners;
Undocumented in source.
addOnScreenChanged
gulong addOnScreenChanged(void delegate(Screen, Widget) dlg, ConnectFlags connectFlags)

The ::screen-changed signal gets emitted when the screen of a widget has changed.

callBackScreenChanged
void callBackScreenChanged(GtkWidget* widgetStruct, GdkScreen* previousScreen, OnScreenChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackScreenChangedDestroy
void callBackScreenChangedDestroy(OnScreenChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnScrollDelegateWrapper
class OnScrollDelegateWrapper
Undocumented in source.
onScrollListeners
OnScrollDelegateWrapper[] onScrollListeners;
Undocumented in source.
addOnScroll
gulong addOnScroll(bool delegate(GdkEventScroll*, Widget) dlg, ConnectFlags connectFlags)

The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

callBackScroll
int callBackScroll(GtkWidget* widgetStruct, GdkEventScroll* event, OnScrollDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackScrollDestroy
void callBackScrollDestroy(OnScrollDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnScrollEventGenericDelegateWrapper
class OnScrollEventGenericDelegateWrapper
Undocumented in source.
onScrollEventGenericListeners
OnScrollEventGenericDelegateWrapper[] onScrollEventGenericListeners;
Undocumented in source.
addOnScroll
gulong addOnScroll(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

callBackScrollEventGeneric
int callBackScrollEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnScrollEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackScrollEventGenericDestroy
void callBackScrollEventGenericDestroy(OnScrollEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionClearDelegateWrapper
class OnSelectionClearDelegateWrapper
Undocumented in source.
onSelectionClearListeners
OnSelectionClearDelegateWrapper[] onSelectionClearListeners;
Undocumented in source.
addOnSelectionClear
gulong addOnSelectionClear(bool delegate(GdkEventSelection*, Widget) dlg, ConnectFlags connectFlags)

The ::selection-clear-event signal will be emitted when the the @widget's window has lost ownership of a selection.

callBackSelectionClear
int callBackSelectionClear(GtkWidget* widgetStruct, GdkEventSelection* event, OnSelectionClearDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionClearDestroy
void callBackSelectionClearDestroy(OnSelectionClearDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionClearEventGenericDelegateWrapper
class OnSelectionClearEventGenericDelegateWrapper
Undocumented in source.
onSelectionClearEventGenericListeners
OnSelectionClearEventGenericDelegateWrapper[] onSelectionClearEventGenericListeners;
Undocumented in source.
addOnSelectionClear
gulong addOnSelectionClear(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::selection-clear-event signal will be emitted when the the @widget's window has lost ownership of a selection.

callBackSelectionClearEventGeneric
int callBackSelectionClearEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnSelectionClearEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionClearEventGenericDestroy
void callBackSelectionClearEventGenericDestroy(OnSelectionClearEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionGetDelegateWrapper
class OnSelectionGetDelegateWrapper
Undocumented in source.
onSelectionGetListeners
OnSelectionGetDelegateWrapper[] onSelectionGetListeners;
Undocumented in source.
addOnSelectionGet
gulong addOnSelectionGet(void delegate(SelectionData, uint, uint, Widget) dlg, ConnectFlags connectFlags)
callBackSelectionGet
void callBackSelectionGet(GtkWidget* widgetStruct, GtkSelectionData* data, uint info, uint time, OnSelectionGetDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionGetDestroy
void callBackSelectionGetDestroy(OnSelectionGetDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionNotifyDelegateWrapper
class OnSelectionNotifyDelegateWrapper
Undocumented in source.
onSelectionNotifyListeners
OnSelectionNotifyDelegateWrapper[] onSelectionNotifyListeners;
Undocumented in source.
addOnSelectionNotify
gulong addOnSelectionNotify(bool delegate(GdkEventSelection*, Widget) dlg, ConnectFlags connectFlags)
callBackSelectionNotify
int callBackSelectionNotify(GtkWidget* widgetStruct, GdkEventSelection* event, OnSelectionNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionNotifyDestroy
void callBackSelectionNotifyDestroy(OnSelectionNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionNotifyEventGenericDelegateWrapper
class OnSelectionNotifyEventGenericDelegateWrapper
Undocumented in source.
onSelectionNotifyEventGenericListeners
OnSelectionNotifyEventGenericDelegateWrapper[] onSelectionNotifyEventGenericListeners;
Undocumented in source.
addOnSelectionNotify
gulong addOnSelectionNotify(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)
callBackSelectionNotifyEventGeneric
int callBackSelectionNotifyEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnSelectionNotifyEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionNotifyEventGenericDestroy
void callBackSelectionNotifyEventGenericDestroy(OnSelectionNotifyEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionReceivedDelegateWrapper
class OnSelectionReceivedDelegateWrapper
Undocumented in source.
onSelectionReceivedListeners
OnSelectionReceivedDelegateWrapper[] onSelectionReceivedListeners;
Undocumented in source.
addOnSelectionReceived
gulong addOnSelectionReceived(void delegate(SelectionData, uint, Widget) dlg, ConnectFlags connectFlags)
callBackSelectionReceived
void callBackSelectionReceived(GtkWidget* widgetStruct, GtkSelectionData* data, uint time, OnSelectionReceivedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionReceivedDestroy
void callBackSelectionReceivedDestroy(OnSelectionReceivedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionRequestDelegateWrapper
class OnSelectionRequestDelegateWrapper
Undocumented in source.
onSelectionRequestListeners
OnSelectionRequestDelegateWrapper[] onSelectionRequestListeners;
Undocumented in source.
addOnSelectionRequest
gulong addOnSelectionRequest(bool delegate(GdkEventSelection*, Widget) dlg, ConnectFlags connectFlags)

The ::selection-request-event signal will be emitted when another client requests ownership of the selection owned by the @widget's window.

callBackSelectionRequest
int callBackSelectionRequest(GtkWidget* widgetStruct, GdkEventSelection* event, OnSelectionRequestDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionRequestDestroy
void callBackSelectionRequestDestroy(OnSelectionRequestDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSelectionRequestEventGenericDelegateWrapper
class OnSelectionRequestEventGenericDelegateWrapper
Undocumented in source.
onSelectionRequestEventGenericListeners
OnSelectionRequestEventGenericDelegateWrapper[] onSelectionRequestEventGenericListeners;
Undocumented in source.
addOnSelectionRequest
gulong addOnSelectionRequest(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::selection-request-event signal will be emitted when another client requests ownership of the selection owned by the @widget's window.

callBackSelectionRequestEventGeneric
int callBackSelectionRequestEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnSelectionRequestEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionRequestEventGenericDestroy
void callBackSelectionRequestEventGenericDestroy(OnSelectionRequestEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnShowDelegateWrapper
class OnShowDelegateWrapper
Undocumented in source.
onShowListeners
OnShowDelegateWrapper[] onShowListeners;
Undocumented in source.
addOnShow
gulong addOnShow(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::show signal is emitted when @widget is shown, for example with gtk_widget_show().

callBackShow
void callBackShow(GtkWidget* widgetStruct, OnShowDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackShowDestroy
void callBackShowDestroy(OnShowDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnShowHelpDelegateWrapper
class OnShowHelpDelegateWrapper
Undocumented in source.
onShowHelpListeners
OnShowHelpDelegateWrapper[] onShowHelpListeners;
Undocumented in source.
addOnShowHelp
gulong addOnShowHelp(bool delegate(GtkWidgetHelpType, Widget) dlg, ConnectFlags connectFlags)
callBackShowHelp
int callBackShowHelp(GtkWidget* widgetStruct, GtkWidgetHelpType helpType, OnShowHelpDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackShowHelpDestroy
void callBackShowHelpDestroy(OnShowHelpDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSizeAllocateDelegateWrapper
class OnSizeAllocateDelegateWrapper
Undocumented in source.
onSizeAllocateListeners
OnSizeAllocateDelegateWrapper[] onSizeAllocateListeners;
Undocumented in source.
addOnSizeAllocate
gulong addOnSizeAllocate(void delegate(Allocation, Widget) dlg, ConnectFlags connectFlags)
callBackSizeAllocate
void callBackSizeAllocate(GtkWidget* widgetStruct, Allocation allocation, OnSizeAllocateDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSizeAllocateDestroy
void callBackSizeAllocateDestroy(OnSizeAllocateDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnStateChangedDelegateWrapper
class OnStateChangedDelegateWrapper
Undocumented in source.
onStateChangedListeners
OnStateChangedDelegateWrapper[] onStateChangedListeners;
Undocumented in source.
addOnStateChanged
gulong addOnStateChanged(void delegate(GtkStateType, Widget) dlg, ConnectFlags connectFlags)

The ::state-changed signal is emitted when the widget state changes. See gtk_widget_get_state().

callBackStateChanged
void callBackStateChanged(GtkWidget* widgetStruct, GtkStateType state, OnStateChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackStateChangedDestroy
void callBackStateChangedDestroy(OnStateChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnStateFlagsChangedDelegateWrapper
class OnStateFlagsChangedDelegateWrapper
Undocumented in source.
onStateFlagsChangedListeners
OnStateFlagsChangedDelegateWrapper[] onStateFlagsChangedListeners;
Undocumented in source.
addOnStateFlagsChanged
gulong addOnStateFlagsChanged(void delegate(GtkStateFlags, Widget) dlg, ConnectFlags connectFlags)

The ::state-flags-changed signal is emitted when the widget state changes, see gtk_widget_get_state_flags().

callBackStateFlagsChanged
void callBackStateFlagsChanged(GtkWidget* widgetStruct, GtkStateFlags flags, OnStateFlagsChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackStateFlagsChangedDestroy
void callBackStateFlagsChangedDestroy(OnStateFlagsChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnStyleSetDelegateWrapper
class OnStyleSetDelegateWrapper
Undocumented in source.
onStyleSetListeners
OnStyleSetDelegateWrapper[] onStyleSetListeners;
Undocumented in source.
addOnStyleSet
gulong addOnStyleSet(void delegate(Style, Widget) dlg, ConnectFlags connectFlags)

The ::style-set signal is emitted when a new style has been set on a widget. Note that style-modifying functions like gtk_widget_modify_base() also cause this signal to be emitted.

callBackStyleSet
void callBackStyleSet(GtkWidget* widgetStruct, GtkStyle* previousStyle, OnStyleSetDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackStyleSetDestroy
void callBackStyleSetDestroy(OnStyleSetDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnStyleUpdatedDelegateWrapper
class OnStyleUpdatedDelegateWrapper
Undocumented in source.
onStyleUpdatedListeners
OnStyleUpdatedDelegateWrapper[] onStyleUpdatedListeners;
Undocumented in source.
addOnStyleUpdated
gulong addOnStyleUpdated(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::style-updated signal is a convenience signal that is emitted when the #GtkStyleContext::changed signal is emitted on the @widget's associated #GtkStyleContext as returned by gtk_widget_get_style_context().

callBackStyleUpdated
void callBackStyleUpdated(GtkWidget* widgetStruct, OnStyleUpdatedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackStyleUpdatedDestroy
void callBackStyleUpdatedDestroy(OnStyleUpdatedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnTouchDelegateWrapper
class OnTouchDelegateWrapper
Undocumented in source.
onTouchListeners
OnTouchDelegateWrapper[] onTouchListeners;
Undocumented in source.
addOnTouch
gulong addOnTouch(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)
callBackTouch
int callBackTouch(GtkWidget* widgetStruct, GdkEvent* object, OnTouchDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackTouchDestroy
void callBackTouchDestroy(OnTouchDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnUnmapDelegateWrapper
class OnUnmapDelegateWrapper
Undocumented in source.
onUnmapListeners
OnUnmapDelegateWrapper[] onUnmapListeners;
Undocumented in source.
addOnUnmap
gulong addOnUnmap(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::unmap signal is emitted when @widget is going to be unmapped, which means that either it or any of its parents up to the toplevel widget have been set as hidden.

callBackUnmap
void callBackUnmap(GtkWidget* widgetStruct, OnUnmapDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackUnmapDestroy
void callBackUnmapDestroy(OnUnmapDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnUnmapEventDelegateWrapper
class OnUnmapEventDelegateWrapper
Undocumented in source.
onUnmapEventListeners
OnUnmapEventDelegateWrapper[] onUnmapEventListeners;
Undocumented in source.
addOnUnmapEvent
gulong addOnUnmapEvent(bool delegate(GdkEventAny*, Widget) dlg, ConnectFlags connectFlags)

The ::unmap-event signal will be emitted when the @widget's window is unmapped. A window is unmapped when it becomes invisible on the screen.

callBackUnmapEvent
int callBackUnmapEvent(GtkWidget* widgetStruct, GdkEventAny* event, OnUnmapEventDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackUnmapEventDestroy
void callBackUnmapEventDestroy(OnUnmapEventDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnUnmapEventGenericDelegateWrapper
class OnUnmapEventGenericDelegateWrapper
Undocumented in source.
onUnmapEventGenericListeners
OnUnmapEventGenericDelegateWrapper[] onUnmapEventGenericListeners;
Undocumented in source.
addOnUnmapEvent
gulong addOnUnmapEvent(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::unmap-event signal will be emitted when the @widget's window is unmapped. A window is unmapped when it becomes invisible on the screen.

callBackUnmapEventGeneric
int callBackUnmapEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnUnmapEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackUnmapEventGenericDestroy
void callBackUnmapEventGenericDestroy(OnUnmapEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnUnrealizeDelegateWrapper
class OnUnrealizeDelegateWrapper
Undocumented in source.
onUnrealizeListeners
OnUnrealizeDelegateWrapper[] onUnrealizeListeners;
Undocumented in source.
addOnUnrealize
gulong addOnUnrealize(void delegate(Widget) dlg, ConnectFlags connectFlags)

The ::unrealize signal is emitted when the #GdkWindow associated with @widget is destroyed, which means that gtk_widget_unrealize() has been called or the widget has been unmapped (that is, it is going to be hidden).

callBackUnrealize
void callBackUnrealize(GtkWidget* widgetStruct, OnUnrealizeDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackUnrealizeDestroy
void callBackUnrealizeDestroy(OnUnrealizeDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnVisibilityNotifyDelegateWrapper
class OnVisibilityNotifyDelegateWrapper
Undocumented in source.
onVisibilityNotifyListeners
OnVisibilityNotifyDelegateWrapper[] onVisibilityNotifyListeners;
Undocumented in source.
addOnVisibilityNotify
gulong addOnVisibilityNotify(bool delegate(GdkEventVisibility*, Widget) dlg, ConnectFlags connectFlags)

The ::visibility-notify-event will be emitted when the @widget's window is obscured or unobscured.

callBackVisibilityNotify
int callBackVisibilityNotify(GtkWidget* widgetStruct, GdkEventVisibility* event, OnVisibilityNotifyDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackVisibilityNotifyDestroy
void callBackVisibilityNotifyDestroy(OnVisibilityNotifyDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnVisibilityNotifyEventGenericDelegateWrapper
class OnVisibilityNotifyEventGenericDelegateWrapper
Undocumented in source.
onVisibilityNotifyEventGenericListeners
OnVisibilityNotifyEventGenericDelegateWrapper[] onVisibilityNotifyEventGenericListeners;
Undocumented in source.
addOnVisibilityNotify
gulong addOnVisibilityNotify(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::visibility-notify-event will be emitted when the @widget's window is obscured or unobscured.

callBackVisibilityNotifyEventGeneric
int callBackVisibilityNotifyEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnVisibilityNotifyEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackVisibilityNotifyEventGenericDestroy
void callBackVisibilityNotifyEventGenericDestroy(OnVisibilityNotifyEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnWindowStateDelegateWrapper
class OnWindowStateDelegateWrapper
Undocumented in source.
onWindowStateListeners
OnWindowStateDelegateWrapper[] onWindowStateListeners;
Undocumented in source.
addOnWindowState
gulong addOnWindowState(bool delegate(GdkEventWindowState*, Widget) dlg, ConnectFlags connectFlags)

The ::window-state-event will be emitted when the state of the toplevel window associated to the @widget changes.

callBackWindowState
int callBackWindowState(GtkWidget* widgetStruct, GdkEventWindowState* event, OnWindowStateDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackWindowStateDestroy
void callBackWindowStateDestroy(OnWindowStateDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnWindowStateEventGenericDelegateWrapper
class OnWindowStateEventGenericDelegateWrapper
Undocumented in source.
onWindowStateEventGenericListeners
OnWindowStateEventGenericDelegateWrapper[] onWindowStateEventGenericListeners;
Undocumented in source.
addOnWindowState
gulong addOnWindowState(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

The ::window-state-event will be emitted when the state of the toplevel window associated to the @widget changes.

callBackWindowStateEventGeneric
int callBackWindowStateEventGeneric(GtkWidget* widgetStruct, GdkEvent* event, OnWindowStateEventGenericDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackWindowStateEventGenericDestroy
void callBackWindowStateEventGenericDestroy(OnWindowStateEventGenericDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
cairoShouldDrawWindow
bool cairoShouldDrawWindow(Context cr, GdkWin window)

This function is supposed to be called in #GtkWidget::draw implementations for widgets that support multiple windows. @cr must be untransformed from invoking of the draw function. This function will return %TRUE if the contents of the given @window are supposed to be drawn and %FALSE otherwise. Note that when the drawing was not initiated by the windowing system this function will return %TRUE for all windows, so you need to draw the bottommost window first. Also, do not use “else if” statements to check which window should be drawn.

cairoTransformToWindow
void cairoTransformToWindow(Context cr, Widget widget, GdkWin window)

Transforms the given cairo context @cr that from @widget-relative coordinates to @window-relative coordinates. If the @widget’s window is not an ancestor of @window, no modification will be applied.

distributeNaturalAllocation
int distributeNaturalAllocation(int extraSpace, uint nRequestedSizes, GtkRequestedSize* sizes)

Distributes @extra_space to child @sizes by bringing smaller children up to natural size first.

From CellEditableIF

getCellEditableStruct
GtkCellEditable* getCellEditableStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
editingDone
void editingDone()

Emits the #GtkCellEditable::editing-done signal.

removeWidget
void removeWidget()

Emits the #GtkCellEditable::remove-widget signal.

startEditing
void startEditing(Event event)

Begins editing on a @cell_editable. @event is the #GdkEvent that began the editing process. It may be %NULL, in the instance that editing was initiated through programatic means.

addOnEditingDone
gulong addOnEditingDone(void delegate(CellEditableIF) dlg, ConnectFlags connectFlags)

This signal is a sign for the cell renderer to update its value from the @cell_editable.

addOnRemoveWidget
gulong addOnRemoveWidget(void delegate(CellEditableIF) dlg, ConnectFlags connectFlags)

This signal is meant to indicate that the cell is finished editing, and the widget may now be destroyed.

From EditableIF

getEditableStruct
GtkEditable* getEditableStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
copyClipboard
void copyClipboard()

Copies the contents of the currently selected content in the editable and puts it on the clipboard.

cutClipboard
void cutClipboard()

Removes the contents of the currently selected content in the editable and puts it on the clipboard.

deleteSelection
void deleteSelection()

Deletes the currently selected text of the editable. This call doesn’t do anything if there is no selected text.

deleteText
void deleteText(int startPos, int endPos)

Deletes a sequence of characters. The characters that are deleted are those characters at positions from @start_pos up to, but not including @end_pos. If @end_pos is negative, then the characters deleted are those from @start_pos to the end of the text.

getChars
string getChars(int startPos, int endPos)

Retrieves a sequence of characters. The characters that are retrieved are those characters at positions from @start_pos up to, but not including @end_pos. If @end_pos is negative, then the characters retrieved are those characters from @start_pos to the end of the text.

getEditable
bool getEditable()

Retrieves whether @editable is editable. See gtk_editable_set_editable().

getPosition
int getPosition()

Retrieves the current position of the cursor relative to the start of the content of the editable.

getSelectionBounds
bool getSelectionBounds(int startPos, int endPos)

Retrieves the selection bound of the editable. start_pos will be filled with the start of the selection and @end_pos with end. If no text was selected both will be identical and %FALSE will be returned.

insertText
void insertText(string newText, int newTextLength, int position)

Inserts @new_text_length bytes of @new_text into the contents of the widget, at position @position.

pasteClipboard
void pasteClipboard()

Pastes the content of the clipboard to the current position of the cursor in the editable.

selectRegion
void selectRegion(int startPos, int endPos)

Selects a region of text. The characters that are selected are those characters at positions from @start_pos up to, but not including @end_pos. If @end_pos is negative, then the characters selected are those characters from @start_pos to the end of the text.

setEditable
void setEditable(bool isEditable)

Determines if the user can edit the text in the editable widget or not.

setPosition
void setPosition(int position)

Sets the cursor position in the editable to the given value.

addOnChanged
gulong addOnChanged(void delegate(EditableIF) dlg, ConnectFlags connectFlags)

The ::changed signal is emitted at the end of a single user-visible operation on the contents of the #GtkEditable.

addOnDeleteText
gulong addOnDeleteText(void delegate(int, int, EditableIF) dlg, ConnectFlags connectFlags)

This signal is emitted when text is deleted from the widget by the user. The default handler for this signal will normally be responsible for deleting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission(), it is possible to modify the range of deleted text, or prevent it from being deleted entirely. The @start_pos and @end_pos parameters are interpreted as for gtk_editable_delete_text().

addOnInsertText
gulong addOnInsertText(void delegate(string, int, void*, EditableIF) dlg, ConnectFlags connectFlags)

This signal is emitted when text is inserted into the widget by the user. The default handler for this signal will normally be responsible for inserting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission(), it is possible to modify the inserted text, or prevent it from being inserted entirely.

Meta