gtk.global

Undocumented in source.

Members

Functions

acceleratorGetDefaultModMask
gdk.types.ModifierType acceleratorGetDefaultModMask()

Gets the modifier mask.

acceleratorGetLabel
string acceleratorGetLabel(uint acceleratorKey, gdk.types.ModifierType acceleratorMods)

Converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.

acceleratorGetLabelWithKeycode
string acceleratorGetLabelWithKeycode(gdk.display.Display display, uint acceleratorKey, uint keycode, gdk.types.ModifierType acceleratorMods)

Converts an accelerator keyval and modifier mask into a string that can be displayed to the user.

acceleratorName
string acceleratorName(uint acceleratorKey, gdk.types.ModifierType acceleratorMods)

Converts an accelerator keyval and modifier mask into a string parseable by gtk.global.acceleratorParse.

acceleratorNameWithKeycode
string acceleratorNameWithKeycode(gdk.display.Display display, uint acceleratorKey, uint keycode, gdk.types.ModifierType acceleratorMods)

Converts an accelerator keyval and modifier mask into a string parseable by gtk.global.acceleratorParseWithKeycode.

acceleratorParse
bool acceleratorParse(string accelerator, uint acceleratorKey, gdk.types.ModifierType acceleratorMods)

Parses a string representing an accelerator.

acceleratorParseWithKeycode
bool acceleratorParseWithKeycode(string accelerator, gdk.display.Display display, uint acceleratorKey, uint[] acceleratorCodes, gdk.types.ModifierType acceleratorMods)

Parses a string representing an accelerator.

acceleratorValid
bool acceleratorValid(uint keyval, gdk.types.ModifierType modifiers)

Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.

checkVersion
string checkVersion(uint requiredMajor, uint requiredMinor, uint requiredMicro)

Checks that the GTK library in use is compatible with the given version.

cssParserErrorQuark
glib.types.Quark cssParserErrorQuark()
cssParserWarningQuark
glib.types.Quark cssParserWarningQuark()
disableSetlocale
void disableSetlocale()

Prevents funcGtk.init and funcGtk.init_check from automatically calling setlocale (LC_ALL, "").

distributeNaturalAllocation
int distributeNaturalAllocation(int extraSpace, gtk.types.RequestedSize[] sizes)

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

enumeratePrinters
void enumeratePrinters(gtk.types.PrinterFunc func, bool wait)

Calls a function for all gtk.printer.Printers.

getBinaryAge
uint getBinaryAge()

Returns the binary age as passed to libtool.

getDebugFlags
gtk.types.DebugFlags getDebugFlags()

Returns the GTK debug flags that are currently active.

getDefaultLanguage
pango.language.Language getDefaultLanguage()

Returns the pango.language.Language for the default language currently in effect.

getInterfaceAge
uint getInterfaceAge()

Returns the interface age as passed to libtool.

getLocaleDirection
gtk.types.TextDirection getLocaleDirection()

Get the direction of the current locale. This is the expected reading direction for text and UI.

getMajorVersion
uint getMajorVersion()

Returns the major version number of the GTK library.

getMicroVersion
uint getMicroVersion()

Returns the micro version number of the GTK library.

getMinorVersion
uint getMinorVersion()

Returns the minor version number of the GTK library.

hsvToRgb
void hsvToRgb(float h, float s, float v, float r, float g, float b)

Converts a color from HSV space to RGB.

initCheck
bool initCheck()

This function does the same work as gtk.global.init_ with only a single change: It does not terminate the program if the windowing system can’t be initialized. Instead it returns false on failure.

init_
void init_()

Call this function before using any other GTK functions in your GUI applications. It will initialize everything needed to operate the toolkit.

isInitialized
bool isInitialized()

Use this function to check if GTK has been initialized.

paramSpecExpression
gobject.param_spec.ParamSpec paramSpecExpression(string name, string nick, string blurb, gobject.types.ParamFlags flags)

Creates a new gobject.param_spec.ParamSpec instance for a property holding a gtk.expression.Expression.

printRunPageSetupDialog
gtk.page_setup.PageSetup printRunPageSetupDialog(gtk.window.Window parent, gtk.page_setup.PageSetup pageSetup, gtk.print_settings.PrintSettings settings)

Runs a page setup dialog, letting the user modify the values from page_setup. If the user cancels the dialog, the returned gtk.page_setup.PageSetup is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog.

printRunPageSetupDialogAsync
void printRunPageSetupDialogAsync(gtk.window.Window parent, gtk.page_setup.PageSetup pageSetup, gtk.print_settings.PrintSettings settings, gtk.types.PageSetupDoneFunc doneCb)

Runs a page setup dialog, letting the user modify the values from page_setup.

renderActivity
void renderActivity(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders an activity indicator (such as in gtk.spinner.Spinner). The state gtk.types.StateFlags.Checked determines whether there is activity going on.

renderArrow
void renderArrow(gtk.style_context.StyleContext context, cairo.context.Context cr, double angle, double x, double y, double size)

Renders an arrow pointing to angle.

renderBackground
void renderBackground(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders the background of an element.

renderCheck
void renderCheck(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders a checkmark (as in a gtk.check_button.CheckButton).

renderExpander
void renderExpander(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders an expander (as used in gtk.tree_view.TreeView and gtk.expander.Expander) in the area defined by x, y, width, height. The state gtk.types.StateFlags.Checked determines whether the expander is collapsed or expanded.

renderFocus
void renderFocus(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders a focus indicator on the rectangle determined by x, y, width, height.

renderFrame
void renderFrame(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders a frame around the rectangle defined by x, y, width, height.

renderHandle
void renderHandle(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders a handle (as in gtk.paned.Paned and gtk.window.Window’s resize grip), in the rectangle determined by x, y, width, height.

renderIcon
void renderIcon(gtk.style_context.StyleContext context, cairo.context.Context cr, gdk.texture.Texture texture, double x, double y)

Renders the icon in texture at the specified x and y coordinates.

renderLayout
void renderLayout(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, pango.layout.Layout layout)

Renders layout on the coordinates x, y

renderLine
void renderLine(gtk.style_context.StyleContext context, cairo.context.Context cr, double x0, double y0, double x1, double y1)

Renders a line from (x0, y0) to (x1, y1).

renderOption
void renderOption(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height)

Renders an option mark (as in a radio button), the gtk.types.StateFlags.Checked state will determine whether the option is on or off, and gtk.types.StateFlags.Inconsistent whether it should be marked as undefined.

rgbToHsv
void rgbToHsv(float r, float g, float b, float h, float s, float v)

Converts a color from RGB space to HSV.

setDebugFlags
void setDebugFlags(gtk.types.DebugFlags flags)

Sets the GTK debug flags.

showUri
void showUri(gtk.window.Window parent, string uri, uint timestamp)

This function launches the default application for showing a given uri, or shows an error dialog if that fails.

showUriFull
void showUriFull(gtk.window.Window parent, string uri, uint timestamp, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

This function launches the default application for showing a given uri.

showUriFullFinish
bool showUriFullFinish(gtk.window.Window parent, gio.async_result.AsyncResult result)

Finishes the gtk.global.showUri call and returns the result of the operation.

testAccessibleAssertionMessageRole
void testAccessibleAssertionMessageRole(string domain, string file, int line, string func, string expr, gtk.accessible.Accessible accessible, gtk.types.AccessibleRole expectedRole, gtk.types.AccessibleRole actualRole)
testAccessibleHasProperty
bool testAccessibleHasProperty(gtk.accessible.Accessible accessible, gtk.types.AccessibleProperty property)

Checks whether the gtk.accessible.Accessible has property set.

testAccessibleHasRelation
bool testAccessibleHasRelation(gtk.accessible.Accessible accessible, gtk.types.AccessibleRelation relation)

Checks whether the gtk.accessible.Accessible has relation set.

testAccessibleHasRole
bool testAccessibleHasRole(gtk.accessible.Accessible accessible, gtk.types.AccessibleRole role)

Checks whether the GtkAccessible:accessible-role of the accessible is role.

testAccessibleHasState
bool testAccessibleHasState(gtk.accessible.Accessible accessible, gtk.types.AccessibleState state)

Checks whether the gtk.accessible.Accessible has state set.

testListAllTypes
gobject.types.GType[] testListAllTypes()

Return the type ids that have been registered after calling gtk.global.testRegisterAllTypes.

testRegisterAllTypes
void testRegisterAllTypes()

Force registration of all core GTK object types.

testWidgetWaitForDraw
void testWidgetWaitForDraw(gtk.widget.Widget widget)

Enters the main loop and waits for widget to be “drawn”.

treeCreateRowDragContent
gdk.content_provider.ContentProvider treeCreateRowDragContent(gtk.tree_model.TreeModel treeModel, gtk.tree_path.TreePath path)

Creates a content provider for dragging path from tree_model.

treeGetRowDragData
bool treeGetRowDragData(gobject.value.Value value, gtk.tree_model.TreeModel treeModel, gtk.tree_path.TreePath path)

Obtains a tree_model and path from value of target type GTK_TYPE_TREE_ROW_DATA.

valueDupExpression
gtk.expression.Expression valueDupExpression(gobject.value.Value value)

Retrieves the gtk.expression.Expression stored inside the given value, and acquires a reference to it.

valueGetExpression
gtk.expression.Expression valueGetExpression(gobject.value.Value value)

Retrieves the gtk.expression.Expression stored inside the given value.

valueSetExpression
void valueSetExpression(gobject.value.Value value, gtk.expression.Expression expression)

Stores the given gtk.expression.Expression inside value.

valueTakeExpression
void valueTakeExpression(gobject.value.Value value, gtk.expression.Expression expression)

Stores the given gtk.expression.Expression inside value.