Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Class Gtk.Widget

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkWidget
Class : Widget
Implements: Atk.ImplementorIface, Gtk.Buildable
Subclasses: EvinceView.View, EvinceView.ViewPresentation, GWeather.LocationEntry, GWeather.TimezoneMenu, Gkbd.Indicator, Gkbd.KeyboardDrawing, GnomeBluetooth.Chooser, GnomeBluetooth.ChooserButton, GnomeBluetooth.ChooserCombo, GnomeBluetooth.FilterWidget, Gtk.AboutDialog, Gtk.AccelLabel, Gtk.Alignment, Gtk.AppChooserButton, Gtk.AppChooserDialog, Gtk.AppChooserWidget, Gtk.Arrow, Gtk.AspectFrame, Gtk.Assistant, Gtk.Bin, Gtk.Box, Gtk.Button, Gtk.ButtonBox, Gtk.Calendar, Gtk.CellView, Gtk.CheckButton, Gtk.CheckMenuItem, Gtk.ColorButton, Gtk.ColorSelection, Gtk.ColorSelectionDialog, Gtk.ComboBox, Gtk.ComboBoxText, Gtk.Container, Gtk.Dialog, Gtk.DrawingArea, Gtk.Entry, Gtk.EventBox, Gtk.Expander, Gtk.FileChooserButton, Gtk.FileChooserDialog, Gtk.FileChooserWidget, Gtk.Fixed, Gtk.FontButton, Gtk.FontSelection, Gtk.FontSelectionDialog, Gtk.Frame, Gtk.Grid, Gtk.HBox, Gtk.HButtonBox, Gtk.HPaned, Gtk.HSV, Gtk.HScale, Gtk.HScrollbar, Gtk.HSeparator, Gtk.HandleBox, Gtk.IconView, Gtk.Image, Gtk.ImageMenuItem, Gtk.InfoBar, Gtk.Invisible, Gtk.Label, Gtk.Layout, Gtk.LinkButton, Gtk.Menu, Gtk.MenuBar, Gtk.MenuItem, Gtk.MenuShell, Gtk.MenuToolButton, Gtk.MessageDialog, Gtk.Misc, Gtk.Notebook, Gtk.OffscreenWindow, Gtk.Paned, Gtk.Plug, Gtk.ProgressBar, Gtk.RadioButton, Gtk.RadioMenuItem, Gtk.RadioToolButton, Gtk.Range, Gtk.RecentChooserDialog, Gtk.RecentChooserMenu, Gtk.RecentChooserWidget, Gtk.Scale, Gtk.ScaleButton, Gtk.Scrollbar, Gtk.ScrolledWindow, Gtk.Separator, Gtk.SeparatorMenuItem, Gtk.SeparatorToolItem, Gtk.Socket, Gtk.SpinButton, Gtk.Spinner, Gtk.Statusbar, Gtk.Switch, Gtk.Table, Gtk.TearoffMenuItem, Gtk.TextView, Gtk.ToggleButton, Gtk.ToggleToolButton, Gtk.ToolButton, Gtk.ToolItem, Gtk.ToolItemGroup, Gtk.ToolPalette, Gtk.Toolbar, Gtk.TreeView, Gtk.VBox, Gtk.VButtonBox, Gtk.VPaned, Gtk.VScale, Gtk.VScrollbar, Gtk.VSeparator, Gtk.Viewport, Gtk.VolumeButton, Gtk.Window
Extends: GObject.InitiallyUnowned
GtkWidget is the base class all widgets in GTK+ derive from. It manages the
widget lifecycle, states and style.

Height-for-width Geometry Management

GTK+ uses a height-for-width (and width-for-height) geometry management
system. Height-for-width means that a widget can change how much
vertical space it needs, depending on the amount of horizontal space
that it is given (and similar for width-for-height). The most common
example is a label that reflows to fill up the available width, wraps
to fewer lines, and therefore needs less height.
Height-for-width geometry management is implemented in GTK+ by way
of five virtual methods:

GtkWidgetClass.get_request_mode()
GtkWidgetClass.get_preferred_width()
GtkWidgetClass.get_preferred_height()
GtkWidgetClass.get_preferred_height_for_width()
GtkWidgetClass.get_preferred_width_for_height()

There are some important things to keep in mind when implementing
height-for-width and when using it in container implementations.
The geometry management system will query a widget hierarchy in
only one orientation at a time. When widgets are initially queried
for their minimum sizes it is generally done in two initial passes
in the GtkSizeRequestMode chosen by the toplevel.
For example, when queried in the normal
GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH mode:
First, the default minimum and natural width for each widget
in the interface will be computed using gtk_widget_get_preferred_width().
Because the preferred widths for each container depend on the preferred
widths of their children, this information propagates up the hierarchy,
and finally a minimum and natural width is determined for the entire
toplevel. Next, the toplevel will use the minimum width to query for the
minimum height contextual to that width using
gtk_widget_get_preferred_height_for_width(), which will also be a highly
recursive operation. The minimum height for the minimum width is normally
used to set the minimum size constraint on the toplevel
(unless gtk_window_set_geometry_hints() is explicitly used instead).
After the toplevel window has initially requested its size in both
dimensions it can go on to allocate itself a reasonable size (or a size
previously specified with gtk_window_set_default_size()). During the
recursive allocation process it's important to note that request cycles
will be recursively executed while container widgets allocate their children.
Each container widget, once allocated a size, will go on to first share the
space in one orientation among its children and then request each child's
height for its target allocated width or its width for allocated height,
depending. In this way a GtkWidget will typically be requested its size
a number of times before actually being allocated a size. The size a
widget is finally allocated can of course differ from the size it has
requested. For this reason, GtkWidget caches a small number of results
to avoid re-querying for the same sizes in one allocation cycle.
See GtkContainer's
geometry management section
to learn more about how height-for-width allocations are performed
by container widgets.
If a widget does move content around to intelligently use up the
allocated size then it must support the request in both
GtkSizeRequestModes even if the widget in question only
trades sizes in a single orientation.
For instance, a GtkLabel that does height-for-width word wrapping
will not expect to have GtkWidgetClass.get_preferred_height() called
because that call is specific to a width-for-height request. In this
case the label must return the height required for its own minimum
possible width. By following this rule any widget that handles
height-for-width or width-for-height requests will always be allocated
at least enough space to fit its own content.
Here are some examples of how a GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH widget
generally deals with width-for-height requests, for GtkWidgetClass.get_preferred_height()
it will do:
static void
foo_widget_get_preferred_height (GtkWidget *widget, gint *min_height, gint *nat_height)
{
if (i_am_in_height_for_width_mode)
{
gint min_width;
GTK_WIDGET_GET_CLASS (widget)->get_preferred_width (widget, &min_width, NULL);
GTK_WIDGET_GET_CLASS (widget)->get_preferred_height_for_width (widget, min_width,
min_height, nat_height);
}
else
{
... some widgets do both. For instance, if a GtkLabel is rotated to 90 degrees
it will return the minimum and natural height for the rotated label here.
}
}
]]>

And in GtkWidgetClass.get_preferred_width_for_height() it will simply return
the minimum and natural width:
static void
foo_widget_get_preferred_width_for_height (GtkWidget *widget, gint for_height,
gint *min_width, gint *nat_width)
{
if (i_am_in_height_for_width_mode)
{
GTK_WIDGET_GET_CLASS (widget)->get_preferred_width (widget, min_width, nat_width);
}
else
{
... again if a widget is sometimes operating in width-for-height mode
(like a rotated GtkLabel) it can go ahead and do its real width for
height calculation here.
}
}
]]>

Often a widget needs to get its own request during size request or
allocation. For example, when computing height it may need to also
compute width. Or when deciding how to use an allocation, the widget
may need to know its natural size. In these cases, the widget should
be careful to call its virtual methods directly, like this:

Widget calling its own size request method.

GTK_WIDGET_GET_CLASS(widget)->get_preferred_width (widget),
&min, &natural);


It will not work to use the wrapper functions, such as
gtk_widget_get_preferred_width() inside your own size request
implementation. These return a request adjusted by GtkSizeGroup
and by the GtkWidgetClass.adjust_size_request() virtual method. If a
widget used the wrappers inside its virtual method implementations,
then the adjustments (such as widget margins) would be applied
twice. GTK+ therefore does not allow this and will warn if you try
to do it.
Of course if you are getting the size request for
another widget, such as a child of a
container, you must use the wrapper APIs.
Otherwise, you would not properly consider widget margins,
GtkSizeGroup, and so forth.



Style Properties

GtkWidget introduces style
properties
- these are basically object properties that are stored
not on the object, but in the style object associated to the widget. Style
properties are set in resource files.
This mechanism is used for configuring such things as the location of the
scrollbar arrows through the theme, giving theme authors more control over the
look of applications without the need to write a theme engine in C.


Use gtk_widget_class_install_style_property() to install style properties for
a widget class, gtk_widget_class_find_style_property() or
gtk_widget_class_list_style_properties() to get information about existing
style properties and gtk_widget_style_get_property(), gtk_widget_style_get() or
gtk_widget_style_get_valist() to obtain the value of a style property.



GtkWidget as GtkBuildable

The GtkWidget implementation of the GtkBuildable interface supports a
custom <accelerator> element, which has attributes named key,
modifiers and signal and allows to specify accelerators.


A UI definition fragment specifying an accelerator



]]>



In addition to accelerators, GtkWidget also support a
custom <accessible> element, which supports actions and relations.
Properties on the accessible implementation of an object can be set by accessing the
internal child "accessible" of a GtkWidget.


A UI definition fragment specifying an accessible

I am a Label for a Button



Click the button.




Clickable Button



]]>



Finally, GtkWidget allows style information such as style classes to
be associated with widgets, using the custom <style> element:

A UI definition fragment specifying an style class



]]>



Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
EvinceDocument.Document
Method
EvinceDocument.Document.factory_add_filters (Widget chooser, Document document) : none
EvinceDocument.Document
Method
EvinceDocument.Document.misc_paint_one_page (Context cr, Widget widget, RectangleInt area, Border border, gboolean highlight, gboolean inverted_colors) : none
Gkbd.IndicatorPluginManager
Method
decorate_widget (Widget widget, gint32 group, String group_description, KeyboardConfig config) : Gtk.Widget
Gkbd.IndicatorPluginManager
Method
group_changed (Widget notebook, gint32 new_group) : none
Gtk
Method
Gtk.cairo_transform_to_window (Context cr, Widget widget, Window window) : none
Transforms the given cairo context cr that from widget-relative
coordinates to window-relative coordinates.
Gtk
Method
Gtk.device_grab_add (Widget widget, Device device, gboolean block_others) : none
Adds a GTK+ grab on device, so all the events on device and its
associated pointer or keyboard (if any) are delivered to widget.
Gtk
Method
Gtk.device_grab_remove (Widget widget, Device device) : none
Removes a device grab from the given widget.
Gtk
Method
Gtk.drag_get_source_widget (DragContext context) : Gtk.Widget
Determines the source widget for a drag.
Gtk
Method
Gtk.drag_set_icon_widget (DragContext context, Widget widget, gint32 hot_x, gint32 hot_y) : none
Changes the icon for a widget to a given widget.
Gtk
Method
Gtk.draw_insertion_cursor (Widget widget, Context cr, RectangleInt location, gboolean is_primary, TextDirection direction, gboolean draw_arrow) : none
Draws a text caret on cr at location.
Gtk
Method
Gtk.get_event_widget (Event event) : Gtk.Widget
If event is NULL or the event was not associated with any widget,
returns NULL, otherwise returns the widget that received the event
originally.
Gtk
Method
Gtk.grab_get_current () : Gtk.Widget
Queries the current grab of the default window group.
Gtk
Method
Gtk.paint_arrow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, ArrowType arrow_type, gboolean fill, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws an arrow in the given rectangle on cr using the given
parameters.
Gtk
Method
Gtk.paint_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a box on cr with the given parameters.
Gtk
Method
Gtk.paint_box_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side, gint32 gap_x, gint32 gap_width) : none
Draws a box in cr using the given style and state and shadow type,
leaving a gap in one side.
Gtk
Method
Gtk.paint_check (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a check button indicator in the given rectangle on cr with
the given parameters.
Gtk
Method
Gtk.paint_diamond (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a diamond in the given rectangle on window using the given
parameters.
Gtk
Method
Gtk.paint_expander (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x, gint32 y, ExpanderStyle expander_style) : none
Draws an expander as used in GtkTreeView.
Gtk
Method
Gtk.paint_extension (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side) : none
Draws an extension, i.e.
Gtk
Method
Gtk.paint_flat_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a flat box on cr with the given parameters.
Gtk
Method
Gtk.paint_focus (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a focus indicator around the given rectangle on cr using the
given style.
Gtk
Method
Gtk.paint_handle (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, Orientation orientation) : none
Draws a handle as used in GtkHandleBox and GtkPaned.
Gtk
Method
Gtk.paint_hline (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x1, gint32 x2, gint32 y) : none
Draws a horizontal line from (x1, y) to (x2, y) in cr
using the given style and state.
Gtk
Method
Gtk.paint_layout (Style style, Context cr, StateType state_type, gboolean use_text, Widget widget, String detail, gint32 x, gint32 y, Layout layout) : none
Draws a layout on cr using the given parameters.
Gtk
Method
Gtk.paint_option (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a radio button indicator in the given rectangle on cr with
the given parameters.
Gtk
Method
Gtk.paint_resize_grip (Style style, Context cr, StateType state_type, Widget widget, String detail, WindowEdge edge, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a resize grip in the given rectangle on cr using the given
parameters.
Gtk
Method
Gtk.paint_shadow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type.
Gtk
Method
Gtk.paint_shadow_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side, gint32 gap_x, gint32 gap_width) : none
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type, leaving a
gap in one side.
Gtk
Method
Gtk.paint_slider (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, Orientation orientation) : none
Draws a slider in the given rectangle on cr using the
given style and orientation.
Gtk
Method
Gtk.paint_spinner (Style style, Context cr, StateType state_type, Widget widget, String detail, guint32 step, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a spinner on window using the given parameters.
Gtk
Method
Gtk.paint_tab (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws an option menu tab (i.e.
Gtk
Method
Gtk.paint_vline (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 y1_, gint32 y2_, gint32 x) : none
Draws a vertical line from (x, y1_) to (x, y2_) in cr
using the given style and state.
Gtk
Method
Gtk.propagate_event (Widget widget, Event event) : none
Sends an event to a widget, propagating the event to parent widgets
if the event remains unhandled.
Gtk
Method
Gtk.rc_get_style (Widget widget) : Gtk.Style
Finds all matching RC styles for a given widget,
composites them together, and then creates a
GtkStyle representing the composite appearance.
Gtk
Method
Gtk.selection_add_target (Widget widget, Atom selection, Atom target, guint32 info) : none
Appends a specified target to the list of supported targets for a
given widget and selection.
Gtk
Method
Gtk.selection_add_targets (Widget widget, Atom selection, Array targets, guint32 ntargets) : none
Prepends a table of targets to the list of supported targets
for a given widget and selection.
Gtk
Method
Gtk.selection_clear_targets (Widget widget, Atom selection) : none
Remove all targets registered for the given selection for the
widget.
Gtk
Method
Gtk.selection_convert (Widget widget, Atom selection, Atom target, guint32 time_) : gboolean
Requests the contents of a selection.
Gtk
Method
Gtk.selection_owner_set (Widget widget, Atom selection, guint32 time_) : gboolean
Claims ownership of a given selection for a particular widget,
or, if widget is NULL, release ownership of the selection.
Gtk
Method
Gtk.selection_owner_set_for_display (Display display, Widget widget, Atom selection, guint32 time_) : gboolean
Claim ownership of a given selection for a particular widget, or,
if widget is NULL, release ownership of the selection.
Gtk
Method
Gtk.selection_remove_all (Widget widget) : none
Removes all handlers and unsets ownership of all
selections for a widget.
Gtk
Method
Gtk.test_create_simple_window (String window_title, String dialog_text) : Gtk.Widget
Create a simple window with window title window_title and
text contents dialog_text.
Gtk
Method
Gtk.test_find_label (Widget widget, String label_pattern) : Gtk.Widget
This function will search widget and all its descendants for a GtkLabel
widget with a text string matching label_pattern.
Gtk
Method
Gtk.test_find_sibling (Widget base_widget, Number widget_type) : Gtk.Widget
This function will search siblings of base_widget and siblings of its
ancestors for all widgets matching widget_type.
Gtk
Method
Gtk.test_find_widget (Widget widget, String label_pattern, Number widget_type) : Gtk.Widget
This function will search the descendants of widget for a widget
of type widget_type that has a label matching label_pattern next
to it.
Gtk
Method
Gtk.test_slider_get_value (Widget widget) : gdouble
Retrive the literal adjustment value for GtkRange based
widgets and spin buttons.
Gtk
Method
Gtk.test_slider_set_perc (Widget widget, gdouble percentage) : none
This function will adjust the slider position of all GtkRange
based widgets, such as scrollbars or scales, it'll also adjust
spin buttons.
Gtk
Method
Gtk.test_text_get (Widget widget) : String
Retrive the text string of widget if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
Gtk
Method
Gtk.test_text_set (Widget widget, String string) : none
Set the text string of widget to string if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
Gtk
Method
Gtk.test_widget_click (Widget widget, guint32 button, ModifierType modifiers) : gboolean
This function will generate a button click (button press and button
release event) in the middle of the first GdkWindow found that belongs
to widget.
Gtk
Method
Gtk.test_widget_send_key (Widget widget, guint32 keyval, ModifierType modifiers) : gboolean
This function will generate keyboard press and release events in
the middle of the first GdkWindow found that belongs to widget.
Gtk.AccelLabel
Property
accel_widget : Gtk.Widget
Gtk.AccelLabel
Method
get_accel_widget () : Gtk.Widget
Fetches the widget monitored by this accelerator label.
Gtk.AccelLabel
Method
set_accel_widget (Widget accel_widget) : none
Sets the widget to be monitored by this accelerator label.
Gtk.Accessible
Method
get_widget () : Gtk.Widget
Gets the GtkWidget corresponding to the GtkAccessible.
Gtk.Accessible
Method
set_widget (Widget widget) : none
Sets the GtkWidget corresponding to the GtkAccessible.
Gtk.Action
Method
create_icon (gint32 icon_size) : Gtk.Widget
This function is intended for use by action implementations to
create icons displayed in the proxy widgets.
Gtk.Action
Method
create_menu () : Gtk.Widget
If action provides a GtkMenu widget as a submenu for the menu
item or the toolbar item it creates, this function returns an
instance of that menu.
Gtk.Action
Method
create_menu_item () : Gtk.Widget
Creates a menu item widget that proxies for the given action.
Gtk.Action
Method
create_tool_item () : Gtk.Widget
Creates a toolbar item widget that proxies for the given action.
Gtk.ActionGroup
Signal
connect_proxy (ActionGroup self, Action action, Widget proxy) : none
The ::connect-proxy signal is emitted after connecting a proxy to
an action in the group.
Gtk.ActionGroup
Signal
disconnect_proxy (ActionGroup self, Action action, Widget proxy) : none
The ::disconnect-proxy signal is emitted after disconnecting a proxy
from an action in the group.
Gtk.AppChooserDialog
Method
get_widget () : Gtk.Widget
Returns the GtkAppChooserWidget of this dialog.
Gtk.Assistant
Signal
prepare (Assistant self, Widget page) : none
The ::prepare signal is emitted when a new page is set as the assistant's
current page, before making the new page visible.
Gtk.Assistant
Method
add_action_widget (Widget child) : none
Adds a widget to the action area of a GtkAssistant.
Gtk.Assistant
Method
append_page (Widget page) : gint32
Appends a page to the assistant.
Gtk.Assistant
Method
get_nth_page (gint32 page_num) : Gtk.Widget
Returns the child widget contained in page number page_num.
Gtk.Assistant
Method
get_page_complete (Widget page) : gboolean
Gets whether page is complete.
Gtk.Assistant
Method
get_page_header_image (Widget page) : GdkPixbuf.Pixbuf
Gets the header image for page.
Gtk.Assistant
Method
get_page_side_image (Widget page) : GdkPixbuf.Pixbuf
Gets the header image for page.
Gtk.Assistant
Method
get_page_title (Widget page) : String
Gets the title for page.
Gtk.Assistant
Method
get_page_type (Widget page) : Gtk.AssistantPageType
Gets the page type of page.
Gtk.Assistant
Method
insert_page (Widget page, gint32 position) : gint32
Inserts a page in the assistant at a given position.
Gtk.Assistant
Method
prepend_page (Widget page) : gint32
Prepends a page to the assistant.
Gtk.Assistant
Method
remove_action_widget (Widget child) : none
Removes a widget from the action area of a GtkAssistant.
Gtk.Assistant
Method
set_page_complete (Widget page, gboolean complete) : none
Sets whether page contents are complete.
Gtk.Assistant
Method
set_page_header_image (Widget page, Pixbuf pixbuf) : none
Sets a header image for page.
Gtk.Assistant
Method
set_page_side_image (Widget page, Pixbuf pixbuf) : none
Sets a header image for page.
Gtk.Assistant
Method
set_page_title (Widget page, String title) : none
Sets a title for page.
Gtk.Assistant
Method
set_page_type (Widget page, AssistantPageType type) : none
Sets the page type for page.
Gtk.Bin
Method
get_child () : Gtk.Widget
Gets the child of the GtkBin, or NULL if the bin contains
no child widget.
Gtk.Box
Method
pack_end (Widget child, gboolean expand, gboolean fill, guint32 padding) : none
Adds child to box, packed with reference to the end of box.
Gtk.Box
Method
pack_start (Widget child, gboolean expand, gboolean fill, guint32 padding) : none
Adds child to box, packed with reference to the start of box.
Gtk.Box
Method
query_child_packing (Widget child) : Object
Obtains information about how child is packed into box.
Gtk.Box
Method
reorder_child (Widget child, gint32 position) : none
Moves child to a new position in the list of box children.
Gtk.Box
Method
set_child_packing (Widget child, gboolean expand, gboolean fill, guint32 padding, PackType pack_type) : none
Sets the way child is packed into box.
Gtk.Button
Property
image : Gtk.Widget
The child widget to appear next to the button text.
Gtk.Button
Method
get_image () : Gtk.Widget
Gets the widget that is currenty set as the image of button.
Gtk.Button
Method
set_image (Widget image) : none
Set the image of button to the given widget.
Gtk.ButtonBox
Method
get_child_secondary (Widget child) : gboolean
Returns whether child should appear in a secondary group of children.
Gtk.ButtonBox
Method
set_child_secondary (Widget child, gboolean is_secondary) : none
Sets whether child should appear in a secondary group of children.
Gtk.CellArea
Method
activate (CellAreaContext context, Widget widget, RectangleInt cell_area, CellRendererState flags, gboolean edit_only) : gboolean
Activates area, usually by activating the currently focused
cell, however some subclasses which embed widgets in the area
can also activate a widget if it currently has the focus.
Gtk.CellArea
Method
activate_cell (Widget widget, CellRenderer renderer, Event event, RectangleInt cell_area, CellRendererState flags) : gboolean
This is used by GtkCellArea subclasses when handling events
to activate cells, the base GtkCellArea class activates cells
for keyboard events for free in its own GtkCellArea->activate()
implementation.
Gtk.CellArea
Method
event (CellAreaContext context, Widget widget, Event event, RectangleInt cell_area, CellRendererState flags) : gint32
Delegates event handling to a GtkCellArea.
Gtk.CellArea
Method
foreach_alloc (CellAreaContext context, Widget widget, RectangleInt cell_area, RectangleInt background_area, Function callback, void* callback_data) : none
Calls callback for every GtkCellRenderer in area with the
allocated rectangle inside cell_area.
Gtk.CellArea
Method
get_cell_allocation (CellAreaContext context, Widget widget, CellRenderer renderer, RectangleInt cell_area) : cairo.RectangleInt
Derives the allocation of renderer inside area if area
were to be renderered in cell_area.
Gtk.CellArea
Method
get_cell_at_position (CellAreaContext context, Widget widget, RectangleInt cell_area, gint32 x, gint32 y, Object out_values) : Gtk.CellRenderer
Gets the GtkCellRenderer at x and y coordinates inside area and optionally
returns the full cell allocation for it inside cell_area.
Gtk.CellArea
Method
get_preferred_height (CellAreaContext context, Widget widget) : Object
Retrieves a cell area's initial minimum and natural height.
Gtk.CellArea
Method
get_preferred_height_for_width (CellAreaContext context, Widget widget, gint32 width) : Object
Retrieves a cell area's minimum and natural height if it would be given
the specified width.
Gtk.CellArea
Method
get_preferred_width (CellAreaContext context, Widget widget) : Object
Retrieves a cell area's initial minimum and natural width.
Gtk.CellArea
Method
get_preferred_width_for_height (CellAreaContext context, Widget widget, gint32 height) : Object
Retrieves a cell area's minimum and natural width if it would be given
the specified height.
Gtk.CellArea
Method
inner_cell_area (Widget widget, RectangleInt cell_area) : cairo.RectangleInt
This is a convenience function for GtkCellArea implementations
to get the inner area where a given GtkCellRenderer will be
rendered.
Gtk.CellArea
Method
render (CellAreaContext context, Widget widget, Context cr, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags, gboolean paint_focus) : none
Renders area's cells according to area's layout onto widget at
the given coordinates.
Gtk.CellArea
Method
request_renderer (CellRenderer renderer, Orientation orientation, Widget widget, gint32 for_size) : Object
This is a convenience function for GtkCellArea implementations
to request size for cell renderers.
Gtk.CellRenderer
Method
activate (Event event, Widget widget, String path, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags) : gboolean
Passes an activate event to the cell renderer for possible processing.
Gtk.CellRenderer
Method
get_aligned_area (Widget widget, CellRendererState flags, RectangleInt cell_area) : cairo.RectangleInt
Gets the aligned area used by cell inside cell_area.
Gtk.CellRenderer
Method
get_preferred_height (Widget widget) : Object
Retreives a renderer's natural size when rendered to widget.
Gtk.CellRenderer
Method
get_preferred_height_for_width (Widget widget, gint32 width) : Object
Retreives a cell renderers's minimum and natural height if it were rendered to
Gtk.CellRenderer
Method
get_preferred_size (Widget widget) : Object
Retrieves the minimum and natural size of a cell taking
into account the widget's preference for height-for-width management.
Gtk.CellRenderer
Method
get_preferred_width (Widget widget) : Object
Retreives a renderer's natural size when rendered to widget.
Gtk.CellRenderer
Method
get_preferred_width_for_height (Widget widget, gint32 height) : Object
Retreives a cell renderers's minimum and natural width if it were rendered to
Gtk.CellRenderer
Method
get_size (Widget widget, RectangleInt cell_area) : Object
Obtains the width and height needed to render the cell.
Gtk.CellRenderer
Method
get_state (Widget widget, CellRendererState cell_state) : Gtk.StateFlags
Translates the cell renderer state to GtkStateFlags,
based on the cell renderer and widget sensitivity, and
the given GtkCellRendererState.
Gtk.CellRenderer
Method
render (Context cr, Widget widget, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags) : none
Invokes the virtual render function of the GtkCellRenderer.
Gtk.CellRenderer
Method
start_editing (Event event, Widget widget, String path, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags) : Gtk.CellEditable
Passes an activate event to the cell renderer for possible processing.
Gtk.ColorSelectionDialog
Property
cancel_button : Gtk.Widget read only
Gtk.ColorSelectionDialog
Property
color_selection : Gtk.Widget read only
Gtk.ColorSelectionDialog
Property
help_button : Gtk.Widget read only
Gtk.ColorSelectionDialog
Property
ok_button : Gtk.Widget read only
Gtk.ColorSelectionDialog
Method
get_color_selection () : Gtk.Widget
Retrieves the GtkColorSelection widget embedded in the dialog.
Gtk.Container
Property
child : Gtk.Widget
Gtk.Container
Signal
add (Container self, Widget object) : none
Gtk.Container
Signal
child_added (Container self, Widget object) : none
Gtk.Container
Signal
child_removed (Container self, Widget object) : none
Gtk.Container
Signal
remove (Container self, Widget object) : none
Gtk.Container
Signal
set_focus_child (Container self, Widget object) : none
Gtk.Container
Method
add (Widget widget) : none
Adds widget to container.
Gtk.Container
Method
child_get_property (Widget child, String property_name, Value value) : none
Gets the value of a child property for child and container.
Gtk.Container
Method
child_set_property (Widget child, String property_name, Value value) : none
Sets a child property for child and container.
Gtk.Container
Method
get_focus_child () : Gtk.Widget
Returns the current focus child widget inside container.
Gtk.Container
Method
get_path_for_child (Widget child) : Gtk.WidgetPath
Returns a newly created widget path representing all the widget hierarchy
from the toplevel down to child (this one not being included).
Gtk.Container
Method
propagate_draw (Widget child, Context cr) : none
When a container receives a call to the draw function, it must send
synthetic GtkWidget::draw calls to all children that don't have their
own GdkWindows.
Gtk.Container
Method
remove (Widget widget) : none
Removes widget from container.
Gtk.Container
Method
set_focus_child (Widget child) : none
Sets, or unsets if child is NULL, the focused child of container.
Gtk.Dialog
Method
add_action_widget (Widget child, gint32 response_id) : none
Adds an activatable widget to the action area of a GtkDialog,
connecting a signal handler that will emit the GtkDialog::response
signal on the dialog when the widget is activated.
Gtk.Dialog
Method
add_button (String button_text, gint32 response_id) : Gtk.Widget
Adds a button with the given text (or a stock button, if button_text is a
stock ID) and sets things up so that clicking the button will emit the
GtkDialog::response signal with the given response_id.
Gtk.Dialog
Method
get_action_area () : Gtk.Widget
Returns the action area of dialog.
Gtk.Dialog
Method
get_content_area () : Gtk.Widget
Returns the content area of dialog.
Gtk.Dialog
Method
get_response_for_widget (Widget widget) : gint32
Gets the response id of a widget in the action area
of a dialog.
Gtk.Dialog
Method
get_widget_for_response (gint32 response_id) : Gtk.Widget
Gets the widget button that uses the given response ID in the action area
of a dialog.
Gtk.EntryCompletion
Method
get_entry () : Gtk.Widget
Gets the entry completion has been attached to.
Gtk.Expander
Property
label_widget : Gtk.Widget
Gtk.Expander
Method
get_label_widget () : Gtk.Widget
Retrieves the label widget for the frame.
Gtk.Expander
Method
set_label_widget (Widget label_widget) : none
Set the label widget for the expander.
Gtk.FileChooser
Property
extra_widget : Gtk.Widget
Gtk.FileChooser
Property
preview_widget : Gtk.Widget
Gtk.FileChooser
Method
get_extra_widget () : Gtk.Widget
Gets the current preview widget; see
gtk_file_chooser_set_extra_widget().
Gtk.FileChooser
Method
get_preview_widget () : Gtk.Widget
Gets the current preview widget; see
gtk_file_chooser_set_preview_widget().
Gtk.FileChooser
Method
set_extra_widget (Widget extra_widget) : none
Sets an application-supplied widget to provide extra options to the user.
Gtk.FileChooser
Method
set_preview_widget (Widget preview_widget) : none
Sets an application-supplied widget to use to display a custom preview
of the currently selected file.
Gtk.FileChooserButton
Method
new Gtk.FileChooserButton.with_dialog (Widget dialog) : Gtk.Widget
Create a new Gtk.FileChooserButton
Gtk.Fixed
Method
move (Widget widget, gint32 x, gint32 y) : none
Moves a child of a GtkFixed container to the given position.
Gtk.Fixed
Method
put (Widget widget, gint32 x, gint32 y) : none
Adds a widget to a GtkFixed container at the given position.
Gtk.FontSelection
Method
get_face_list () : Gtk.Widget
This returns the GtkTreeView which lists all styles available for
the selected font.
Gtk.FontSelection
Method
get_family_list () : Gtk.Widget
This returns the GtkTreeView that lists font families, for
example, 'Sans', 'Serif', etc.
Gtk.FontSelection
Method
get_preview_entry () : Gtk.Widget
This returns the GtkEntry used to display the font as a preview.
Gtk.FontSelection
Method
get_size_entry () : Gtk.Widget
This returns the GtkEntry used to allow the user to edit the font
number manually instead of selecting it from the list of font sizes.
Gtk.FontSelection
Method
get_size_list () : Gtk.Widget
This returns the GtkTreeeView used to list font sizes.
Gtk.FontSelectionDialog
Method
get_cancel_button () : Gtk.Widget
Gets the 'Cancel' button.
Gtk.FontSelectionDialog
Method
get_font_selection () : Gtk.Widget
Retrieves the GtkFontSelection widget embedded in the dialog.
Gtk.FontSelectionDialog
Method
get_ok_button () : Gtk.Widget
Gets the 'OK' button.
Gtk.Frame
Property
label_widget : Gtk.Widget
Gtk.Frame
Method
get_label_widget () : Gtk.Widget
Retrieves the label widget for the frame.
Gtk.Frame
Method
set_label_widget (Widget label_widget) : none
Sets the label widget for the frame.
Gtk.Grid
Method
attach (Widget child, gint32 left, gint32 top, gint32 width, gint32 height) : none
Adds a widget to the grid.
Gtk.Grid
Method
attach_next_to (Widget child, Widget sibling, PositionType side, gint32 width, gint32 height) : none
Adds a widget to the grid.
Gtk.HandleBox
Signal
child_attached (HandleBox self, Widget object) : none
Gtk.HandleBox
Signal
child_detached (HandleBox self, Widget object) : none
Gtk.IconSet
Method
render_icon (Style style, TextDirection direction, StateType state, gint32 size, Widget widget, String detail) : GdkPixbuf.Pixbuf
Renders an icon using gtk_style_render_icon().
Gtk.ImageMenuItem
Property
image : Gtk.Widget
Gtk.ImageMenuItem
Method
get_image () : Gtk.Widget
Gets the widget that is currently set as the image of image_menu_item.
Gtk.ImageMenuItem
Method
set_image (Widget image) : none
Sets the image of image_menu_item to the given widget.
Gtk.InfoBar
Method
add_action_widget (Widget child, gint32 response_id) : none
Add an activatable widget to the action area of a GtkInfoBar,
connecting a signal handler that will emit the GtkInfoBar::response
signal on the message area when the widget is activated.
Gtk.InfoBar
Method
add_button (String button_text, gint32 response_id) : Gtk.Widget
Adds a button with the given text (or a stock button, if button_text
is a stock ID) and sets things up so that clicking the button will emit
the "response" signal with the given response_id.
Gtk.InfoBar
Method
get_action_area () : Gtk.Widget
Returns the action area of info_bar.
Gtk.InfoBar
Method
get_content_area () : Gtk.Widget
Returns the content area of info_bar.
Gtk.Label
Property
mnemonic_widget : Gtk.Widget
Gtk.Label
Method
get_mnemonic_widget () : Gtk.Widget
Retrieves the target of the mnemonic (keyboard shortcut) of this
label.
Gtk.Label
Method
set_mnemonic_widget (Widget widget) : none
If the label has been set so that it has an mnemonic key (using
i.e.
Gtk.Layout
Method
move (Widget child_widget, gint32 x, gint32 y) : none
Moves a current child of layout to a new position.
Gtk.Layout
Method
put (Widget child_widget, gint32 x, gint32 y) : none
Adds child_widget to layout, at position (x,y).
Gtk.Menu
Property
attach_widget : Gtk.Widget
The widget the menu is attached to.
Gtk.Menu
Method
Gtk.Menu.get_for_attach_widget (Widget widget) : Array
Returns a list of the menus which are attached to this widget.
Gtk.Menu
Method
attach (Widget child, guint32 left_attach, guint32 right_attach, guint32 top_attach, guint32 bottom_attach) : none
Adds a new GtkMenuItem to a (table) menu.
Gtk.Menu
Method
attach_to_widget (Widget attach_widget, Function detacher) : none
Attaches the menu to the widget and provides a callback function
that will be invoked when the menu calls gtk_menu_detach() during
its destruction.
Gtk.Menu
Method
get_active () : Gtk.Widget
Returns the selected menu item from the menu.
Gtk.Menu
Method
get_attach_widget () : Gtk.Widget
Returns the GtkWidget that the menu is attached to.
Gtk.Menu
Method
popup (Widget parent_menu_shell, Widget parent_menu_item, Function func, void* data, guint32 button, guint32 activate_time) : none
Displays a menu and makes it available for selection.
Gtk.Menu
Method
popup_for_device (Device device, Widget parent_menu_shell, Widget parent_menu_item, Function func, void* data, Function destroy, guint32 button, guint32 activate_time) : none
Displays a menu and makes it available for selection.
Gtk.Menu
Method
reorder_child (Widget child, gint32 position) : none
Moves child to a new position in the list of menu
children.
Gtk.MenuItem
Signal
submenu_added (MenuItem self, Widget object) : none
Gtk.MenuItem
Method
get_submenu () : Gtk.Widget
Gets the submenu underneath this menu item, if any.
Gtk.MenuItem
Method
set_submenu (Widget submenu) : none
Sets or replaces the menu item's submenu, or removes it when a NULL
submenu is passed.
Gtk.MenuShell
Method
activate_item (Widget menu_item, gboolean force_deactivate) : none
Activates the menu item within the menu shell.
Gtk.MenuShell
Method
append (Widget child) : none
Adds a new GtkMenuItem to the end of the menu shell's
item list.
Gtk.MenuShell
Method
get_parent_shell () : Gtk.Widget
Gets the parent menu shell.
Gtk.MenuShell
Method
get_selected_item () : Gtk.Widget
Gets the currently selected item.
Gtk.MenuShell
Method
insert (Widget child, gint32 position) : none
Adds a new GtkMenuItem to the menu shell's item list
at the position indicated by position.
Gtk.MenuShell
Method
prepend (Widget child) : none
Adds a new GtkMenuItem to the beginning of the menu shell's
item list.
Gtk.MenuShell
Method
select_item (Widget menu_item) : none
Selects the menu item from the menu shell.
Gtk.MenuToolButton
Method
new Gtk.MenuToolButton.c_new (Widget icon_widget, String label) : Gtk.ToolItem
Create a new Gtk.MenuToolButton
Gtk.MenuToolButton
Method
get_menu () : Gtk.Widget
Gets the GtkMenu associated with GtkMenuToolButton.
Gtk.MenuToolButton
Method
set_menu (Widget menu) : none
Sets the GtkMenu that is popped up when the user clicks on the arrow.
Gtk.MessageDialog
Property
image : Gtk.Widget
The image for this dialog.
Gtk.MessageDialog
Property
message_area : Gtk.Widget read only
The GtkVBox that corresponds to the message area of this dialog.
Gtk.MessageDialog
Method
get_image () : Gtk.Widget
Gets the dialog's image.
Gtk.MessageDialog
Method
get_message_area () : Gtk.Widget
Returns the message area of the dialog.
Gtk.MessageDialog
Method
set_image (Widget image) : none
Sets the dialog's image to image.
Gtk.Notebook
Signal
create_window (Notebook self, Widget page, gint32 x, gint32 y) : Gtk.Notebook
The ::create-window signal is emitted when a detachable
tab is dropped on the root window.
Gtk.Notebook
Signal
page_added (Notebook self, Widget child, guint32 page_num) : none
the ::page-added signal is emitted in the notebook
right after a page is added to the notebook.
Gtk.Notebook
Signal
page_removed (Notebook self, Widget child, guint32 page_num) : none
the ::page-removed signal is emitted in the notebook
right after a page is removed from the notebook.
Gtk.Notebook
Signal
page_reordered (Notebook self, Widget child, guint32 page_num) : none
the ::page-reordered signal is emitted in the notebook
right after a page has been reordered.
Gtk.Notebook
Signal
switch_page (Notebook self, Widget page, guint32 page_num) : none
Emitted when the user or a function changes the current page.
Gtk.Notebook
Method
append_page (Widget child, Widget tab_label) : gint32
Appends a page to notebook.
Gtk.Notebook
Method
append_page_menu (Widget child, Widget tab_label, Widget menu_label) : gint32
Appends a page to notebook, specifying the widget to use as the
label in the popup menu.
Gtk.Notebook
Method
get_action_widget (PackType pack_type) : Gtk.Widget
Gets one of the action widgets.
Gtk.Notebook
Method
get_menu_label (Widget child) : Gtk.Widget
Retrieves the menu label widget of the page containing child.
Gtk.Notebook
Method
get_menu_label_text (Widget child) : String
Retrieves the text of the menu label for the page containing
widget does not have a menu label other than the default
menu label, or the menu label widget is not a GtkLabel.
Gtk.Notebook
Method
get_nth_page (gint32 page_num) : Gtk.Widget
Returns the child widget contained in page number page_num.
Gtk.Notebook
Method
get_tab_detachable (Widget child) : gboolean
Returns whether the tab contents can be detached from notebook.
Gtk.Notebook
Method
get_tab_label (Widget child) : Gtk.Widget
Returns the tab label widget for the page child.
Gtk.Notebook
Method
get_tab_label_text (Widget child) : String
Retrieves the text of the tab label for the page containing
tab label widget is not a GtkLabel.
Gtk.Notebook
Method
get_tab_reorderable (Widget child) : gboolean
Gets whether the tab can be reordered via drag and drop or not.
Gtk.Notebook
Method
insert_page (Widget child, Widget tab_label, gint32 position) : gint32
Insert a page into notebook at the given position.
Gtk.Notebook
Method
insert_page_menu (Widget child, Widget tab_label, Widget menu_label, gint32 position) : gint32
Insert a page into notebook at the given position, specifying
the widget to use as the label in the popup menu.
Gtk.Notebook
Method
page_num (Widget child) : gint32
Finds the index of the page which contains the given child
widget.
Gtk.Notebook
Method
prepend_page (Widget child, Widget tab_label) : gint32
Prepends a page to notebook.
Gtk.Notebook
Method
prepend_page_menu (Widget child, Widget tab_label, Widget menu_label) : gint32
Prepends a page to notebook, specifying the widget to use as the
label in the popup menu.
Gtk.Notebook
Method
reorder_child (Widget child, gint32 position) : none
Reorders the page containing child, so that it appears in position
children in the list or negative, child will be moved to the end
of the list.
Gtk.Notebook
Method
set_action_widget (Widget widget, PackType pack_type) : none
Sets widget as one of the action widgets.
Gtk.Notebook
Method
set_menu_label (Widget child, Widget menu_label) : none
Changes the menu label for the page containing child.
Gtk.Notebook
Method
set_menu_label_text (Widget child, String menu_text) : none
Creates a new label and sets it as the menu label of child.
Gtk.Notebook
Method
set_tab_detachable (Widget child, gboolean detachable) : none
Sets whether the tab can be detached from notebook to another
notebook or widget.
Gtk.Notebook
Method
set_tab_label (Widget child, Widget tab_label) : none
Changes the tab label for child.
Gtk.Notebook
Method
set_tab_label_text (Widget child, String tab_text) : none
Creates a new label and sets it as the tab label for the page
containing child.
Gtk.Notebook
Method
set_tab_reorderable (Widget child, gboolean reorderable) : none
Sets whether the notebook tab can be reordered
via drag and drop or not.
Gtk.Paned
Method
add1 (Widget child) : none
Adds a child to the top or left pane with default parameters.
Gtk.Paned
Method
add2 (Widget child) : none
Adds a child to the bottom or right pane with default parameters.
Gtk.Paned
Method
get_child1 () : Gtk.Widget
Obtains the first child of the paned widget.
Gtk.Paned
Method
get_child2 () : Gtk.Widget
Obtains the second child of the paned widget.
Gtk.Paned
Method
pack1 (Widget child, gboolean resize, gboolean shrink) : none
Adds a child to the top or left pane.
Gtk.Paned
Method
pack2 (Widget child, gboolean resize, gboolean shrink) : none
Adds a child to the bottom or right pane.
Gtk.PrintOperation
Signal
custom_widget_apply (PrintOperation self, Widget widget) : none
Emitted right before GtkPrintOperation::begin-print if you added
a custom widget in the GtkPrintOperation::create-custom-widget handler.
Gtk.PrintOperation
Signal
update_custom_widget (PrintOperation self, Widget widget, PageSetup setup, PrintSettings settings) : none
Emitted after change of selected printer.
Gtk.RadioButton
Method
new_from_widget () : Gtk.Widget
Creates a new GtkRadioButton, adding it to the same group as
should be packed into the radio button.
Gtk.RadioMenuItem
Method
new_from_widget () : Gtk.Widget
Creates a new GtkRadioMenuItem adding it to the same group as group.
Gtk.RadioMenuItem
Method
new_with_label_from_widget (String label) : Gtk.Widget
Creates a new GtkRadioMenuItem whose child is a simple GtkLabel.
Gtk.RadioMenuItem
Method
new_with_mnemonic_from_widget (String label) : Gtk.Widget
Creates a new GtkRadioMenuItem containing a label.
Gtk.ScaleButton
Method
get_minus_button () : Gtk.Widget
Retrieves the minus button of the GtkScaleButton.
Gtk.ScaleButton
Method
get_plus_button () : Gtk.Widget
Retrieves the plus button of the GtkScaleButton.
Gtk.ScaleButton
Method
get_popup () : Gtk.Widget
Retrieves the popup of the GtkScaleButton.
Gtk.ScrolledWindow
Method
add_with_viewport (Widget child) : none
Used to add children without native scrolling capabilities.
Gtk.ScrolledWindow
Method
get_hscrollbar () : Gtk.Widget
Returns the horizontal scrollbar of scrolled_window.
Gtk.ScrolledWindow
Method
get_vscrollbar () : Gtk.Widget
Returns the vertical scrollbar of scrolled_window.
Gtk.SizeGroup
Method
add_widget (Widget widget) : none
Adds a widget to a GtkSizeGroup.
Gtk.SizeGroup
Method
remove_widget (Widget widget) : none
Removes a widget from a GtkSizeGroup.
Gtk.Statusbar
Method
get_message_area () : Gtk.Widget
Retrieves the box containing the label widget.
Gtk.Style
Method
render_icon (IconSource source, TextDirection direction, StateType state, gint32 size, Widget widget, String detail) : GdkPixbuf.Pixbuf
Renders the icon specified by source at the given size
according to the given parameters and returns the result in a
pixbuf.
Gtk.Table
Method
attach (Widget child, guint32 left_attach, guint32 right_attach, guint32 top_attach, guint32 bottom_attach, AttachOptions xoptions, AttachOptions yoptions, guint32 xpadding, guint32 ypadding) : none
Gtk.Table
Method
attach_defaults (Widget widget, guint32 left_attach, guint32 right_attach, guint32 top_attach, guint32 bottom_attach) : none
Gtk.TextView
Method
add_child_at_anchor (Widget child, TextChildAnchor anchor) : none
Adds a child widget in the text buffer, at the given anchor.
Gtk.TextView
Method
add_child_in_window (Widget child, TextWindowType which_window, gint32 xpos, gint32 ypos) : none
Adds a child at fixed coordinates in one of the text widget's
windows.
Gtk.TextView
Method
move_child (Widget child, gint32 xpos, gint32 ypos) : none
Updates the position of a child, as for gtk_text_view_add_child_in_window().
Gtk.ToolButton
Property
icon_widget : Gtk.Widget
Gtk.ToolButton
Property
label_widget : Gtk.Widget
Gtk.ToolButton
Method
new Gtk.ToolButton.c_new (Widget icon_widget, String label) : Gtk.ToolItem
Create a new Gtk.ToolButton
Gtk.ToolButton
Method
get_icon_widget () : Gtk.Widget
Return the widget used as icon widget on button.
Gtk.ToolButton
Method
get_label_widget () : Gtk.Widget
Returns the widget used as label on button.
Gtk.ToolButton
Method
set_icon_widget (Widget icon_widget) : none
Sets icon as the widget used as icon on button.
Gtk.ToolButton
Method
set_label_widget (Widget label_widget) : none
Sets label_widget as the widget that will be used as the label
for button.
Gtk.ToolItem
Method
get_proxy_menu_item (String menu_item_id) : Gtk.Widget
If menu_item_id matches the string passed to
gtk_tool_item_set_proxy_menu_item() return the corresponding GtkMenuItem.
Gtk.ToolItem
Method
retrieve_proxy_menu_item () : Gtk.Widget
Returns the GtkMenuItem that was last set by
gtk_tool_item_set_proxy_menu_item(), ie.
Gtk.ToolItem
Method
set_proxy_menu_item (String menu_item_id, Widget menu_item) : none
Sets the GtkMenuItem used in the toolbar overflow menu.
Gtk.ToolItemGroup
Property
label_widget : Gtk.Widget
Gtk.ToolItemGroup
Method
get_label_widget () : Gtk.Widget
Gets the label widget of group.
Gtk.ToolItemGroup
Method
set_label_widget (Widget label_widget) : none
Sets the label of the tool item group.
Gtk.ToolPalette
Method
add_drag_dest (Widget widget, DestDefaults flags, ToolPaletteDragTargets targets, DragAction actions) : none
Sets palette as drag source (see gtk_tool_palette_set_drag_source())
and sets widget as a drag destination for drags from palette.
Gtk.ToolPalette
Method
get_drag_item (SelectionData selection) : Gtk.Widget
Get the dragged item from the selection.
Gtk.Tooltip
Method
set_custom (Widget custom_widget) : none
Replaces the widget packed into the tooltip with
away.
Gtk.TreeViewColumn
Property
widget : Gtk.Widget
Gtk.TreeViewColumn
Method
get_button () : Gtk.Widget
Returns the button used in the treeview column header
Gtk.TreeViewColumn
Method
get_tree_view () : Gtk.Widget
Returns the GtkTreeView wherein tree_column has been inserted.
Gtk.TreeViewColumn
Method
get_widget () : Gtk.Widget
Returns the GtkWidget in the button on the column header.
Gtk.TreeViewColumn
Method
set_widget (Widget widget) : none
Sets the widget in the header to be widget.
Gtk.UIManager
Signal
add_widget (UIManager self, Widget widget) : none
The ::add-widget signal is emitted for each generated menubar and toolbar.
Gtk.UIManager
Signal
connect_proxy (UIManager self, Action action, Widget proxy) : none
The ::connect-proxy signal is emitted after connecting a proxy to
an action in the group.
Gtk.UIManager
Signal
disconnect_proxy (UIManager self, Action action, Widget proxy) : none
The ::disconnect-proxy signal is emitted after disconnecting a proxy
from an action in the group.
Gtk.UIManager
Method
get_widget (String path) : Gtk.Widget
Looks up a widget by following a path.
Gtk.Window
Signal
set_focus (Window self, Widget object) : none
Gtk.Window
Method
add_mnemonic (guint32 keyval, Widget target) : none
Adds a mnemonic to this window.
Gtk.Window
Method
get_default_widget () : Gtk.Widget
Returns the default widget for window.
Gtk.Window
Method
get_focus () : Gtk.Widget
Retrieves the current focused widget within the window.
Gtk.Window
Method
remove_mnemonic (guint32 keyval, Widget target) : none
Removes a mnemonic from this window.
Gtk.Window
Method
set_default (Widget default_widget) : none
The default widget is the widget that's activated when the user
presses Enter in a dialog (for example).
Gtk.Window
Method
set_focus (Widget focus) : none
If focus is not the current focus widget, and is focusable, sets
it as the focus widget for the window.
Gtk.Window
Method
set_geometry_hints (Widget geometry_widget, Geometry geometry, WindowHints geom_mask) : none
This function sets up hints about how a window can be resized by
the user.
Gtk.WindowGroup
Method
get_current_device_grab (Device device) : Gtk.Widget
Returns the current grab widget for device, or NULL if none.
Gtk.WindowGroup
Method
get_current_grab () : Gtk.Widget
Gets the current grab widget of the given group,
see gtk_grab_add().
GtkClutter.Actor
Property
contents : Gtk.Widget
The GtkWidget to be embedded into the GtkClutterActor
GtkClutter.Actor
Method
new GtkClutter.Actor.with_contents (Widget contents) : Clutter.Actor
Create a new GtkClutter.Actor
GtkClutter.Actor
Method
get_contents () : Gtk.Widget
Retrieves the child of the GtkBin used to hold the contents of actor.
GtkClutter.Actor
Method
get_widget () : Gtk.Widget
Retrieves the GtkBin used to hold the GtkClutterActor:contents widget
GtkClutter.Texture
Method
set_from_icon_name (Widget widget, String icon_name, IconSize icon_size) : gboolean
GtkClutter.Texture
Method
set_from_stock (Widget widget, String stock_id, IconSize icon_size) : gboolean
GtkSource.CompletionInfo
Method
get_widget () : Gtk.Widget
GtkSource.CompletionInfo
Method
set_widget (Widget widget) : none
GtkSource.CompletionProvider
Method
get_info_widget (CompletionProposal proposal) : Gtk.Widget
GtkSource.MarkAttributes
Method
render_icon (Widget widget, gint32 size) : GdkPixbuf.Pixbuf
Gucharmap.ChartableCellAccessible
Method
initialise (Widget widget, Object parent, gint32 index) : none
Nautilus.PropertyPage
Property
label : Gtk.Widget
Nautilus.PropertyPage
Property
page : Gtk.Widget
Nautilus.PropertyPage
Method
new Nautilus.PropertyPage.c_new (String name, Widget label, Widget page) : Nautilus.PropertyPage
Create a new Nautilus.PropertyPage
PeasGtk.Configurable
Method
create_configure_widget () : Gtk.Widget
PeasGtk.PluginManager
Method
get_view () : Gtk.Widget
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:14:37 GMT+0800 (HKT)