W Wrapl, The Programming Language

Libraries:Gtk:Gtk:Global

Functions

AlternativeDialogButtonOrder(screen @ Gtk.Gdk.Screen.T) : Std.Symbol.T

Returns TRUE if dialogs are expected to use an alternative button order on the screen screen. See Gtk.Gtk.Dialog.SetAlternativeButtonOrder 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 Gtk.Gtk.Settings.T object associated to screen, in order to be notified if the button order setting changes.

screen a Gtk.Gdk.Screen.T, or NULL to use the default screen. [allow-none]
Returns Whether the alternative button order should be used


BindingParseBinding(scanner @ Std.Object.T) : Std.Integer.SmallT

Warning

BindingParseBinding has been deprecated since version 2.12 and should not be used in newly-written code. There should be no need to call this function outside GTK+.



CheckVersion(required_major @ Std.Integer.SmallT, required_minor @ Std.Integer.SmallT, required_micro @ Std.Integer.SmallT) : Std.String.T

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.

Compatibility is defined by two things: first the version of the running library is newer than the version required_major.required_minor.required_micro. Second 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 a check isn't completely reliable, since the module may be linked against an old version of GTK+ and calling the old version of CheckVersion, but still get loaded into an application using a newer version of GTK+.

required_major the required major version.
required_minor the required minor version.
required_micro the required micro version.
Returns NULL if the GTK+ library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by GTK+ and should not be modified or freed.


DisableSetlocale() : Std.Object.T

Prevents gtk_init(), Gtk.Gtk.Init.Check, Gtk.Gtk.Init.WithArgs and ParseArgs from automatically calling setlocale (LC_ALL, ""). You would 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.



EventsPending() : Std.Symbol.T

Checks if any events are pending. This can be used to update the GUI and invoke timeouts etc. while doing some time intensive computation.

Example 3. Updating the GUI during a long computation.

1
2
3
4
5
6
/* computation going on */
...
        while (gtk_events_pending ())
  gtk_main_iteration ();
...
/* computation continued */


GetCurrentEvent() : Gtk.Gdk.Event.T

Obtains a copy of the event currently being processed by GTK+. For example, if you get a "clicked" signal from Gtk.Gtk.Button.T, the current event will be the Gtk.Gdk.EventButton.T that triggered the "clicked" signal. The returned event must be freed with Gtk.Gdk.Event.Free. If there is no current event, the function returns NULL.

Returns a copy of the current event, or NULL if no current event. [transfer full]


GetCurrentEventState(state @ Std.Object.T) : Std.Symbol.T

If there is a current event and it has a state field, place that state field in state and return TRUE, otherwise return FALSE.

state a location to store the state of the current event. [out]
Returns TRUE if there was a current event and it had a state field


GetCurrentEventTime() : Std.Integer.SmallT

If there is a current event and it has a timestamp, return that timestamp, otherwise return GDK_CURRENT_TIME.

Returns the timestamp from the current event, or GDK_CURRENT_TIME.


GetDefaultLanguage() : Gtk.Pango.Language.T

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.

Returns the default language as a PangoLanguage, must not be freed


GetEventWidget(event @ Gtk.Gdk.Event.T) : Gtk.Gtk.Widget.T

If event is NULL or the event was not associated with any widget, returns NULL, otherwise returns the widget that received the event originally.

event a GdkEvent
Returns the widget that originally received event, or NULL. [transfer none]


GetOptionGroup(open_default_display @ Std.Symbol.T) : Gtk.Glib.GOptionGroup.T

Returns a GOptionGroup for the commandline arguments recognized by GTK+ and GDK. You should add this group to your GOptionContext with g_option_context_add_group(), if you are using g_option_context_parse() to parse your commandline arguments.

open_default_display whether to open the default display when parsing the commandline arguments
Returns a GOptionGroup for the commandline arguments recognized by GTK+


IdentifierGetType() : Gtk.GObject.Type.T



PaintArrow(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, arrow_type @ Gtk.Gtk.ArrowType.T, fill @ Std.Symbol.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws an arrow in the given rectangle on window using the given parameters. arrow_type determines the direction of the arrow.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
arrow_type the type of arrow to draw
fill TRUE if the arrow tip should be filled
x x origin of the rectangle to draw the arrow in
y y origin of the rectangle to draw the arrow in
width width of the rectangle to draw the arrow in
height height of the rectangle to draw the arrow in


PaintBox(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a box on window with the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the box
y y origin of the box
width the width of the box
height the height of the box


PaintBoxGap(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT, gap_side @ Gtk.Gtk.PositionType.T, gap_x @ Std.Integer.SmallT, gap_width @ Std.Integer.SmallT) : Std.Object.T

Draws a box in window using the given style and state and shadow type, leaving a gap in one side.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle
y y origin of the rectangle
width width of the rectangle
height width of the rectangle
gap_side side in which to leave the gap
gap_x starting position of the gap
gap_width width of the gap


PaintCheck(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a check button indicator in the given rectangle on window with the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle to draw the check in
y y origin of the rectangle to draw the check in
width the width of the rectangle to draw the check in
height the height of the rectangle to draw the check in


PaintDiamond(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a diamond in the given rectangle on window using the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle to draw the diamond in
y y origin of the rectangle to draw the diamond in
width width of the rectangle to draw the diamond in
height height of the rectangle to draw the diamond in


PaintExpander(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, expander_style @ Gtk.Gtk.ExpanderStyle.T) : Std.Object.T

Draws an expander as used in Gtk.Gtk.TreeView.T. 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.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x the x position to draw the expander at
y the y position to draw the expander at
expander_style the style to draw the expander in; determines whether the expander is collapsed, expanded, or in an intermediate state.


PaintExtension(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT, gap_side @ Gtk.Gtk.PositionType.T) : Std.Object.T

Draws an extension, i.e. a notebook tab.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the extension
y y origin of the extension
width width of the extension
height width of the extension
gap_side the side on to which the extension is attached


PaintFlatBox(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a flat box on window with the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the box
y y origin of the box
width the width of the box
height the height of the box


PaintFocus(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a focus indicator around the given rectangle on window using the given style.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x the x origin of the rectangle around which to draw a focus indicator
y the y origin of the rectangle around which to draw a focus indicator
width the width of the rectangle around which to draw a focus indicator
height the height of the rectangle around which to draw a focus indicator


PaintHandle(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT, orientation @ Gtk.Gtk.Orientation.T) : Std.Object.T

Draws a handle as used in Gtk.Gtk.HandleBox.T and Gtk.Gtk.Paned.T.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the handle
y y origin of the handle
width with of the handle
height height of the handle
orientation the orientation of the handle


PaintHline(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x1 @ Std.Integer.SmallT, x2 @ Std.Integer.SmallT, y @ Std.Integer.SmallT) : Std.Object.T

Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
area rectangle to which the output is clipped, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x1 the starting x coordinate
x2 the ending x coordinate
y the y coordinate


PaintLayout(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, use_text @ Std.Symbol.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, layout @ Gtk.Pango.Layout.T) : Std.Object.T

Draws a layout on window using the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
use_text whether to use the text or foreground graphics context of style
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin
y y origin
layout the layout to draw


PaintOption(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a radio button indicator in the given rectangle on window with the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle to draw the option in
y y origin of the rectangle to draw the option in
width the width of the rectangle to draw the option in
height the height of the rectangle to draw the option in


PaintPolygon(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, points @ Gtk.Gdk.Point.T, n_points @ Std.Integer.SmallT, fill @ Std.Symbol.T) : Std.Object.T

Draws a polygon on window with the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
points an array of Gtk.Gdk.Point.Ts
n_points length of points
fill TRUE if the polygon should be filled


PaintResizeGrip(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, edge @ Gtk.Gdk.WindowEdge.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a resize grip in the given rectangle on window using the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
edge the edge in which to draw the resize grip
x the x origin of the rectangle in which to draw the resize grip
y the y origin of the rectangle in which to draw the resize grip
width the width of the rectangle in which to draw the resize grip
height the height of the rectangle in which to draw the resize grip


PaintShadow(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a shadow around the given rectangle in window using the given style and state and shadow type.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type type of shadow to draw
area clip rectangle or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle
y y origin of the rectangle
width width of the rectangle
height width of the rectangle


PaintShadowGap(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT, gap_side @ Gtk.Gtk.PositionType.T, gap_x @ Std.Integer.SmallT, gap_width @ Std.Integer.SmallT) : Std.Object.T

Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle
y y origin of the rectangle
width width of the rectangle
height width of the rectangle
gap_side side in which to leave the gap
gap_x starting position of the gap
gap_width width of the gap


PaintSlider(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT, orientation @ Gtk.Gtk.Orientation.T) : Std.Object.T

Draws a slider in the given rectangle on window using the given style and orientation.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type a shadow
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x the x origin of the rectangle in which to draw a slider
y the y origin of the rectangle in which to draw a slider
width the width of the rectangle in which to draw a slider
height the height of the rectangle in which to draw a slider
orientation the orientation to be used


PaintSpinner(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, step @ Std.Integer.SmallT, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws a spinner on window using the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget (may be NULL). [allow-none]
detail a style detail (may be NULL). [allow-none]
step the nth step, a value between 0 and "num-steps"
x the x origin of the rectangle in which to draw the spinner
y the y origin of the rectangle in which to draw the spinner
width the width of the rectangle in which to draw the spinner
height the height of the rectangle in which to draw the spinner


PaintString(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, string @ Std.String.T) : Std.Object.T

Warning

PaintString has been deprecated since version 2.0 and should not be used in newly-written code. Use PaintLayout instead.



PaintTab(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, shadow_type @ Gtk.Gtk.ShadowType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T

Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on window using the given parameters.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
shadow_type the type of shadow to draw
area clip rectangle, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
x x origin of the rectangle to draw the tab in
y y origin of the rectangle to draw the tab in
width the width of the rectangle to draw the tab in
height the height of the rectangle to draw the tab in


PaintVline(style @ Gtk.Gtk.Style.T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T, y1_ @ Std.Integer.SmallT, y2_ @ Std.Integer.SmallT, x @ Std.Integer.SmallT) : Std.Object.T

Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.

style a Gtk.Gtk.Style.T
window a Gtk.Gdk.Window.T
state_type a state
area rectangle to which the output is clipped, or NULL if the output should not be clipped. [allow-none]
widget the widget. [allow-none]
detail a style detail. [allow-none]
y1_ the starting y coordinate
y2_ the ending y coordinate
x the x coordinate


ParseArgs(argc @ Std.Object.T, argv @ Std.Object.T) : Std.Symbol.T

Parses command line arguments, and initializes global attributes of GTK+, but does not actually open a connection to a display. (See Gtk.Gdk.Display.Open, Gtk.Gdk.Global.GetDisplayArgName)

Any arguments used by GTK+ or GDK are removed from the array and argc and argv are updated accordingly.

There is no need to call this function explicitely if you are using gtk_init(), or Gtk.Gtk.Init.Check.

argc a pointer to the number of command line arguments. [inout]
argv a pointer to the array of command line arguments. [array length=argc][inout]
Returns TRUE if initialization succeeded, otherwise FALSE.


PrivateFlagsGetType() : Gtk.GObject.Type.T



PropagateEvent(widget @ Gtk.Gtk.Widget.T, event @ Gtk.Gdk.Event.T) : Std.Object.T

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.Gtk.Main.DoEvent. Depending on the type of event, existence of modal dialogs, grabs, etc., the event may be propagated; if so, this function is used. PropagateEvent calls Gtk.Gtk.Widget.Event on each widget it decides to send the event to. So Gtk.Gtk.Widget.Event is the lowest-level function; it simply emits the "event" and possibly an event-specific signal on a widget. PropagateEvent is a bit higher-level, and Gtk.Gtk.Main.DoEvent is the highest level.

All that said, you most likely don't want to use any of these functions; synthesizing events is rarely needed. Consider asking on the mailing list for better ways to achieve your goals. For example, use Gtk.Gdk.Window.InvalidateRect or Gtk.Gtk.Widget.QueueDraw instead of making up expose events.

widget a Gtk.Gtk.Widget.T
event an event


RgbToHsv(r @ Std.Real.T, g @ Std.Real.T, b @ Std.Real.T, h @ Std.Object.T, s @ Std.Object.T, v @ Std.Object.T) : Std.Object.T

Converts a color from RGB space to HSV. Input values must be in the [0.0, 1.0] range; output values will be in the same range.

r Red
g Green
b Blue
h Return value for the hue component. [out]
s Return value for the saturation component. [out]
v Return value for the value component. [out]


SetLocale() : Std.String.T

Warning

SetLocale has been deprecated since version 2.24 and should not be used in newly-written code. Use setlocale() directly



ShowAboutDialog(parent @ Gtk.Gtk.Window.T, first_property_name @ Std.String.T, ... @ Std.Object.T) : Std.Object.T

This is a convenience function for showing an application's about box. The constructed dialog is associated with the parent window and reused for future invocations of this function.

parent transient parent, or NULL for none. [allow-none]
first_property_name the name of the first property


ShowUri(screen @ Gtk.Gdk.Screen.T, uri @ Std.String.T, timestamp @ Std.Integer.SmallT, error @ Std.Object.T) : Std.Symbol.T

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

file:///home/gnome/pict.jpg
http://www.gnome.org
mailto:me@gnome.org

Ideally the timestamp is taken from the event triggering the ShowUri 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().

screen screen to show the uri on or NULL for the default screen. [allow-none]
uri the uri to show
timestamp a timestamp to prevent focus stealing.
error a GError that is returned in case of errors
Returns TRUE on success, FALSE on error.