- public const int BINARY_AGE
Like get_binary_age
, but from the headers used at application compile time, rather than from the library linked against at application run time.
- public const int INPUT_ERROR
Constant to return from a signal handler for the
input signal in case of conversion failure.
- public const int INTERFACE_AGE
Like
get_interface_age, but from the headers used at application compile time, rather than from the library linked against at
application run time.
- public const string LEVEL_BAR_OFFSET_FULL
The name used for the stock full offset included by
LevelBar.
- public const string LEVEL_BAR_OFFSET_HIGH
The name used for the stock high offset included by
LevelBar.
- public const string LEVEL_BAR_OFFSET_LOW
The name used for the stock low offset included by
LevelBar.
- public const int MAJOR_VERSION
Like
get_major_version, but from the headers used at application compile time, rather than from the library linked against at
application run time.
- public const int MAX_COMPOSE_LEN
The maximum length of sequences in compose tables.
- public const int MICRO_VERSION
Like
get_micro_version, but from the headers used at application compile time, rather than from the library linked against at
application run time.
- public const int MINOR_VERSION
Like
get_minor_version, but from the headers used at application compile time, rather than from the library linked against at
application run time.
- public const string PAPER_NAME_A3
Name for the A3 paper size.
- public const string PAPER_NAME_A4
Name for the A4 paper size.
- public const string PAPER_NAME_A5
Name for the A5 paper size.
- public const string PAPER_NAME_B5
Name for the B5 paper size.
- public const string PAPER_NAME_EXECUTIVE
Name for the Executive paper size.
- public const string PAPER_NAME_LEGAL
Name for the Legal paper size.
- public const string PAPER_NAME_LETTER
Name for the Letter paper size.
- public const int PATH_PRIO_MASK
- public const string PRINT_SETTINGS_COLLATE
- public const string PRINT_SETTINGS_DEFAULT_SOURCE
- public const string PRINT_SETTINGS_DITHER
- public const string PRINT_SETTINGS_DUPLEX
- public const string PRINT_SETTINGS_FINISHINGS
- public const string PRINT_SETTINGS_MEDIA_TYPE
- public const string PRINT_SETTINGS_NUMBER_UP
- public const string PRINT_SETTINGS_NUMBER_UP_LAYOUT
- public const string PRINT_SETTINGS_N_COPIES
- public const string PRINT_SETTINGS_ORIENTATION
- public const string PRINT_SETTINGS_OUTPUT_BASENAME
The key used by the “Print to file” printer to store the file name
of the output without the path to the directory and the file extension.
- public const string PRINT_SETTINGS_OUTPUT_BIN
- public const string PRINT_SETTINGS_OUTPUT_DIR
The key used by the “Print to file” printer to store the directory
to which the output should be written.
- public const string PRINT_SETTINGS_OUTPUT_FILE_FORMAT
The key used by the “Print to file” printer to store the format of
the output.
- public const string PRINT_SETTINGS_OUTPUT_URI
The key used by the “Print to file” printer to store the URI to
which the output should be written.
- public const string PRINT_SETTINGS_PAGE_RANGES
- public const string PRINT_SETTINGS_PAGE_SET
- public const string PRINT_SETTINGS_PAPER_FORMAT
- public const string PRINT_SETTINGS_PAPER_HEIGHT
- public const string PRINT_SETTINGS_PAPER_WIDTH
- public const string PRINT_SETTINGS_PRINTER
- public const string PRINT_SETTINGS_PRINTER_LPI
- public const string PRINT_SETTINGS_PRINT_PAGES
- public const string PRINT_SETTINGS_QUALITY
- public const string PRINT_SETTINGS_RESOLUTION
- public const string PRINT_SETTINGS_RESOLUTION_X
- public const string PRINT_SETTINGS_RESOLUTION_Y
- public const string PRINT_SETTINGS_REVERSE
- public const string PRINT_SETTINGS_SCALE
- public const string PRINT_SETTINGS_USE_COLOR
- public const string PRINT_SETTINGS_WIN32_DRIVER_EXTRA
- public const string PRINT_SETTINGS_WIN32_DRIVER_VERSION
- public const int PRIORITY_RESIZE
Use this priority for functionality related to size allocation.
- public const string STYLE_CLASS_ACCELERATOR
A CSS class to match an accelerator.
- public const string STYLE_CLASS_ARROW
A CSS class used when rendering an arrow element.
- public const string STYLE_CLASS_BACKGROUND
A CSS class to match the window background.
- public const string STYLE_CLASS_BOTTOM
A CSS class to indicate an area at the bottom of a widget.
- public const string STYLE_CLASS_BUTTON
A CSS class to match buttons.
- public const string STYLE_CLASS_CALENDAR
A CSS class to match calendars.
- public const string STYLE_CLASS_CELL
A CSS class to match content rendered in cell views.
- public const string STYLE_CLASS_CHECK
A CSS class to match check boxes.
- public const string STYLE_CLASS_COMBOBOX_ENTRY
A CSS class to match combobox entries.
- public const string STYLE_CLASS_CONTEXT_MENU
A CSS class to match context menus.
- public const string STYLE_CLASS_CSD
A CSS class that gets added to windows which have client-side
decorations.
- public const string STYLE_CLASS_CURSOR_HANDLE
A CSS class used when rendering a drag handle for text selection.
- public const string STYLE_CLASS_DEFAULT
A CSS class to match the default widget.
- public const string STYLE_CLASS_DESTRUCTIVE_ACTION
A CSS class used when an action (usually a button) is one that is
expected to remove or destroy something visible to the user.
- public const string STYLE_CLASS_DIM_LABEL
A CSS class to match dimmed labels.
- public const string STYLE_CLASS_DND
A CSS class for a drag-and-drop indicator.
- public const string STYLE_CLASS_DOCK
A CSS class defining a dock area.
- public const string STYLE_CLASS_ENTRY
A CSS class to match text entries.
- public const string STYLE_CLASS_ERROR
A CSS class for an area displaying an error message, such as those in
infobars.
- public const string STYLE_CLASS_EXPANDER
A CSS class defining an expander, such as those in treeviews.
- public const string STYLE_CLASS_FLAT
A CSS class that is added when widgets that usually have a frame or
border (like buttons or entries) should appear without it.
- public const string STYLE_CLASS_FRAME
A CSS class defining a frame delimiting content, such as
Frame or the scrolled window frame around the scrollable area.
- public const string STYLE_CLASS_GRIP
A CSS class defining a resize grip.
- public const string STYLE_CLASS_HEADER
A CSS class to match a header element.
- public const string STYLE_CLASS_HIGHLIGHT
A CSS class defining a highlighted area, such as headings in
assistants and calendars.
- public const string STYLE_CLASS_HORIZONTAL
A CSS class for horizontally layered widgets.
- public const string STYLE_CLASS_IMAGE
A CSS class defining an image, such as the icon in an entry.
- public const string STYLE_CLASS_INFO
A CSS class for an area displaying an informational message, such as
those in infobars.
- public const string STYLE_CLASS_INLINE_TOOLBAR
A CSS class to match inline toolbars.
- public const string STYLE_CLASS_INSERTION_CURSOR
A CSS class used when rendering a drag handle for the insertion cursor
position.
- public const string STYLE_CLASS_LABEL
A CSS class to match labels.
- public const string STYLE_CLASS_LEFT
A CSS class to indicate an area at the left of a widget.
- public const string STYLE_CLASS_LEVEL_BAR
A CSS class used when rendering a level indicator, such as a battery
charge level, or a password strength.
- public const string STYLE_CLASS_LINKED
A CSS class to match a linked area, such as a box containing buttons
belonging to the same control.
- public const string STYLE_CLASS_LIST
A CSS class to match lists.
- public const string STYLE_CLASS_LIST_ROW
A CSS class to match list rows.
- public const string STYLE_CLASS_MARK
A CSS class defining marks in a widget, such as in scales.
- public const string STYLE_CLASS_MENU
A CSS class to match menus.
- public const string STYLE_CLASS_MENUBAR
A CSS class to menubars.
- public const string STYLE_CLASS_MENUITEM
A CSS class to match menu items.
- public const string STYLE_CLASS_MESSAGE_DIALOG
A CSS class that is added to message dialogs.
- public const string STYLE_CLASS_MONOSPACE
A CSS class that is added to text view that should use a monospace
font.
- public const string STYLE_CLASS_NEEDS_ATTENTION
A CSS class used when an element needs the user attention, for
instance a button in a stack switcher corresponding to a hidden page that changed state.
- public const string STYLE_CLASS_NOTEBOOK
A CSS class defining a notebook.
- public const string STYLE_CLASS_OSD
A CSS class used when rendering an OSD (On Screen Display) element, on
top of another container.
- public const string STYLE_CLASS_OVERSHOOT
A CSS class that is added on the visual hints that happen when
scrolling is attempted past the limits of a scrollable area.
- public const string STYLE_CLASS_PANE_SEPARATOR
A CSS class for a pane separator, such as those in
Paned.
- public const string STYLE_CLASS_PAPER
A CSS class that is added to areas that should look like paper.
- public const string STYLE_CLASS_POPOVER
A CSS class that matches popovers.
- public const string STYLE_CLASS_POPUP
A CSS class that is added to the toplevel windows used for menus.
- public const string STYLE_CLASS_PRIMARY_TOOLBAR
A CSS class to match primary toolbars.
- public const string STYLE_CLASS_PROGRESSBAR
A CSS class to use when rendering activity as a progressbar.
- public const string STYLE_CLASS_PULSE
A CSS class to use when rendering a pulse in an indeterminate progress
bar.
- public const string STYLE_CLASS_QUESTION
A CSS class for an area displaying a question to the user, such as
those in infobars.
- public const string STYLE_CLASS_RADIO
A CSS class to match radio buttons.
- public const string STYLE_CLASS_RAISED
A CSS class to match a raised control, such as a raised button on a
toolbar.
- public const string STYLE_CLASS_READ_ONLY
A CSS class used to indicate a read-only state.
- public const string STYLE_CLASS_RIGHT
A CSS class to indicate an area at the right of a widget.
- public const string STYLE_CLASS_RUBBERBAND
A CSS class to match the rubberband selection rectangle.
- public const string STYLE_CLASS_SCALE
A CSS class to match scale widgets.
- public const string STYLE_CLASS_SCALE_HAS_MARKS_ABOVE
A CSS class to match scale widgets with marks attached, all the marks
are above for horizontal Scale.
- public const string STYLE_CLASS_SCALE_HAS_MARKS_BELOW
A CSS class to match scale widgets with marks attached, all the marks
are below for horizontal Scale, right for vertical
Scale.
- public const string STYLE_CLASS_SCROLLBAR
A CSS class to match scrollbars.
- public const string STYLE_CLASS_SCROLLBARS_JUNCTION
A CSS class to match the junction area between an horizontal and
vertical scrollbar, when they’re both shown.
- public const string STYLE_CLASS_SEPARATOR
A CSS class for a separator.
- public const string STYLE_CLASS_SIDEBAR
A CSS class defining a sidebar, such as the left side in a file
chooser.
- public const string STYLE_CLASS_SLIDER
A CSS class to match sliders.
- public const string STYLE_CLASS_SPINBUTTON
A CSS class defining an spinbutton.
- public const string STYLE_CLASS_SPINNER
A CSS class to use when rendering activity as a “spinner”.
- public const string STYLE_CLASS_STATUSBAR
A CSS class to match statusbars.
- public const string STYLE_CLASS_SUBTITLE
A CSS class used for the subtitle label in a titlebar in a toplevel
window.
- public const string STYLE_CLASS_SUGGESTED_ACTION
A CSS class used when an action (usually a button) is the primary
suggested action in a specific context.
- public const string STYLE_CLASS_TITLE
A CSS class used for the title label in a titlebar in a toplevel
window.
- public const string STYLE_CLASS_TITLEBAR
A CSS class used when rendering a titlebar in a toplevel window.
- public const string STYLE_CLASS_TOOLBAR
A CSS class to match toolbars.
- public const string STYLE_CLASS_TOOLTIP
A CSS class to match tooltip windows.
- public const string STYLE_CLASS_TOP
A CSS class to indicate an area at the top of a widget.
- public const string STYLE_CLASS_TOUCH_SELECTION
A CSS class for touch selection popups on entries and text views.
- public const string STYLE_CLASS_TROUGH
A CSS class to match troughs, as in scrollbars and progressbars.
- public const string STYLE_CLASS_UNDERSHOOT
A CSS class that is added on the visual hints that happen where
content is 'scrolled off' and can be made visible by scrolling.
- public const string STYLE_CLASS_VERTICAL
A CSS class for vertically layered widgets.
- public const string STYLE_CLASS_VIEW
A CSS class defining a view, such as iconviews or treeviews.
- public const string STYLE_CLASS_WARNING
A CSS class for an area displaying a warning message, such as those in
infobars.
- public const string STYLE_CLASS_WIDE
A CSS class to indicate that a UI element should be 'wide'.
- public const string STYLE_PROPERTY_BACKGROUND_COLOR
A property holding the background color of rendered elements as a
RGBA.
- public const string STYLE_PROPERTY_BACKGROUND_IMAGE
A property holding the element’s background as a
RasterSourcePattern.
- public const string STYLE_PROPERTY_BORDER_COLOR
A property holding the element’s border color as a
RGBA.
- public const string STYLE_PROPERTY_BORDER_RADIUS
A property holding the rendered element’s border radius in pixels as
a SortColumn.
- public const string STYLE_PROPERTY_BORDER_STYLE
A property holding the element’s border style as a
BorderStyle.
- public const string STYLE_PROPERTY_BORDER_WIDTH
A property holding the rendered element’s border width in pixels as
a Border.
- public const string STYLE_PROPERTY_COLOR
A property holding the foreground color of rendered elements as a
RGBA.
- public const string STYLE_PROPERTY_FONT
A property holding the font properties used when rendering text as a
FontDescription.
- public const string STYLE_PROPERTY_MARGIN
A property holding the rendered element’s margin as a
Border.
- public const string STYLE_PROPERTY_PADDING
A property holding the rendered element’s padding as a
Border.
- public const int STYLE_PROVIDER_PRIORITY_APPLICATION
A priority that can be used when adding a
StyleProvider for application-specific style information.
- public const int STYLE_PROVIDER_PRIORITY_FALLBACK
The priority used for default style information that is used in the
absence of themes.
- public const int STYLE_PROVIDER_PRIORITY_SETTINGS
The priority used for style information provided via
Settings.
- public const int STYLE_PROVIDER_PRIORITY_THEME
The priority used for style information provided by themes.
- public const int STYLE_PROVIDER_PRIORITY_USER
The priority used for the style information from
`XDG_CONFIG_HOME/gtk-3.0/gtk.
- public const string STYLE_REGION_COLUMN
A widget region name to define a treeview column.
- public const string STYLE_REGION_COLUMN_HEADER
A widget region name to define a treeview column header.
- public const string STYLE_REGION_ROW
A widget region name to define a treeview row.
- public const string STYLE_REGION_TAB
A widget region name to define a notebook tab.
- public const int TEXT_VIEW_PRIORITY_VALIDATE
The priority at which the text view validates onscreen lines in an
idle job in the background.
- public const int TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID
- public const int TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
- public bool accel_groups_activate (Object object, uint accel_key, ModifierType accel_mods)
Finds the first accelerator in any
AccelGroup attached to object
that matches accel_key
and
accel_mods
, and activates that accelerator.
- public unowned SList<AccelGroup> accel_groups_from_object (Object object)
Gets a list of all accel groups which are attached to object
.
- public ModifierType accelerator_get_default_mod_mask ()
Gets the modifier mask.
- public string accelerator_get_label (uint accelerator_key, ModifierType accelerator_mods)
Converts an accelerator keyval and modifier mask into a string which
can be used to represent the accelerator to the user.
- public string accelerator_get_label_with_keycode (Display? display, uint accelerator_key, uint keycode, ModifierType accelerator_mods)
Converts an accelerator keyval and modifier mask into a (possibly
translated) string that can be displayed to a user, similarly to
accelerator_get_label, but handling keycodes.
- public string accelerator_name (uint accelerator_key, ModifierType accelerator_mods)
Converts an accelerator keyval and modifier mask into a string
parseable by accelerator_parse.
- public string accelerator_name_with_keycode (Display? display, uint accelerator_key, uint keycode, ModifierType accelerator_mods)
- public void accelerator_parse (string accelerator, out uint accelerator_key, out ModifierType accelerator_mods)
Parses a string representing an accelerator.
- public void accelerator_parse_with_keycode (string accelerator, out uint accelerator_key, out uint[] accelerator_codes, out ModifierType accelerator_mods)
Parses a string representing an accelerator, similarly to
accelerator_parse but handles keycodes as well.
- public void accelerator_set_default_mod_mask (ModifierType default_mod_mask)
Sets the modifiers that will be considered significant for keyboard
accelerators.
- public bool accelerator_valid (uint keyval, ModifierType modifiers)
Determines whether a given keyval and modifier mask constitute a valid
keyboard accelerator.
- public bool alternative_dialog_button_order (Screen? screen)
Returns true if dialogs are expected
to use an alternative button order on the screen screen
.
- public TokenType binding_entry_add_signal_from_string (BindingSet binding_set, string signal_desc)
Parses a signal description from signal_desc
and
incorporates it into binding_set
.
- public void binding_entry_add_signall (BindingSet binding_set, uint keyval, ModifierType modifiers, string signal_name, SList<BindingArg?> binding_args)
Override or install a new key binding for keyval
with
modifiers
on binding_set
.
- public void binding_entry_remove (BindingSet binding_set, uint keyval, ModifierType modifiers)
Remove a binding previously installed via
add_signal on binding_set
.
- public void binding_entry_skip (BindingSet binding_set, uint keyval, ModifierType modifiers)
Install a binding on binding_set
which causes key lookups
to be aborted, to prevent bindings from lower priority sets to be activated.
- public unowned BindingSet? binding_set_find (string set_name)
Find a binding set by its globally unique name.
- public bool bindings_activate (Object object, uint keyval, ModifierType modifiers)
Find a key binding matching keyval
and modifiers
and activate the binding on object
.
- public bool bindings_activate_event (Object object, EventKey event)
Looks up key bindings for object
to find one matching
event
, and if one was found, activate it.
- public Quark builder_error_quark ()
- public bool cairo_should_draw_window (Context cr, Window window)
This function is supposed to be called in
draw implementations for widgets that support multiple windows.
- public void cairo_transform_to_window (Context cr, Widget widget, Window window)
Transforms the given cairo context cr
that from
widget
-relative coordinates to window
-relative coordinates.
- public unowned string? check_version (uint required_major, uint required_minor, uint required_micro)
Checks that the GTK+ library in use is compatible with the given
version.
- public Quark css_provider_error_quark ()
- public void device_grab_add (Widget widget, Device device, bool block_others)
Adds a GTK+ grab on device
, so all the events on
device
and its associated pointer or keyboard (if any) are delivered to widget
.
- public void device_grab_remove (Widget widget, Device device)
Removes a device grab from the given widget.
- public void disable_setlocale ()
- public int distribute_natural_allocation (int extra_space, uint n_requested_sizes, RequestedSize sizes)
Distributes extra_space
to child sizes
by
bringing smaller children up to natural size first.
- public unowned DragContext drag_begin (Widget widget, TargetList targets, DragAction actions, int button, Event? event)
- public unowned DragContext drag_begin_with_coordinates (Widget widget, TargetList targets, DragAction actions, int button, Event? event, int x, int y)
Initiates a drag on the source side.
- public void drag_cancel (DragContext context)
Cancels an ongoing drag operation on the source side.
- public bool drag_check_threshold (Widget widget, int start_x, int start_y, int current_x, int current_y)
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.
- public void drag_dest_add_image_targets (Widget widget)
Add the image targets supported by
SelectionData to the target list of the drag destination.
- public void drag_dest_add_text_targets (Widget widget)
Add the text targets supported by
SelectionData to the target list of the drag destination.
- public void drag_dest_add_uri_targets (Widget widget)
Add the URI targets supported by
SelectionData to the target list of the drag destination.
- public Atom drag_dest_find_target (Widget widget, DragContext context, TargetList? target_list)
Looks for a match between the supported targets of context
and the dest_target_list
, returning the first matching target, otherwise returning
gdk_none.
- public unowned TargetList? drag_dest_get_target_list (Widget widget)
Returns the list of targets this widget can accept from drag-and-drop.
- public bool drag_dest_get_track_motion (Widget widget)
Returns whether the widget has been configured to always emit
drag_motion signals.
- public void drag_dest_set (Widget widget, DestDefaults flags, TargetEntry[]? targets, DragAction actions)
Sets a widget as a potential drop destination, and adds default
behaviors.
- public void drag_dest_set_proxy (Widget widget, Window proxy_window, DragProtocol protocol, bool use_coordinates)
Sets this widget as a proxy for drops to another window.
- public void drag_dest_set_target_list (Widget widget, TargetList? target_list)
Sets the target types that this widget can accept from drag-and-drop.
- public void drag_dest_set_track_motion (Widget widget, bool track_motion)
Tells the widget to emit
drag_motion and
drag_leave events regardless of the targets and the gtk_dest_default_motion flag.
- public void drag_dest_unset (Widget widget)
Clears information about a drop destination set with
drag_dest_set.
- public void drag_finish (DragContext context, bool success, bool del, uint32 time_)
Informs the drag source that the drop is finished, and that the data
of the drag will no longer be required.
- public void drag_get_data (Widget widget, DragContext context, Atom target, uint32 time_)
Gets the data associated with a drag.
- public unowned Widget? drag_get_source_widget (DragContext context)
Determines the source widget for a drag.
- public void drag_highlight (Widget widget)
Highlights a widget as a currently hovered drop target.
- public void drag_set_icon_default (DragContext context)
Sets the icon for a particular drag to the default icon.
- public void drag_set_icon_gicon (DragContext context, Icon icon, int hot_x, int hot_y)
Sets the icon for a given drag from the given icon
.
- public void drag_set_icon_name (DragContext context, string icon_name, int hot_x, int hot_y)
Sets the icon for a given drag from a named themed icon.
- public void drag_set_icon_pixbuf (DragContext context, Pixbuf pixbuf, int hot_x, int hot_y)
Sets pixbuf
as the icon for a given drag.
- public void drag_set_icon_stock (DragContext context, string stock_id, int hot_x, int hot_y)
Sets the icon for a given drag from a stock ID.
- public void drag_set_icon_surface (DragContext context, Surface surface)
Sets surface
as the icon for a given drag.
- public void drag_set_icon_widget (DragContext context, Widget widget, int hot_x, int hot_y)
Changes the icon for drag operation to a given widget.
- public void drag_source_add_image_targets (Widget widget)
Add the writable image targets supported by
SelectionData to the target list of the drag source.
- public void drag_source_add_text_targets (Widget widget)
Add the text targets supported by
SelectionData to the target list of the drag source.
- public void drag_source_add_uri_targets (Widget widget)
Add the URI targets supported by
SelectionData to the target list of the drag source.
- public unowned TargetList? drag_source_get_target_list (Widget widget)
Gets the list of targets this widget can provide for drag-and-drop.
- public void drag_source_set (Widget widget, ModifierType start_button_mask, TargetEntry[]? targets, DragAction actions)
Sets up a widget so that GTK+ will start a drag operation when the
user clicks and drags on the widget.
- public void drag_source_set_icon_gicon (Widget widget, Icon icon)
Sets the icon that will be used for drags from a particular source to
icon
.
- public void drag_source_set_icon_name (Widget widget, string icon_name)
Sets the icon that will be used for drags from a particular source to
a themed icon.
- public void drag_source_set_icon_pixbuf (Widget widget, Pixbuf pixbuf)
Sets the icon that will be used for drags from a particular widget
from a Pixbuf.
- public void drag_source_set_icon_stock (Widget widget, string stock_id)
Sets the icon that will be used for drags from a particular source to
a stock icon.
- public void drag_source_set_target_list (Widget widget, TargetList? target_list)
Changes the target types that this widget offers for drag-and-drop.
- public void drag_source_unset (Widget widget)
- public void drag_unhighlight (Widget widget)
- public void draw_insertion_cursor (Widget widget, Context cr, Rectangle location, bool is_primary, TextDirection direction, bool draw_arrow)
Draws a text caret on cr
at location
.
- public bool events_pending ()
Checks if any events are pending.
- public Quark file_chooser_error_quark ()
- public uint get_binary_age ()
Returns the binary age as passed to `libtool` when building the GTK+
library the process is running against.
- public Event? get_current_event ()
Obtains a copy of the event currently being processed by GTK+.
- public unowned Device? get_current_event_device ()
If there is a current event and it has a device, return that device,
otherwise return null.
- public bool get_current_event_state (out ModifierType state)
If there is a current event and it has a state field, place that state
field in state
and return true, otherwise return false
.
- public uint32 get_current_event_time ()
If there is a current event and it has a timestamp, return that
timestamp, otherwise return gdk_current_time.
- public uint get_debug_flags ()
Returns the GTK+ debug flags.
- public unowned Language get_default_language ()
Returns the Language for the default
language currently in effect.
- public unowned Widget? get_event_widget (Event event)
If event
is null or the
event was not associated with any widget, returns null, otherwise returns the widget that received
the event originally.
- public uint get_interface_age ()
Returns the interface age as passed to `libtool` when building the
GTK+ library the process is running against.
- public TextDirection get_locale_direction ()
Get the direction of the current locale.
- public uint get_major_version ()
Returns the major version number of the GTK+ library.
- public uint get_micro_version ()
Returns the micro version number of the GTK+ library.
- public uint get_minor_version ()
Returns the minor version number of the GTK+ library.
- public OptionGroup get_option_group (bool open_default_display)
Returns a OptionGroup for the commandline
arguments recognized by GTK+ and GDK.
- public void grab_add (Widget widget)
Makes this the current grabbed
widget.
- public unowned Widget? grab_get_current ()
Queries the current grab of the default window group.
- public void grab_remove (Widget widget)
Removes the grab from the given widget.
- public IconSize icon_size_from_name (string name)
- public unowned string icon_size_get_name (IconSize size)
- public bool icon_size_lookup (IconSize size, out int width, out int height)
- public bool icon_size_lookup_for_settings (Settings settings, IconSize size, out int width, out int height)
- public IconSize icon_size_register (string name, int width, int height)
- public void icon_size_register_alias (string alias, IconSize target)
- public Quark icon_theme_error_quark ()
- public void init (ref unowned string[]? argv)
Call this function before using any other GTK+ functions in your GUI
applications.
- public bool init_check (ref unowned string[]? argv)
This function does the same work as
init with only a single change: It does not terminate the program if the commandline
arguments couldn’t be parsed or the windowing system can’t be initialized.
- public bool init_with_args (ref unowned string[]? argv, string? parameter_string, OptionEntry[] entries, string? translation_domain) throws Error
- public uint key_snooper_install (KeySnoopFunc snooper)
Installs a key snooper function, which will get called on all key
events before delivering them normally.
- public void key_snooper_remove (uint snooper_handler_id)
Removes the key snooper function with the given id.
- public void main ()
Runs the main loop until
main_quit is called.
- public void main_do_event (Event event)
Processes a single GDK event.
- public bool main_iteration ()
Runs a single iteration of the mainloop.
- public bool main_iteration_do (bool blocking)
Runs a single iteration of the mainloop.
- public uint main_level ()
Asks for the current nesting level of the main loop.
- public void main_quit ()
Makes the innermost invocation of the main loop return when it regains
control.
- public void paint_arrow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, ArrowType arrow_type, bool fill, int x, int y, int width, int height)
Draws an arrow in the given rectangle on cr
using the
given parameters.
- public void paint_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a box on cr
with the given parameters.
- public void paint_box_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width)
Draws a box in cr
using the given style and state and
shadow type, leaving a gap in one side.
- public void paint_check (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a check button indicator in the given rectangle on cr
with the given parameters.
- public void paint_diamond (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a diamond in the given rectangle on window
using
the given parameters.
- public void paint_expander (Style style, Context cr, StateType state_type, Widget? widget, string? detail, int x, int y, ExpanderStyle expander_style)
- public void paint_extension (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height, PositionType gap_side)
Draws an extension, i.
- public void paint_flat_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a flat box on cr
with the given parameters.
- public void paint_focus (Style style, Context cr, StateType state_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a focus indicator around the given rectangle on cr
using the given style.
- public void paint_handle (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height, Orientation orientation)
- public void paint_hline (Style style, Context cr, StateType state_type, Widget? widget, string? detail, int x1, int x2, int y)
Draws a horizontal line from (x1
, y
) to (
x2
, y
) in cr
using the given style and state.
- public void paint_layout (Style style, Context cr, StateType state_type, bool use_text, Widget? widget, string? detail, int x, int y, Layout layout)
Draws a layout on cr
using the given parameters.
- public void paint_option (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a radio button indicator in the given rectangle on cr
with the given parameters.
- public void paint_resize_grip (Style style, Context cr, StateType state_type, Widget? widget, string? detail, WindowEdge edge, int x, int y, int width, int height)
Draws a resize grip in the given rectangle on cr
using
the given parameters.
- public void paint_shadow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws a shadow around the given rectangle in cr
using the
given style and state and shadow type.
- public void paint_shadow_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width)
Draws a shadow around the given rectangle in cr
using the
given style and state and shadow type, leaving a gap in one side.
- public void paint_slider (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height, Orientation orientation)
Draws a slider in the given rectangle on cr
using the
given style and orientation.
- public void paint_spinner (Style style, Context cr, StateType state_type, Widget? widget, string? detail, uint step, int x, int y, int width, int height)
Draws a spinner on window
using the given parameters.
- public void paint_tab (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget? widget, string? detail, int x, int y, int width, int height)
Draws an option menu tab (i.
- public void paint_vline (Style style, Context cr, StateType state_type, Widget? widget, string? detail, int y1_, int y2_, int x)
Draws a vertical line from (x
, y1_
) to (
x
, y2_
) in cr
using the given style and state.
- public unowned string paper_size_get_default ()
Returns the name of the default paper size, which depends on the
current locale.
- public List<PaperSize> paper_size_get_paper_sizes (bool include_custom)
Creates a list of known paper sizes.
- public bool parse_args (ref unowned string[] argv)
Parses command line arguments, and initializes global attributes of
GTK+, but does not actually open a connection to a display.
- public Quark print_error_quark ()
- public PageSetup print_run_page_setup_dialog (Window? parent, PageSetup? page_setup, PrintSettings settings)
Runs a page setup dialog, letting the user modify the values from
page_setup
.
- public void print_run_page_setup_dialog_async (Window? parent, PageSetup? page_setup, PrintSettings settings, PageSetupDoneFunc done_cb)
Runs a page setup dialog, letting the user modify the values from
page_setup
.
- public void propagate_event (Widget widget, Event event)
Sends an event to a widget, propagating the event to parent widgets if
the event remains unhandled.
- public void rc_add_default_file (string filename)
Adds a file to the list of files to be parsed at the end of
init.
- public string rc_find_module_in_path (string module_file)
Searches for a theme engine in the GTK+ search path.
- public string rc_find_pixmap_in_path (Settings settings, Scanner scanner, string pixmap_file)
Looks up a file in pixmap path for the specified
Settings.
- public unowned string[] rc_get_default_files ()
Retrieves the current list of RC files that will be parsed at the end
of init.
- public string rc_get_im_module_file ()
Obtains the path to the IM modules file.
- public string rc_get_im_module_path ()
Obtains the path in which to look for IM modules.
- public string rc_get_module_dir ()
Returns a directory in which GTK+ looks for theme engines.
- public unowned Style rc_get_style (Widget widget)
Finds all matching RC styles for a given widget, composites them
together, and then creates a Style representing the composite appearance.
- public unowned Style? rc_get_style_by_paths (Settings settings, string? widget_path, string? class_path, Type type)
Creates up a Style from
styles defined in a RC file by providing the raw components used in matching.
- public string rc_get_theme_dir ()
Returns the standard directory in which themes should be installed.
- public void rc_parse (string filename)
Parses a given resource file.
- public uint rc_parse_color (Scanner scanner, out Color color)
Parses a color in the format expected in a RC file.
- public uint rc_parse_color_full (Scanner scanner, RcStyle? style, out Color color)
Parses a color in the format expected in a RC file.
- public uint rc_parse_priority (Scanner scanner, PathPriorityType priority)
- public uint rc_parse_state (Scanner scanner, out StateType state)
Parses a StateType
variable from the format expected in a RC file.
- public void rc_parse_string (string rc_string)
Parses resource information directly from a string.
- public bool rc_reparse_all ()
If the modification time on any previously read file for the default
Settings has changed, discard all style information and then reread all previously read
RC files.
- public bool rc_reparse_all_for_settings (Settings settings, bool force_load)
If the modification time on any previously read file for the given
Settings has changed, discard all style information and then reread all previously read
RC files.
- public void rc_reset_styles (Settings settings)
This function recomputes the styles for all widgets that use a
particular Settings object.
- public unowned Scanner rc_scanner_new ()
- public void rc_set_default_files (string[] filenames)
Sets the list of files that GTK+ will read at the end of
init.
- public Quark recent_chooser_error_quark ()
- public Quark recent_manager_error_quark ()
- public void render_icon_surface (StyleContext context, Context cr, Surface surface, double x, double y)
Renders the icon in surface
at the specified x
and y
coordinates.
- public void render_insertion_cursor (StyleContext context, Context cr, double x, double y, Layout layout, int index, Direction direction)
Draws a text caret on cr
at the specified index of
layout
.
- public void rgb_to_hsv (double r, double g, double b, out double h, out double s, out double v)
Converts a color from RGB space to HSV.
- public void selection_add_target (Widget widget, Atom selection, Atom target, uint info)
Appends a specified target to the list of supported targets for a
given widget and selection.
- public void selection_add_targets (Widget widget, Atom selection, TargetEntry[] targets)
Prepends a table of targets to the list of supported targets for a
given widget and selection.
- public void selection_clear_targets (Widget widget, Atom selection)
Remove all targets registered for the given selection for the widget.
- public bool selection_convert (Widget widget, Atom selection, Atom target, uint32 time_)
Requests the contents of a selection.
- public bool selection_owner_set (Widget? widget, Atom selection, uint32 time_)
Claims ownership of a given selection for a particular widget, or, if
widget
is null, release ownership of the selection.
- public bool selection_owner_set_for_display (Display display, Widget? widget, Atom selection, uint32 time_)
Claim ownership of a given selection for a particular widget, or, if
widget
is null, release ownership of the selection.
- public void selection_remove_all (Widget widget)
Removes all handlers and unsets ownership of all selections for a
widget.
- public void set_debug_flags (uint flags)
Sets the GTK+ debug flags.
- public void show_about_dialog (Window? parent, ...)
This is a convenience function for showing an application’s about
box.
- public bool show_uri (Screen? screen, string uri, uint32 timestamp) throws Error
A convenience function for launching the default application to show
the uri.
- public bool show_uri_on_window (Window? parent, string uri, uint32 timestamp) throws Error
This is a convenience function for launching the default application
to show the uri.
- public void stock_add (StockItem[] items)
- public void stock_add_static (StockItem[] items)
- public SList<string> stock_list_ids ()
- public bool stock_lookup (string stock_id, out StockItem item)
- public void stock_set_translate_func (string domain, owned TranslateFunc func)
- public void target_table_free (TargetEntry[] targets)
- public TargetEntry[] target_table_new_from_list (TargetList list)
This function creates an
TargetEntry array that contains the same targets as the passed
list.
- public bool targets_include_image (Atom[] targets, bool writable)
Determines if any of the targets in targets
can be used
to provide a Pixbuf.
- public bool targets_include_rich_text (Atom[] targets, TextBuffer buffer)
Determines if any of the targets in targets
can be used
to provide rich text.
- public bool targets_include_text (Atom[] targets)
Determines if any of the targets in targets
can be used
to provide text.
- public bool targets_include_uri (Atom[] targets)
Determines if any of the targets in targets
can be used
to provide an uri list.
- public unowned Widget test_create_simple_window (string window_title, string dialog_text)
Create a simple window with window title window_title
and
text contents dialog_text
.
- public unowned Widget test_create_widget (Type widget_type, ...)
This function wraps @new for widget
types.
- public Widget test_display_button_window (string window_title, string dialog_text, ...)
Create a window with window title window_title
, text
contents dialog_text
, and a number of buttons, according to the paired argument list given as ...
parameters.
- public unowned Widget test_find_label (Widget widget, string label_pattern)
This function will search widget
and all its descendants
for a GtkLabel widget with a text string matching label_pattern
.
- public unowned Widget test_find_sibling (Widget base_widget, Type widget_type)
This function will search siblings of base_widget
and
siblings of its ancestors for all widgets matching widget_type
.
- public unowned Widget? test_find_widget (Widget widget, string label_pattern, Type widget_type)
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.
- public void test_init (ref unowned string[] argvp, ...)
This function is used to initialize a GTK+ test program.
- public unowned Type[] test_list_all_types ()
- public void test_register_all_types ()
Force registration of all core Gtk+ and Gdk object types.
- public double test_slider_get_value (Widget widget)
Retrive the literal adjustment value for GtkRange based widgets and
spin buttons.
- public void test_slider_set_perc (Widget widget, double percentage)
This function will adjust the slider position of all GtkRange based
widgets, such as scrollbars or scales, it’ll also adjust spin buttons.
- public bool test_spin_button_click (SpinButton spinner, uint button, bool upwards)
This function will generate a button
click in the upwards
or downwards spin button arrow areas, usually leading to an increase or decrease of spin button’s value.
- public string test_text_get (Widget widget)
Retrive the text string of widget
if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
- public void test_text_set (Widget widget, string str)
Set the text string of widget
to string
if
it is a GtkLabel, GtkEditable (entry and text widgets) or GtkTextView.
- public bool test_widget_click (Widget widget, uint button, ModifierType modifiers)
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
.
- public bool test_widget_send_key (Widget widget, uint keyval, ModifierType modifiers)
This function will generate keyboard press and release events in the
middle of the first GdkWindow found that belongs to widget
.
- public void test_widget_wait_for_draw (Widget widget)
Enters the main loop and waits for widget
to be
“drawn”.
- public bool tree_get_row_drag_data (SelectionData selection_data, out unowned TreeModel? tree_model, out TreePath? path)
Obtains a tree_model
and path
from selection
data of target type gtk_tree_model_row.
- public void tree_row_reference_deleted (Object proxy, TreePath path)
- public void tree_row_reference_inserted (Object proxy, TreePath path)
- public bool tree_set_row_drag_data (SelectionData selection_data, TreeModel tree_model, TreePath path)
Sets selection data of target type
gtk_tree_model_row.