Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | Gtk |
Namespace : | Gtk |
Properties | |
---|---|
gint32 Gtk.BINARY_AGE : 0
|
|
gint32 Gtk.INPUT_ERROR : 0
|
|
gint32 Gtk.INTERFACE_AGE : 0
|
|
gint32 Gtk.MAJOR_VERSION : 0
|
|
gint32 Gtk.MAX_COMPOSE_LEN : 0
|
|
gint32 Gtk.MICRO_VERSION : 0
|
|
gint32 Gtk.MINOR_VERSION : 0
|
|
String Gtk.PAPER_NAME_A3 : null
|
|
String Gtk.PAPER_NAME_A4 : null
|
|
String Gtk.PAPER_NAME_A5 : null
|
|
String Gtk.PAPER_NAME_B5 : null
|
|
String Gtk.PAPER_NAME_EXECUTIVE : null
|
|
String Gtk.PAPER_NAME_LEGAL : null
|
|
String Gtk.PAPER_NAME_LETTER : null
|
|
gint32 Gtk.PATH_PRIO_MASK : 0
|
|
String Gtk.PRINT_SETTINGS_COLLATE : null
|
|
String Gtk.PRINT_SETTINGS_DEFAULT_SOURCE : null
|
|
String Gtk.PRINT_SETTINGS_DITHER : null
|
|
String Gtk.PRINT_SETTINGS_DUPLEX : null
|
|
String Gtk.PRINT_SETTINGS_FINISHINGS : null
|
|
String Gtk.PRINT_SETTINGS_MEDIA_TYPE : null
|
|
String Gtk.PRINT_SETTINGS_NUMBER_UP : null
|
|
String Gtk.PRINT_SETTINGS_NUMBER_UP_LAYOUT : null
|
|
String Gtk.PRINT_SETTINGS_N_COPIES : null
|
|
String Gtk.PRINT_SETTINGS_ORIENTATION : null
|
|
String Gtk.PRINT_SETTINGS_OUTPUT_BIN : null
|
|
String Gtk.PRINT_SETTINGS_OUTPUT_FILE_FORMAT : null
|
|
String Gtk.PRINT_SETTINGS_OUTPUT_URI : null
|
|
String Gtk.PRINT_SETTINGS_PAGE_RANGES : null
|
|
String Gtk.PRINT_SETTINGS_PAGE_SET : null
|
|
String Gtk.PRINT_SETTINGS_PAPER_FORMAT : null
|
|
String Gtk.PRINT_SETTINGS_PAPER_HEIGHT : null
|
|
String Gtk.PRINT_SETTINGS_PAPER_WIDTH : null
|
|
String Gtk.PRINT_SETTINGS_PRINTER : null
|
|
String Gtk.PRINT_SETTINGS_PRINTER_LPI : null
|
|
String Gtk.PRINT_SETTINGS_PRINT_PAGES : null
|
|
String Gtk.PRINT_SETTINGS_QUALITY : null
|
|
String Gtk.PRINT_SETTINGS_RESOLUTION : null
|
|
String Gtk.PRINT_SETTINGS_RESOLUTION_X : null
|
|
String Gtk.PRINT_SETTINGS_RESOLUTION_Y : null
|
|
String Gtk.PRINT_SETTINGS_REVERSE : null
|
|
String Gtk.PRINT_SETTINGS_SCALE : null
|
|
String Gtk.PRINT_SETTINGS_USE_COLOR : null
|
|
String Gtk.PRINT_SETTINGS_WIN32_DRIVER_EXTRA : null
|
|
String Gtk.PRINT_SETTINGS_WIN32_DRIVER_VERSION : null
|
|
gint32 Gtk.PRIORITY_RESIZE : 0
|
|
String Gtk.STOCK_ABOUT : null
|
|
String Gtk.STOCK_ADD : null
|
|
String Gtk.STOCK_APPLY : null
|
|
String Gtk.STOCK_BOLD : null
|
|
String Gtk.STOCK_CANCEL : null
|
|
String Gtk.STOCK_CAPS_LOCK_WARNING : null
|
|
String Gtk.STOCK_CDROM : null
|
|
String Gtk.STOCK_CLEAR : null
|
|
String Gtk.STOCK_CLOSE : null
|
|
String Gtk.STOCK_COLOR_PICKER : null
|
|
String Gtk.STOCK_CONNECT : null
|
|
String Gtk.STOCK_CONVERT : null
|
|
String Gtk.STOCK_COPY : null
|
|
String Gtk.STOCK_CUT : null
|
|
String Gtk.STOCK_DELETE : null
|
|
String Gtk.STOCK_DIALOG_AUTHENTICATION : null
|
|
String Gtk.STOCK_DIALOG_ERROR : null
|
|
String Gtk.STOCK_DIALOG_INFO : null
|
|
String Gtk.STOCK_DIALOG_QUESTION : null
|
|
String Gtk.STOCK_DIALOG_WARNING : null
|
|
String Gtk.STOCK_DIRECTORY : null
|
|
String Gtk.STOCK_DISCARD : null
|
|
String Gtk.STOCK_DISCONNECT : null
|
|
String Gtk.STOCK_DND : null
|
|
String Gtk.STOCK_DND_MULTIPLE : null
|
|
String Gtk.STOCK_EDIT : null
|
|
String Gtk.STOCK_EXECUTE : null
|
|
String Gtk.STOCK_FILE : null
|
|
String Gtk.STOCK_FIND : null
|
|
String Gtk.STOCK_FIND_AND_REPLACE : null
|
|
String Gtk.STOCK_FLOPPY : null
|
|
String Gtk.STOCK_FULLSCREEN : null
|
|
String Gtk.STOCK_GOTO_BOTTOM : null
|
|
String Gtk.STOCK_GOTO_FIRST : null
|
|
String Gtk.STOCK_GOTO_LAST : null
|
|
String Gtk.STOCK_GOTO_TOP : null
|
|
String Gtk.STOCK_GO_BACK : null
|
|
String Gtk.STOCK_GO_DOWN : null
|
|
String Gtk.STOCK_GO_FORWARD : null
|
|
String Gtk.STOCK_GO_UP : null
|
|
String Gtk.STOCK_HARDDISK : null
|
|
String Gtk.STOCK_HELP : null
|
|
String Gtk.STOCK_HOME : null
|
|
String Gtk.STOCK_INDENT : null
|
|
String Gtk.STOCK_INDEX : null
|
|
String Gtk.STOCK_INFO : null
|
|
String Gtk.STOCK_ITALIC : null
|
|
String Gtk.STOCK_JUMP_TO : null
|
|
String Gtk.STOCK_JUSTIFY_CENTER : null
|
|
String Gtk.STOCK_JUSTIFY_FILL : null
|
|
String Gtk.STOCK_JUSTIFY_LEFT : null
|
|
String Gtk.STOCK_JUSTIFY_RIGHT : null
|
|
String Gtk.STOCK_LEAVE_FULLSCREEN : null
|
|
String Gtk.STOCK_MEDIA_FORWARD : null
|
|
String Gtk.STOCK_MEDIA_NEXT : null
|
|
String Gtk.STOCK_MEDIA_PAUSE : null
|
|
String Gtk.STOCK_MEDIA_PLAY : null
|
|
String Gtk.STOCK_MEDIA_PREVIOUS : null
|
|
String Gtk.STOCK_MEDIA_RECORD : null
|
|
String Gtk.STOCK_MEDIA_REWIND : null
|
|
String Gtk.STOCK_MEDIA_STOP : null
|
|
String Gtk.STOCK_MISSING_IMAGE : null
|
|
String Gtk.STOCK_NETWORK : null
|
|
String Gtk.STOCK_NEW : null
|
|
String Gtk.STOCK_NO : null
|
|
String Gtk.STOCK_OK : null
|
|
String Gtk.STOCK_OPEN : null
|
|
String Gtk.STOCK_ORIENTATION_LANDSCAPE : null
|
|
String Gtk.STOCK_ORIENTATION_PORTRAIT : null
|
|
String Gtk.STOCK_ORIENTATION_REVERSE_LANDSCAPE : null
|
|
String Gtk.STOCK_ORIENTATION_REVERSE_PORTRAIT : null
|
|
String Gtk.STOCK_PAGE_SETUP : null
|
|
String Gtk.STOCK_PASTE : null
|
|
String Gtk.STOCK_PREFERENCES : null
|
|
String Gtk.STOCK_PRINT : null
|
|
String Gtk.STOCK_PRINT_ERROR : null
|
|
String Gtk.STOCK_PRINT_PAUSED : null
|
|
String Gtk.STOCK_PRINT_PREVIEW : null
|
|
String Gtk.STOCK_PRINT_REPORT : null
|
|
String Gtk.STOCK_PRINT_WARNING : null
|
|
String Gtk.STOCK_PROPERTIES : null
|
|
String Gtk.STOCK_QUIT : null
|
|
String Gtk.STOCK_REDO : null
|
|
String Gtk.STOCK_REFRESH : null
|
|
String Gtk.STOCK_REMOVE : null
|
|
String Gtk.STOCK_REVERT_TO_SAVED : null
|
|
String Gtk.STOCK_SAVE : null
|
|
String Gtk.STOCK_SAVE_AS : null
|
|
String Gtk.STOCK_SELECT_ALL : null
|
|
String Gtk.STOCK_SELECT_COLOR : null
|
|
String Gtk.STOCK_SELECT_FONT : null
|
|
String Gtk.STOCK_SORT_ASCENDING : null
|
|
String Gtk.STOCK_SORT_DESCENDING : null
|
|
String Gtk.STOCK_SPELL_CHECK : null
|
|
String Gtk.STOCK_STOP : null
|
|
String Gtk.STOCK_STRIKETHROUGH : null
|
|
String Gtk.STOCK_UNDELETE : null
|
|
String Gtk.STOCK_UNDERLINE : null
|
|
String Gtk.STOCK_UNDO : null
|
|
String Gtk.STOCK_UNINDENT : null
|
|
String Gtk.STOCK_YES : null
|
|
String Gtk.STOCK_ZOOM_100 : null
|
|
String Gtk.STOCK_ZOOM_FIT : null
|
|
String Gtk.STOCK_ZOOM_IN : null
|
|
String Gtk.STOCK_ZOOM_OUT : null
|
|
String Gtk.STYLE_CLASS_ACCELERATOR : null
|
|
String Gtk.STYLE_CLASS_BACKGROUND : null
|
|
String Gtk.STYLE_CLASS_BUTTON : null
|
|
String Gtk.STYLE_CLASS_CALENDAR : null
|
|
String Gtk.STYLE_CLASS_CELL : null
|
|
String Gtk.STYLE_CLASS_CHECK : null
|
|
String Gtk.STYLE_CLASS_DEFAULT : null
|
|
String Gtk.STYLE_CLASS_DND : null
|
|
String Gtk.STYLE_CLASS_DOCK : null
|
|
String Gtk.STYLE_CLASS_ENTRY : null
|
|
String Gtk.STYLE_CLASS_ERROR : null
|
|
String Gtk.STYLE_CLASS_EXPANDER : null
|
|
String Gtk.STYLE_CLASS_FRAME : null
|
|
String Gtk.STYLE_CLASS_GRIP : null
|
|
String Gtk.STYLE_CLASS_HEADER : null
|
|
String Gtk.STYLE_CLASS_HIGHLIGHT : null
|
|
String Gtk.STYLE_CLASS_HORIZONTAL : null
|
|
String Gtk.STYLE_CLASS_INFO : null
|
|
String Gtk.STYLE_CLASS_INLINE_TOOLBAR : null
|
|
String Gtk.STYLE_CLASS_MARK : null
|
|
String Gtk.STYLE_CLASS_MENU : null
|
|
String Gtk.STYLE_CLASS_MENUBAR : null
|
|
String Gtk.STYLE_CLASS_MENUITEM : null
|
|
String Gtk.STYLE_CLASS_NOTEBOOK : null
|
|
String Gtk.STYLE_CLASS_PANE_SEPARATOR : null
|
|
String Gtk.STYLE_CLASS_PRIMARY_TOOLBAR : null
|
|
String Gtk.STYLE_CLASS_PROGRESSBAR : null
|
|
String Gtk.STYLE_CLASS_QUESTION : null
|
|
String Gtk.STYLE_CLASS_RADIO : null
|
|
String Gtk.STYLE_CLASS_RAISED : null
|
|
String Gtk.STYLE_CLASS_RUBBERBAND : null
|
|
String Gtk.STYLE_CLASS_SCALE : null
|
|
String Gtk.STYLE_CLASS_SCALE_HAS_MARKS_ABOVE : null
|
|
String Gtk.STYLE_CLASS_SCALE_HAS_MARKS_BELOW : null
|
|
String Gtk.STYLE_CLASS_SCROLLBAR : null
|
|
String Gtk.STYLE_CLASS_SEPARATOR : null
|
|
String Gtk.STYLE_CLASS_SIDEBAR : null
|
|
String Gtk.STYLE_CLASS_SLIDER : null
|
|
String Gtk.STYLE_CLASS_SPINBUTTON : null
|
|
String Gtk.STYLE_CLASS_SPINNER : null
|
|
String Gtk.STYLE_CLASS_TOOLBAR : null
|
|
String Gtk.STYLE_CLASS_TOOLTIP : null
|
|
String Gtk.STYLE_CLASS_TROUGH : null
|
|
String Gtk.STYLE_CLASS_VERTICAL : null
|
|
String Gtk.STYLE_CLASS_VIEW : null
|
|
String Gtk.STYLE_CLASS_WARNING : null
|
|
String Gtk.STYLE_PROPERTY_BACKGROUND_COLOR : null
|
|
String Gtk.STYLE_PROPERTY_BACKGROUND_IMAGE : null
|
|
String Gtk.STYLE_PROPERTY_BORDER_COLOR : null
|
|
String Gtk.STYLE_PROPERTY_BORDER_RADIUS : null
|
|
String Gtk.STYLE_PROPERTY_BORDER_STYLE : null
|
|
String Gtk.STYLE_PROPERTY_BORDER_WIDTH : null
|
|
String Gtk.STYLE_PROPERTY_COLOR : null
|
|
String Gtk.STYLE_PROPERTY_FONT : null
|
|
String Gtk.STYLE_PROPERTY_MARGIN : null
|
|
String Gtk.STYLE_PROPERTY_PADDING : null
|
|
gint32 Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION : 0
|
|
gint32 Gtk.STYLE_PROVIDER_PRIORITY_FALLBACK : 0
|
|
gint32 Gtk.STYLE_PROVIDER_PRIORITY_SETTINGS : 0
|
|
gint32 Gtk.STYLE_PROVIDER_PRIORITY_THEME : 0
|
|
gint32 Gtk.STYLE_PROVIDER_PRIORITY_USER : 0
|
|
String Gtk.STYLE_REGION_COLUMN : null
|
|
String Gtk.STYLE_REGION_COLUMN_HEADER : null
|
|
String Gtk.STYLE_REGION_ROW : null
|
|
String Gtk.STYLE_REGION_TAB : null
|
|
gint32 Gtk.TEXT_VIEW_PRIORITY_VALIDATE : 0
|
None |
Method / Constructor | Defined By | |
---|---|---|
Finds the first accelerator in any GtkAccelGroup attached
to object that matches accel_key and accel_mods, and activates that accelerator.
Finds the first accelerator in any GtkAccelGroup attached
to object that matches accel_key and accel_mods, and activates that accelerator.
|
Gtk | |
Gets a list of all accel groups which are attached to object.
Gets a list of all accel groups which are attached to object.
|
Gtk | |
Gtk.accelerator_get_default_mod_mask
()
:
Gdk.ModifierType
Gets the value set by gtk_accelerator_set_default_mod_mask().
Gets the value set by gtk_accelerator_set_default_mod_mask().
|
Gtk | |
Converts an accelerator keyval and modifier mask into a string
which can be used to represent the accelerator to the user.
Converts an accelerator keyval and modifier mask into a string
which can be used to represent the accelerator to the user.
|
Gtk | |
Converts an accelerator keyval and modifier mask
into a string parseable by gtk_accelerator_parse().
Converts an accelerator keyval and modifier mask
into a string parseable by gtk_accelerator_parse(). For example, if you pass in GDK_KEY_q and GDK_CONTROL_MASK, this function returns "<Control>q". If you need to display accelerators in the user interface, see gtk_accelerator_get_label().
|
Gtk | |
Parses a string representing an accelerator.
Parses a string representing an accelerator. The
format looks like "<Control>a" or "<Shift><Alt>F1" or "<Release>z" (the last one is for key release). The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". Key names are parsed using gdk_keyval_from_name(). For character keys the name is not the symbol, but the lowercase name, e.g. one would use "<Ctrl>minus" instead of "<Ctrl>-". If the parse fails, accelerator_key and accelerator_mods will be set to 0 (zero).
|
Gtk | |
Gtk.accelerator_set_default_mod_mask
(ModifierType default_mod_mask)
:
none
Sets the modifiers that will be considered significant for keyboard
accelerators.
Sets the modifiers that will be considered significant for keyboard
accelerators. The default mod mask is GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK | GDK_SUPER_MASK | GDK_HYPER_MASK | GDK_META_MASK, that is, Control, Shift, Alt, Super, Hyper and Meta. Other modifiers will by default be ignored by GtkAccelGroup. You must include at least the three modifiers Control, Shift and Alt in any value you pass to this function. The default mod mask should be changed on application startup, before using any accelerator groups.
|
Gtk | |
Determines whether a given keyval and modifier mask constitute
a valid keyboard accelerator.
Determines whether a given keyval and modifier mask constitute
a valid keyboard accelerator. For example, the GDK_KEY_a keyval plus GDK_CONTROL_MASK is valid - this is a "Ctrl+a" accelerator. But, you can't, for instance, use the GDK_KEY_Control_L keyval as an accelerator.
|
Gtk | |
Returns TRUE if dialogs are expected to use an alternative
button order on the screen screen.
Returns TRUE if dialogs are expected to use an alternative
button order on the screen screen. See gtk_dialog_set_alternative_button_order() for more details about alternative button order. If you need to use this function, you should probably connect to the ::notify:gtk-alternative-button-order signal on the GtkSettings object associated to screen, in order to be notified if the button order setting changes.
|
Gtk | |
Gtk.binding_entry_add_signal_from_string
(BindingSet binding_set, String signal_desc)
:
GLib.TokenType
Parses a signal description from signal_desc and incorporates
it into binding_set.
Parses a signal description from signal_desc and incorporates
it into binding_set. Signal descriptions may either bind a key combination to one or more signals: bind "key" { "signalname" (param, ...) ... } Or they may also unbind a key combination: unbind "key" Key combinations must be in a format that can be parsed by gtk_accelerator_parse(). the expected token otherwise
|
Gtk | |
Gtk.binding_entry_add_signall
(BindingSet binding_set, guint32 keyval, ModifierType modifiers, String signal_name, Array binding_args)
:
none
Override or install a new key binding for keyval with modifiers on
Override or install a new key binding for keyval with modifiers on
|
Gtk | |
Remove a binding previously installed via
gtk_binding_entry_add_signal() on binding_set.
Remove a binding previously installed via
gtk_binding_entry_add_signal() on binding_set.
|
Gtk | |
Install a binding on binding_set which causes key lookups
to be aborted, to prevent bindings from lower priority sets to be activated.
Install a binding on binding_set which causes key lookups
to be aborted, to prevent bindings from lower priority sets to be activated.
|
Gtk | |
Find a binding set by its globally unique name.
Find a binding set by its globally unique name.
The set_name can either be a name used for gtk_binding_set_new() or the type name of a class used in gtk_binding_set_by_class().
|
Gtk | |
Find a key binding matching keyval and modifiers and activate the
binding on object.
Find a key binding matching keyval and modifiers and activate the
binding on object.
|
Gtk | |
Looks up key bindings for object to find one matching
Looks up key bindings for object to find one matching
|
Gtk | |
Gtk.builder_error_quark
()
:
guint32
|
Gtk | |
This function is supposed to be called in GtkWidget::draw
implementations for widgets that support multiple windows.
This function is supposed to be called in GtkWidget::draw
implementations for widgets that support multiple windows. This function will return TRUE if the contents of the given that when the drawing was not initiated by the windowing system this function will return TRUE for all windows, so you need to draw the bottommost window first. Also, do not use "else if" statements to check which window should be drawn.
|
Gtk | |
Transforms the given cairo context cr that from widget-relative
coordinates to window-relative coordinates.
Transforms the given cairo context cr that from widget-relative
coordinates to window-relative coordinates. If the widget's window is not an ancestor of window, no modification will be applied. This is the inverse to the transformation GTK applies when preparing an expose event to be emitted with the GtkWidget::draw signal. It is intended to help porting multiwindow widgets from GTK+ 2 to the rendering architecture of GTK+ 3.
|
Gtk | |
Checks that the GTK+ library in use is compatible with the
given version.
Checks that the GTK+ library in use is compatible with the
given version. Generally you would pass in the constants GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of GTK+ the application or module was compiled against. of the running library is newer than the version the running library must be binary compatible with the version required_major.required_minor.required_micro (same major version.) This function is primarily for GTK+ modules; the module can call this function to check that it wasn't loaded into an incompatible version of GTK+. However, such a check isn't completely reliable, since the module may be linked against an old version of GTK+ and calling the old version of gtk_check_version(), but still get loaded into an application using a newer version of GTK+. given version, or a string describing the version mismatch. The returned string is owned by GTK+ and should not be modified or freed.
|
Gtk | |
Gtk.css_provider_error_quark
()
:
guint32
|
Gtk | |
Adds a GTK+ grab on device, so all the events on device and its
associated pointer or keyboard (if any) are delivered to widget.
Adds a GTK+ grab on device, so all the events on device and its
associated pointer or keyboard (if any) are delivered to widget. If the block_others parameter is TRUE, any other devices will be unable to interact with widget during the grab.
|
Gtk | |
Removes a device grab from the given widget.
Removes a device grab from the given widget.
You have to pair calls to gtk_device_grab_add() and gtk_device_grab_remove().
|
Gtk | |
Gtk.disable_setlocale
()
:
none
Prevents gtk_init(), gtk_init_check(), gtk_init_with_args() and
gtk_parse_args() from automatically calling
Prevents gtk_init(), gtk_init_check(), gtk_init_with_args() and
gtk_parse_args() from automatically calling want to use this function if you wanted to set the locale for your program to something other than the user's locale, or if you wanted to set different values for different locale categories. Most programs should not need to call this function.
|
Gtk | |
Gtk.distribute_natural_allocation
(gint32 extra_space, guint32 n_requested_sizes, RequestedSize sizes)
:
gint32
Distributes extra_space to child sizes by bringing smaller
children up to natural size first.
Distributes extra_space to child sizes by bringing smaller
children up to natural size first. The remaining space will be added to the minimum_size member of the GtkRequestedSize struct. If all sizes reach their natural size then the remaining space is returned. to sizes.
|
Gtk | |
|
Gtk | |
Determines the source widget for a drag.
Determines the source widget for a drag.
within a single application, a pointer to the source widget. Otherwise, NULL.
|
Gtk | |
Gtk.drag_set_icon_default
(DragContext context)
:
none
Sets the icon for a particular drag to the default
icon.
Sets the icon for a particular drag to the default
icon.
|
Gtk | |
Sets the icon for a given drag from a named themed icon.
Sets the icon for a given drag from a named themed icon. See
the docs for GtkIconTheme for more details. Note that the size of the icon depends on the icon theme (the icon is loaded at the symbolic size GTK_ICON_SIZE_DND), thus
|
Gtk | |
Sets pixbuf as the icon for a given drag.
Sets pixbuf as the icon for a given drag.
|
Gtk | |
Sets the icon for a given drag from a stock ID.
Sets the icon for a given drag from a stock ID.
|
Gtk | |
Sets surface as the icon for a given drag.
Sets surface as the icon for a given drag. GTK+ retains
references for the arguments, and will release them when they are no longer needed. To position the surface relative to the mouse, use cairo_surface_set_device_offset() on surface. The mouse cursor will be positioned at the (0,0) coordinate of the surface.
|
Gtk | |
Changes the icon for a widget to a given widget.
Changes the icon for a widget to a given widget. GTK+
will not destroy the icon, so if you don't want it to persist, you should connect to the "drag-end" signal and destroy it yourself.
|
Gtk | |
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.
Draws a text caret on cr at location. This is not a style function
but merely a convenience function for drawing the standard cursor shape.
|
Gtk | |
Gtk.events_pending
()
:
gboolean
Checks if any events are pending.
Checks if any events are pending.
This can be used to update the UI and invoke timeouts etc. while doing some time intensive computation. /* computation going on... */ while (gtk_events_pending ()) gtk_main_iteration (); /* ...computation continued */
|
Gtk | |
Gtk.false
()
:
gboolean
Analogical to gtk_true(), this function does nothing
but always returns FALSE.
Analogical to gtk_true(), this function does nothing
but always returns FALSE.
|
Gtk | |
Gtk.file_chooser_error_quark
()
:
guint32
Registers an error quark for GtkFileChooser if necessary.
Registers an error quark for GtkFileChooser if necessary.
|
Gtk | |
Gtk.get_binary_age
()
:
guint32
Returns the binary age as passed to
when building the GTK+ library the process is running against.
Returns the binary age as passed to
when building the GTK+ library the process is running against. If worry about it.
|
Gtk | |
Gtk.get_current_event
()
:
Gdk.Event
Obtains a copy of the event currently being processed by GTK+.
Obtains a copy of the event currently being processed by GTK+.
For example, if you are handling a GtkButton::clicked signal, the current event will be the GdkEventButton that triggered the ::clicked signal. NULL if there is no current event. The returned event must be freed with gdk_event_free().
|
Gtk | |
Gtk.get_current_event_device
()
:
Gdk.Device
If there is a current event and it has a device, return that
device, otherwise return NULL.
If there is a current event and it has a device, return that
device, otherwise return NULL.
|
Gtk | |
If there is a current event and it has a state field, place
that state field in state and return TRUE, otherwise return FALSE.
If there is a current event and it has a state field, place
that state field in state and return TRUE, otherwise return FALSE. had a state field
|
Gtk | |
Gtk.get_current_event_time
()
:
guint32
If there is a current event and it has a timestamp,
return that timestamp, otherwise return GDK_CURRENT_TIME.
If there is a current event and it has a timestamp,
return that timestamp, otherwise return GDK_CURRENT_TIME. or GDK_CURRENT_TIME.
|
Gtk | |
Gtk.get_debug_flags
()
:
guint32
Returns the GTK+ debug flags.
Returns the GTK+ debug flags.
This function is intended for GTK+ modules that want to adjust their debug output based on GTK+ debug flags.
|
Gtk | |
Gtk.get_default_language
()
:
Pango.Language
Returns the PangoLanguage for the default language currently in
effect.
Returns the PangoLanguage for the default language currently in
effect. (Note that this can change over the life of an application.) The default language is derived from the current locale. It determines, for example, whether GTK+ uses the right-to-left or left-to-right text direction. This function is equivalent to pango_language_get_default(). See that function for details. must not be freed
|
Gtk | |
If event is NULL or the event was not associated with any widget,
returns NULL, otherwise returns the widget that received the event originally.
If event is NULL or the event was not associated with any widget,
returns NULL, otherwise returns the widget that received the event originally. received event, or NULL
|
Gtk | |
Gtk.get_interface_age
()
:
guint32
Returns the interface age as passed to
when building the GTK+ library the process is running against.
Returns the interface age as passed to
when building the GTK+ library the process is running against. If worry about it.
|
Gtk | |
Gtk.get_major_version
()
:
guint32
Returns the major version number of the GTK+ library.
Returns the major version number of the GTK+ library.
(e.g. in GTK+ version 3.1.5 this is 3.) This function is in the library, so it represents the GTK+ library your code is running against. Contrast with the GTK_MAJOR_VERSION macro, which represents the major version of the GTK+ headers you have included when compiling your code.
|
Gtk | |
Gtk.get_micro_version
()
:
guint32
Returns the micro version number of the GTK+ library.
Returns the micro version number of the GTK+ library.
(e.g. in GTK+ version 3.1.5 this is 5.) This function is in the library, so it represents the GTK+ library your code is are running against. Contrast with the GTK_MICRO_VERSION macro, which represents the micro version of the GTK+ headers you have included when compiling your code.
|
Gtk | |
Gtk.get_minor_version
()
:
guint32
Returns the minor version number of the GTK+ library.
Returns the minor version number of the GTK+ library.
(e.g. in GTK+ version 3.1.5 this is 1.) This function is in the library, so it represents the GTK+ library your code is are running against. Contrast with the GTK_MINOR_VERSION macro, which represents the minor version of the GTK+ headers you have included when compiling your code.
|
Gtk | |
Gtk.grab_get_current
()
:
Gtk.Widget
Queries the current grab of the default window group.
Queries the current grab of the default window group.
has the grab or NULL if no grab is active
|
Gtk | |
Gtk | ||
Gtk | ||
Obtains the pixel size of a semantic icon size, possibly
modified by user preferences for the default GtkSettings.
Obtains the pixel size of a semantic icon size, possibly
modified by user preferences for the default GtkSettings. (See gtk_icon_size_lookup_for_settings().) Normally size would be GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_BUTTON, etc. This function isn't normally needed, gtk_widget_render_icon_pixbuf() is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by gtk_icon_size_lookup(), because themes are free to render the pixbuf however they like, including changing the usual size.
|
Gtk | |
Obtains the pixel size of a semantic icon size, possibly
modified by user preferences for a particular GtkSettings.
Obtains the pixel size of a semantic icon size, possibly
modified by user preferences for a particular GtkSettings. Normally size would be GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_BUTTON, etc. This function isn't normally needed, gtk_widget_render_icon_pixbuf() is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by gtk_icon_size_lookup(), because themes are free to render the pixbuf however they like, including changing the usual size.
|
Gtk | |
Registers a new icon size, along the same lines as GTK_ICON_SIZE_MENU,
etc.
Registers a new icon size, along the same lines as GTK_ICON_SIZE_MENU,
etc. Returns the integer value for the size.
|
Gtk | |
Registers alias as another name for target.
|
Gtk | |
Gtk.icon_theme_error_quark
()
:
guint32
|
Gtk | |
Call this function before using any other GTK+ functions in your GUI
applications.
Call this function before using any other GTK+ functions in your GUI
applications. It will initialize everything needed to operate the toolkit and parses some standard command line options. Although you are expected to pass the argc, argv parameters from main() to this function, it is possible to pass NULL if argv is not available or commandline handling is not required. never see those standard arguments. Note that there are some alternative ways to initialize GTK+: if you are calling gtk_parse_args(), gtk_init_check(), gtk_init_with_args() or g_option_context_parse() with the option group returned by gtk_get_option_group(), you This function will terminate your program if it was unable to initialize the windowing system for some reason. If you want your program to fall back to a textual interface you want to call gtk_init_check() instead. Since 2.18, GTK+ calls during initialization, to ignore SIGPIPE signals, since these are almost never wanted in graphical applications. If you do need to handle SIGPIPE for some reason, reset the handler after gtk_init(), but notice that other libraries (e.g. libdbus or gvfs) might do similar things.
|
Gtk | |
This function does the same work as gtk_init() with only a single
can't be initialized.
This function does the same work as gtk_init() with only a single
can't be initialized. Instead it returns FALSE on failure. This way the application can fall back to some other means of communication with the user - for example a curses or command line interface. initialized, FALSE otherwise
|
Gtk | |
Gtk.init_with_args
(gint32 argc, Array argv, String parameter_string, Array entries, String translation_domain)
:
gboolean
This function does the same work as gtk_init_check().
This function does the same work as gtk_init_check().
Additionally, it allows you to add your own commandline options, and it automatically generates nicely formatted output. Note that your program will be terminated after writing out the help output. initialized, FALSE otherwise
|
Gtk | |
Gtk.key_snooper_remove
(guint32 snooper_handler_id)
:
none
Removes the key snooper function with the given id.
Removes the key snooper function with the given id.
|
Gtk | |
Gtk.main
()
:
none
Runs the main loop until gtk_main_quit() is called.
Runs the main loop until gtk_main_quit() is called.
You can nest calls to gtk_main(). In that case gtk_main_quit() will make the innermost invocation of the main loop return.
|
Gtk | |
Gtk.main_do_event
(Event event)
:
none
Processes a single GDK event.
Processes a single GDK event.
This is public only to allow filtering of events between GDK and GTK+. You will not usually need to call this function directly. While you should not call this function directly, you might want to know how exactly events are handled. So here is what this function does with the event: Compress enter/leave notify events. If the event passed build an enter/leave pair together with the next event (peeked from GDK), both events are thrown away. This is to avoid a backlog of (de-)highlighting widgets crossed by the pointer. Find the widget which got the event. If the widget can't be determined the event is thrown away unless it belongs to a INCR transaction. In that case it is passed to gtk_selection_incr_event(). Then the event is pushed onto a stack so you can query the currently handled event with gtk_get_current_event(). The event is sent to a widget. If a grab is active all events for widgets that are not in the contained in the grab widget are sent to the latter with a few exceptions: Deletion and destruction events are still sent to the event widget for obvious reasons. Events which directly relate to the visual representation of the event widget. Leave events are delivered to the event widget if there was an enter event delivered to it before without the paired leave event. Drag events are not redirected because it is unclear what the semantics of that would be. Another point of interest might be that all key events are first passed through the key snooper functions if there are any. Read the description of gtk_key_snooper_install() if you need this feature. After finishing the delivery the event is popped from the event stack.
|
Gtk | |
Gtk.main_iteration
()
:
gboolean
Runs a single iteration of the mainloop.
Runs a single iteration of the mainloop.
If no events are waiting to be processed GTK+ will block until the next event is noticed. If you don't want to block look at gtk_main_iteration_do() or check if any events are pending with gtk_events_pending() first. innermost mainloop
|
Gtk | |
Runs a single iteration of the mainloop.
Runs a single iteration of the mainloop.
If no events are available either return or block depending on the value of blocking. innermost mainloop
|
Gtk | |
Gtk.main_level
()
:
guint32
Asks for the current nesting level of the main loop.
Asks for the current nesting level of the main loop.
of the main loop
|
Gtk | |
Gtk.main_quit
()
:
none
Makes the innermost invocation of the main loop return
when it regains control.
Makes the innermost invocation of the main loop return
when it regains control.
|
Gtk | |
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.
Draws an arrow in the given rectangle on cr using the given
parameters. arrow_type determines the direction of the arrow.
|
Gtk | |
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.
Draws a box on cr with the given parameters.
|
Gtk | |
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.
Draws a box in cr using the given style and state and shadow type,
leaving a gap in one side.
|
Gtk | |
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.
Draws a check button indicator in the given rectangle on cr with
the given parameters.
|
Gtk | |
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.
Draws a diamond in the given rectangle on window using the given
parameters.
|
Gtk | |
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.
Draws an expander as used in GtkTreeView. x and y specify the
center the expander. The size of the expander is determined by the "expander-size" style property of widget. (If widget is not specified or doesn't have an "expander-size" property, an unspecified default size will be used, since the caller doesn't have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.
|
Gtk | |
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.
Draws an extension, i.e. a notebook tab.
|
Gtk | |
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.
Draws a flat box on cr with the given parameters.
|
Gtk | |
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.
Draws a focus indicator around the given rectangle on cr using the
given style.
|
Gtk | |
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.
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk | |
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.
Draws a horizontal line from (x1, y) to (x2, y) in cr
using the given style and state.
|
Gtk | |
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.
Draws a layout on cr using the given parameters.
|
Gtk | |
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.
Draws a radio button indicator in the given rectangle on cr with
the given parameters.
|
Gtk | |
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.
Draws a resize grip in the given rectangle on cr using the given
parameters.
|
Gtk | |
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.
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type.
|
Gtk | |
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.
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 | |
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.
Draws a slider in the given rectangle on cr using the
given style and orientation.
|
Gtk | |
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.
Draws a spinner on window using the given parameters.
|
Gtk | |
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.
Draws an option menu tab (i.e. the up and down pointing arrows)
in the given rectangle on cr using the given parameters.
|
Gtk | |
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.
Draws a vertical line from (x, y1_) to (x, y2_) in cr
using the given style and state.
|
Gtk | |
Gtk.paper_size_get_default
()
:
String
Returns the name of the default paper size, which
depends on the current locale.
Returns the name of the default paper size, which
depends on the current locale. is owned by GTK+ and should not be modified.
|
Gtk | |
Gtk | ||
Parses command line arguments, and initializes global
attributes of GTK+, but does not actually open a connection to a display.
Parses command line arguments, and initializes global
attributes of GTK+, but does not actually open a connection to a display. (See gdk_display_open(), gdk_get_display_arg_name()) Any arguments used by GTK+ or GDK are removed from the array and There is no need to call this function explicitely if you are using gtk_init(), or gtk_init_check().
|
Gtk | |
Gtk.print_error_quark
()
:
guint32
Registers an error quark for GtkPrintOperation if necessary.
Registers an error quark for GtkPrintOperation if necessary.
|
Gtk | |
Gtk.print_run_page_setup_dialog
(Window parent, PageSetup page_setup, PrintSettings settings)
:
Gtk.PageSetup
Runs a page setup dialog, letting the user modify the values from
is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog.
Runs a page setup dialog, letting the user modify the values from
is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog. Note that this function may use a recursive mainloop to show the page setup dialog. See gtk_print_run_page_setup_dialog_async() if this is a problem.
|
Gtk | |
Gtk.print_run_page_setup_dialog_async
(Window parent, PageSetup page_setup, PrintSettings settings, Function done_cb, void* data)
:
none
Runs a page setup dialog, letting the user modify the values from page_setup.
Runs a page setup dialog, letting the user modify the values from page_setup.
In contrast to gtk_print_run_page_setup_dialog(), this function returns after showing the page setup dialog on platforms that support this, and calls done_cb from a signal handler for the ::response signal of the dialog.
|
Gtk | |
Sends an event to a widget, propagating the event to parent widgets
if the event remains unhandled.
Sends an event to a widget, propagating the event to parent widgets
if the event remains unhandled. Events received by GTK+ from GDK normally begin in gtk_main_do_event(). Depending on the type of event, existence of modal dialogs, grabs, etc., the event may be propagated; if so, this function is used. gtk_propagate_event() calls gtk_widget_event() on each widget it decides to send the event to. So gtk_widget_event() is the lowest-level function; it simply emits the GtkWidget::event and possibly an event-specific signal on a widget. gtk_propagate_event() is a bit higher-level, and gtk_main_do_event() is the highest level. All that said, you most likely don't want to use any of these functions; synthesizing events is rarely needed. There are almost certainly better ways to achieve your goals. For example, use gdk_window_invalidate_rect() or gtk_widget_queue_draw() instead of making up expose events.
|
Gtk | |
Gtk.rc_add_default_file
(String filename)
:
none
Adds a file to the list of files to be parsed at the
end of gtk_init().
Adds a file to the list of files to be parsed at the
end of gtk_init().
|
Gtk | |
Searches for a theme engine in the GTK+ search path.
|
Gtk | |
Looks up a file in pixmap path for the specified GtkSettings.
Looks up a file in pixmap path for the specified GtkSettings.
If the file is not found, it outputs a warning message using g_warning() and returns NULL.
|
Gtk | |
Gtk.rc_get_default_files
()
:
Array
Retrieves the current list of RC files that will be parsed
at the end of gtk_init().
Retrieves the current list of RC files that will be parsed
at the end of gtk_init(). A NULL-terminated array of filenames. This memory is owned by GTK+ and must not be freed by the application. If you want to store this information, you should make a copy.
|
Gtk | |
Gtk.rc_get_im_module_file
()
:
String
Obtains the path to the IM modules file.
Obtains the path to the IM modules file. See the documentation
of the environment variable for more details.
|
Gtk | |
Gtk.rc_get_im_module_path
()
:
String
Obtains the path in which to look for IM modules.
Obtains the path in which to look for IM modules. See the documentation
of the environment variable for more details about looking up modules. This function is useful solely for utilities supplied with GTK+ and should not be used by applications under normal circumstances.
|
Gtk | |
Gtk.rc_get_module_dir
()
:
String
Returns a directory in which GTK+ looks for theme engines.
Returns a directory in which GTK+ looks for theme engines.
For full information about the search for theme engines, see the docs for
|
Gtk | |
Finds all matching RC styles for a given widget,
composites them together, and then creates a GtkStyle representing the composite appearance.
Finds all matching RC styles for a given widget,
composites them together, and then creates a GtkStyle representing the composite appearance. (GTK+ actually keeps a cache of previously created styles, so a new style may not be created.) to the returned style, so if you want to save this style around, you should add a reference yourself.
|
Gtk | |
Gtk.rc_get_style_by_paths
(Settings settings, String widget_path, String class_path, Number type)
:
Gtk.Style
Creates up a GtkStyle from styles defined in a RC file by providing
the raw components used in matching.
Creates up a GtkStyle from styles defined in a RC file by providing
the raw components used in matching. This function may be useful when creating pseudo-widgets that should be themed like widgets but don't actually have corresponding GTK+ widgets. An example of this would be items inside a GNOME canvas widget. The action of gtk_rc_get_style() is similar to: |[ gtk_widget_path (widget, NULL, &path, NULL); gtk_widget_class_path (widget, NULL, &class_path, NULL); gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget), path, class_path, G_OBJECT_TYPE (widget)); ]| supplied paths, or NULL if nothing matching was specified and the default style should be used. The returned value is owned by GTK+ as part of an internal cache, so you must call g_object_ref() on the returned value if you want to keep a reference to it.
|
Gtk | |
Gtk.rc_get_theme_dir
()
:
String
|
Gtk | |
Gtk.rc_parse
(String filename)
:
none
|
Gtk | |
Parses a color in the format expected
in a RC file.
Parses a color in the format expected
in a RC file. Note that theme engines should use gtk_rc_parse_color_full() in order to support symbolic colors. that was expected but not found
|
Gtk | |
Parses a color in the format expected
in a RC file.
Parses a color in the format expected
in a RC file. If style is not NULL, it will be consulted to resolve references to symbolic colors. that was expected but not found
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk.rc_parse_string
(String rc_string)
:
none
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses borders in the form left, right, top and bottom.
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses borders in the form left, right, top and bottom. has been set to the resulting GtkBorder.
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form blue are integers between 0 and 65535 or floating-point numbers between 0 and 1. has been set to the resulting GdkColor.
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a single enumeration value.
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a single enumeration value. The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses. has been set to the resulting GEnumValue.
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses flags.
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses flags. Flags can be specified by their name, their nickname or numerically. Multiple flags can be specified in the form has been set to the resulting flags value.
|
Gtk | |
Gtk.rc_property_parse_requisition
(ParamSpec pspec, String gstring, Value property_value)
:
gboolean
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a requisition in the form
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a requisition in the form has been set to the resulting GtkRequisition.
|
Gtk | |
Gtk.rc_reparse_all
()
:
gboolean
If the modification time on any previously read file for the
default GtkSettings has changed, discard all style information and then reread all previously read RC files.
If the modification time on any previously read file for the
default GtkSettings has changed, discard all style information and then reread all previously read RC files.
|
Gtk | |
If the modification time on any previously read file
for the given GtkSettings has changed, discard all style information and then reread all previously read RC files.
If the modification time on any previously read file
for the given GtkSettings has changed, discard all style information and then reread all previously read RC files.
|
Gtk | |
Gtk.rc_reset_styles
(Settings settings)
:
none
This function recomputes the styles for all widgets that use a
particular GtkSettings object.
This function recomputes the styles for all widgets that use a
particular GtkSettings object. (There is one GtkSettings object per GdkScreen, see gtk_settings_get_for_screen()); It is useful when some global parameter has changed that affects the appearance of all widgets, because when a widget gets a new style, it will both redraw and recompute any cached information about its appearance. As an example, it is used when the default font size set by the operating system changes. Note that this function doesn't affect widgets that have a style set explicitely on them with gtk_widget_set_style().
|
Gtk | |
Gtk.rc_set_default_files
(Array filenames)
:
none
Sets the list of files that GTK+ will read at the
end of gtk_init().
Sets the list of files that GTK+ will read at the
end of gtk_init().
|
Gtk | |
Gtk.recent_chooser_error_quark
()
:
guint32
|
Gtk | |
Gtk.recent_manager_error_quark
()
:
guint32
|
Gtk | |
Gtk.render_activity
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders an activity area (Such as in GtkSpinner or the
fill line in GtkRange), the state GTK_STATE_FLAG_ACTIVE determines whether there is activity going on.
Renders an activity area (Such as in GtkSpinner or the
fill line in GtkRange), the state GTK_STATE_FLAG_ACTIVE determines whether there is activity going on.
|
Gtk | |
Gtk.render_arrow
(StyleContext context, Context cr, gdouble angle, gdouble x, gdouble y, gdouble size)
:
none
Renders an arrow pointing to angle.
Renders an arrow pointing to angle.
|
Gtk | |
Gtk.render_background
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders the background of an element.
Renders the background of an element.
|
Gtk | |
Gtk.render_check
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders a checkmark (as in a GtkCheckButton).
Renders a checkmark (as in a GtkCheckButton).
The GTK_STATE_FLAG_ACTIVE state determines whether the check is on or off, and GTK_STATE_FLAG_INCONSISTENT determines whether it should be marked as undefined.
|
Gtk | |
Gtk.render_expander
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders an expander (as used in GtkTreeView and GtkExpander) in the area
defined by x, y, width, height.
Renders an expander (as used in GtkTreeView and GtkExpander) in the area
defined by x, y, width, height. The state GTK_STATE_FLAG_ACTIVE determines whether the expander is collapsed or expanded.
|
Gtk | |
Gtk.render_extension
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height, PositionType gap_side)
:
none
Renders a extension (as in a GtkNotebook tab) in the rectangle
defined by x, y, width, height.
Renders a extension (as in a GtkNotebook tab) in the rectangle
defined by x, y, width, height. The side where the extension connects to is defined by gap_side.
|
Gtk | |
Gtk.render_focus
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders a focus indicator on the rectangle determined by x, y, width, height.
Renders a focus indicator on the rectangle determined by x, y, width, height.
|
Gtk | |
Gtk.render_frame
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders a frame around the rectangle defined by x, y, width, height.
Renders a frame around the rectangle defined by x, y, width, height.
junctions
|
Gtk | |
Gtk.render_frame_gap
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height, PositionType gap_side, gdouble xy0_gap, gdouble xy1_gap)
:
none
Renders a frame around the rectangle defined by (x, y, width, height),
leaving a gap on one side.
Renders a frame around the rectangle defined by (x, y, width, height),
leaving a gap on one side. xy0_gap and xy1_gap will mean X coordinates for GTK_POS_TOP and GTK_POS_BOTTOM gap sides, and Y coordinates for GTK_POS_LEFT and GTK_POS_RIGHT.
|
Gtk | |
Gtk.render_handle
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders a handle (as in GtkHandleBox, GtkPaned and
GtkWindow's resize grip), in the rectangle determined by x, y, width, height.
Renders a handle (as in GtkHandleBox, GtkPaned and
GtkWindow's resize grip), in the rectangle determined by x, y, width, height.
|
Gtk | |
Renders the icon specified by source at the given size, returning the result
in a pixbuf.
Renders the icon specified by source at the given size, returning the result
in a pixbuf.
|
Gtk | |
Renders layout on the coordinates x, y
Renders layout on the coordinates x, y
|
Gtk | |
Gtk.render_line
(StyleContext context, Context cr, gdouble x0, gdouble y0, gdouble x1, gdouble y1)
:
none
Renders a line from (x0, y0) to (x1, y1).
Renders a line from (x0, y0) to (x1, y1).
|
Gtk | |
Gtk.render_option
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height)
:
none
Renders an option mark (as in a GtkRadioButton), the GTK_STATE_FLAG_ACTIVE
state will determine whether the option is on or off, and GTK_STATE_FLAG_INCONSISTENT whether it should be marked as undefined.
Renders an option mark (as in a GtkRadioButton), the GTK_STATE_FLAG_ACTIVE
state will determine whether the option is on or off, and GTK_STATE_FLAG_INCONSISTENT whether it should be marked as undefined.
|
Gtk | |
Gtk.render_slider
(StyleContext context, Context cr, gdouble x, gdouble y, gdouble width, gdouble height, Orientation orientation)
:
none
Renders a slider (as in GtkScale) in the rectangle defined by x, y,
or horizontal.
Renders a slider (as in GtkScale) in the rectangle defined by x, y,
or horizontal.
|
Gtk | |
Converts a color from RGB space to HSV.
|
Gtk | |
Appends a specified target to the list of supported targets for a
given widget and selection.
Appends a specified target to the list of supported targets for a
given widget and selection.
|
Gtk | |
Prepends a table of targets to the list of supported targets
for a given widget and selection.
Prepends a table of targets to the list of supported targets
for a given widget and selection.
|
Gtk | |
Remove all targets registered for the given selection for the
widget.
Remove all targets registered for the given selection for the
widget.
|
Gtk | |
Requests the contents of a selection.
Requests the contents of a selection. When received,
a "selection-received" signal will be generated. request. (e.g., there was already a request in process for this widget).
|
Gtk | |
Claims ownership of a given selection for a particular widget,
or, if widget is NULL, release ownership of the selection.
Claims ownership of a given selection for a particular widget,
or, if widget is NULL, release ownership of the selection.
|
Gtk | |
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.
Claim ownership of a given selection for a particular widget, or,
if widget is NULL, release ownership of the selection.
|
Gtk | |
Gtk.selection_remove_all
(Widget widget)
:
none
Removes all handlers and unsets ownership of all
selections for a widget.
Removes all handlers and unsets ownership of all
selections for a widget. Called when widget is being destroyed. This function will not generally be called by applications.
|
Gtk | |
Gtk.set_debug_flags
(guint32 flags)
:
none
Sets the GTK+ debug flags.
Sets the GTK+ debug flags.
|
Gtk | |
This is a convenience function for launching the default application
to show the uri.
This is a convenience function for launching the default application
to show the uri. The uri must be of a form understood by GIO (i.e. you need to install gvfs to get support for uri schemes such as http:// or ftp://, as only local files are handled by GIO itself). Typical examples are Ideally the timestamp is taken from the event triggering the gtk_show_uri() call. If timestamp is not known you can take GDK_CURRENT_TIME. This function can be used as a replacement for gnome_vfs_url_show() and gnome_url_show().
|
Gtk | |
Registers each of the stock items in items.
Registers each of the stock items in items. If an item already
exists with the same stock ID as one of the items, the old item gets replaced. The stock items are copied, so GTK+ does not hold any pointer into items and items can be freed. Use gtk_stock_add_static() if items is persistent and GTK+ need not copy the array.
|
Gtk | |
Gtk | ||
Gtk.stock_list_ids
()
:
Array
Retrieves a list of all known stock IDs added to a GtkIconFactory
or registered with gtk_stock_add().
Retrieves a list of all known stock IDs added to a GtkIconFactory
or registered with gtk_stock_add(). The list must be freed with g_slist_free(), and each string in the list must be freed with g_free().
|
Gtk | |
Fills item with the registered values for stock_id, returning TRUE
if stock_id was known.
Fills item with the registered values for stock_id, returning TRUE
if stock_id was known.
|
Gtk | |
Sets a function to be used for translating the label of
a stock item.
Sets a function to be used for translating the label of
a stock item. If no function is registered for a translation domain, g_dgettext() is used. The function is used for all stock items whose to use strings different from the actual gettext translation domain of your application for this, as long as your GtkTranslateFunc uses the correct domain when calling dgettext(). This can be useful, e.g. when dealing with message contexts: |[ GtkStockItem items[] = { { MY_ITEM1, NC_("odd items", "Item 1"), 0, 0, "odd-item-domain" }, { MY_ITEM2, NC_("even items", "Item 2"), 0, 0, "even-item-domain" }, }; gchar * my_translate_func (const gchar *msgid, gpointer data) { gchar *msgctxt = data; return (gchar*)g_dpgettext2 (GETTEXT_PACKAGE, msgctxt, msgid); } /* ... */ gtk_stock_add (items, G_N_ELEMENTS (items)); gtk_stock_set_translate_func ("odd-item-domain", my_translate_func, "odd items"); gtk_stock_set_translate_func ("even-item-domain", my_translate_func, "even items"); ]|
|
Gtk | |
This function frees a target table as returned by
gtk_target_table_new_from_list() |
Gtk | |
This function creates an GtkTargetEntry array that contains the
same targets as the passed list.
This function creates an GtkTargetEntry array that contains the
same targets as the passed list. The returned table is newly allocated and should be freed using gtk_target_table_free() when no longer needed.
|
Gtk | |
Determines if any of the targets in targets can be used to
provide a GdkPixbuf.
Determines if any of the targets in targets can be used to
provide a GdkPixbuf. otherwise FALSE.
|
Gtk | |
Determines if any of the targets in targets can be used to
provide rich text.
Determines if any of the targets in targets can be used to
provide rich text. otherwise FALSE.
|
Gtk | |
Determines if any of the targets in targets can be used to
provide text. |
Gtk | |
Determines if any of the targets in targets can be used to
provide an uri list. |
Gtk | |
Create a simple window with window title window_title and
text contents dialog_text.
Create a simple window with window title window_title and
text contents dialog_text. The window will quit any running gtk_main()-loop when destroyed, and it will automatically be destroyed upon test function teardown.
|
Gtk | |
This function will search widget and all its descendants for a GtkLabel
widget with a text string matching label_pattern.
This function will search widget and all its descendants for a GtkLabel
widget with a text string matching label_pattern. The label_pattern may contain asterisks '*' and question marks '?' as placeholders, g_pattern_match() is used for the matching. Note that locales other than "C" tend to alter (translate" label strings, so this function is genrally only useful in test programs with predetermined locales, see gtk_test_init() for more details.
|
Gtk | |
This function will search siblings of base_widget and siblings of its
ancestors for all widgets matching widget_type.
This function will search siblings of base_widget and siblings of its
ancestors for all widgets matching widget_type. Of the matching widgets, the one that is geometrically closest to The general purpose of this function is to find the most likely "action" widget, relative to another labeling widget. Such as finding a button or text entry widget, given its corresponding label widget.
|
Gtk | |
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.
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. This is most useful for automated GUI testing, e.g. to find the "OK" button in a dialog and synthesize clicks on it. However see gtk_test_find_label(), gtk_test_find_sibling() and gtk_test_widget_click() for possible caveats involving the search of such widgets and synthesizing widget events.
|
Gtk | |
Gtk | ||
Gtk.test_register_all_types
()
:
none
Force registration of all core Gtk+ and Gdk object types.
Force registration of all core Gtk+ and Gdk object types.
This allowes to refer to any of those object types via g_type_from_name() after calling this function.
|
Gtk | |
Retrive the literal adjustment value for GtkRange based
widgets and spin buttons.
Retrive the literal adjustment value for GtkRange based
widgets and spin buttons. Note that the value returned by this function is anything between the lower and upper bounds of the adjustment belonging to widget, and is not a percentage as passed in to gtk_test_slider_set_perc().
|
Gtk | |
This function will adjust the slider position of all GtkRange
based widgets, such as scrollbars or scales, it'll also adjust spin buttons.
This function will adjust the slider position of all GtkRange
based widgets, such as scrollbars or scales, it'll also adjust spin buttons. The adjustment value of these widgets is set to a value between the lower and upper limits, according to the
|
Gtk | |
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.
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.
|
Gtk | |
Retrive the text string of widget if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
Retrive the text string of widget if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
|
Gtk | |
Set the text string of widget to string if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
Set the text string of widget to string if it is a GtkLabel,
GtkEditable (entry and text widgets) or GtkTextView.
|
Gtk | |
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.
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. For GTK_NO_WINDOW widgets like GtkButton, this will often be an input-only event window. For other widgets, this is usually widget->window. Certain caveats should be considered when using this function, in particular because the mouse pointer is warped to the button click location, see gdk_test_simulate_button() for details.
|
Gtk | |
This function will generate keyboard press and release events in
the middle of the first GdkWindow found that belongs to widget.
This function will generate keyboard press and release events in
the middle of the first GdkWindow found that belongs to widget. For GTK_NO_WINDOW widgets like GtkButton, this will often be an input-only event window. For other widgets, this is usually widget->window. Certain caveats should be considered when using this function, in particular because the mouse pointer is warped to the key press location, see gdk_test_simulate_key() for details.
|
Gtk | |
Obtains a tree_model and path from selection data of target type
GTK_TREE_MODEL_ROW.
Obtains a tree_model and path from selection data of target type
GTK_TREE_MODEL_ROW. Normally called from a drag_data_received handler. This function can only be used if selection_data originates from the same process that's calling this function, because a pointer to the tree model is being passed around. If you aren't in the same process, then you'll get memory corruption. In the GtkTreeDragDest drag_data_received handler, you can assume that selection data of type GTK_TREE_MODEL_ROW is in from the current process. The returned path must be freed with gtk_tree_path_free(). is otherwise valid
|
Gtk | |
Lets a set of row reference created by
gtk_tree_row_reference_new_proxy() know that the model emitted the GtkTreeModel::row-deleted signal.
Lets a set of row reference created by
gtk_tree_row_reference_new_proxy() know that the model emitted the GtkTreeModel::row-deleted signal.
|
Gtk | |
Lets a set of row reference created by
gtk_tree_row_reference_new_proxy() know that the model emitted the GtkTreeModel::row-inserted signal.
Lets a set of row reference created by
gtk_tree_row_reference_new_proxy() know that the model emitted the GtkTreeModel::row-inserted signal.
|
Gtk | |
Gtk.tree_set_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
gboolean
Sets selection data of target type GTK_TREE_MODEL_ROW.
Sets selection data of target type GTK_TREE_MODEL_ROW. Normally used
in a drag_data_get handler.
|
Gtk | |
Gtk.true
()
:
gboolean
All this function does it to return TRUE.
All this function does it to return TRUE.
This can be useful for example if you want to inhibit the deletion of a window. Of course you should not do this as the user expects a reaction from clicking the close icon of the window... include <gtk/gtk.h>< int main (int argc, char **argv) { GtkWidget *win, *but; gtk_init (&argc, &argv); win = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (win, "delete-event", G_CALLBACK (gtk_true), NULL); g_signal_connect (win, "destroy", G_CALLBACK (gtk_main_quit), NULL); but = gtk_button_new_with_label ("Close yourself. I mean it!"); g_signal_connect_swapped (but, "clicked", G_CALLBACK (gtk_object_destroy), win); gtk_container_add (GTK_CONTAINER (win), but); gtk_widget_show_all (win); gtk_main (); return 0; }
|
Gtk |
None |