- public void add_option_entries_libgtk_only (OptionGroup group)
Appends gdk option entries to the passed in option group.
- public Atom atom_intern (string atom_name, bool only_if_exists)
- public Atom atom_intern_static_string (string atom_name)
- public void beep ()
Emits a short beep on the default display.
- public Context cairo_create (Window window)
Creates a Cairo context for drawing to window
.
- public void cairo_draw_from_gl (Context cr, Window window, int source, int source_type, int buffer_scale, int x, int y, int width, int height)
This is the main way to draw GL content in GTK+.
- public bool cairo_get_clip_rectangle (Context cr, out Rectangle rect)
- public unowned DrawingContext? cairo_get_drawing_context (Context cr)
- public void cairo_rectangle (Context cr, Rectangle rectangle)
Adds the given rectangle to the current path of cr
.
- public void cairo_region (Context cr, Region region)
Adds the given region to the current path of cr
.
- public Region cairo_region_create_from_surface (Surface surface)
Creates region that describes covers the area where the given surface
is more than 50% opaque.
- public void cairo_set_source_color (Context cr, Color color)
Sets the specified Color
as the source color of cr
.
- public void cairo_set_source_pixbuf (Context cr, Pixbuf pixbuf, double pixbuf_x, double pixbuf_y)
Sets the given pixbuf as the source pattern for cr
.
- public void cairo_set_source_rgba (Context cr, RGBA rgba)
Sets the specified RGBA
as the source color of cr
.
- public void cairo_set_source_window (Context cr, Window window, double x, double y)
Sets the given window as the source pattern for cr
.
- public Surface cairo_surface_create_from_pixbuf (Pixbuf pixbuf, int scale, Window? for_window)
Creates an image surface with the same contents as the pixbuf.
- public bool color_parse (string spec, out Color color)
- public void disable_multidevice ()
Disables multidevice support in GDK.
- public void drag_abort (DragContext context, uint32 time_)
Aborts a drag without dropping.
- public DragContext drag_begin (Window window, List<Atom> targets)
Starts a drag and creates a new drag context for it.
- public DragContext drag_begin_for_device (Window window, Device device, List<Atom> targets)
Starts a drag and creates a new drag context for it.
- public DragContext drag_begin_from_point (Window window, Device device, List<Atom> targets, int x_root, int y_root)
Starts a drag and creates a new drag context for it.
- public void drag_drop (DragContext context, uint32 time_)
Drops on the current destination.
- public void drag_drop_done (DragContext context, bool success)
Inform GDK if the drop ended successfully.
- public bool drag_drop_succeeded (DragContext context)
Returns whether the dropped data has been successfully transferred.
- public void drag_find_window_for_screen (DragContext context, Window drag_window, Screen screen, int x_root, int y_root, out Window dest_window, out DragProtocol protocol)
Finds the destination window and DND protocol to use at the given pointer
position.
- public Atom drag_get_selection (DragContext context)
Returns the selection atom for the current source window.
- public bool drag_motion (DragContext context, Window dest_window, DragProtocol protocol, int x_root, int y_root, DragAction suggested_action, DragAction possible_actions, uint32 time_)
Updates the drag context when the pointer moves or the set of actions
changes.
- public void drag_status (DragContext context, DragAction action, uint32 time_)
Selects one of the actions offered by the drag source.
- public void drop_finish (DragContext context, bool success, uint32 time_)
Ends the drag operation after a drop.
- public void drop_reply (DragContext context, bool accepted, uint32 time_)
Accepts or rejects a drop.
- public int error_trap_pop ()
- public void error_trap_pop_ignored ()
Removes an error trap pushed with
error_trap_push, but without bothering to wait and see whether an error
occurred.
- public void error_trap_push ()
This function allows X errors to be trapped instead of the normal behavior
of exiting the application.
- public Event? event_get ()
Checks all open displays for a
Event to process,to be processed on, fetching events from the windowing system if
necessary.
- public void event_handler_set (owned EventFunc func)
Sets the function to call to handle all events from GDK.
- public Event? event_peek ()
If there is an event waiting in the event queue of some open display,
returns a copy of it.
- public void event_request_motions (EventMotion event)
Request more motion notifies if event
is a motion notify hint
event.
- public bool events_get_angle (Event event1, Event event2, out double angle)
If both events contain X/Y information, this function will return
true and return in angle
the relative angle from event1
to event2
.
- public bool events_get_center (Event event1, Event event2, out double x, out double y)
If both events contain X/Y information, the center of both coordinates will
be returned in x
and y
.
- public bool events_get_distance (Event event1, Event event2, out double distance)
If both events have X/Y information, the distance between both coordinates (
as in a straight line going from event1
to event2
) will be returned.
- public bool events_pending ()
Checks if any events are ready to be processed for any display.
- public void flush ()
Flushes the output buffers of all display connections and waits until all
requests have been processed.
- public unowned Window get_default_root_window ()
Obtains the root window (parent all other windows are inside) for the
default display and screen.
- public string get_display ()
Gets the name of the display, which usually comes from the `DISPLAY`
environment variable or the `--display` command line option.
- public unowned string? get_display_arg_name ()
Gets the display name specified in the command line arguments passed to
init or parse_args, if any.
- public unowned string get_program_class ()
Gets the program class.
- public bool get_show_events ()
Gets whether event debugging output is enabled.
- public Quark gl_error_quark ()
- public void init (ref unowned string[] argv)
Initializes the GDK library and connects to the windowing system.
- public bool init_check (ref unowned string[] argv)
Initializes the GDK library and connects to the windowing system, returning
true on success.
- public GrabStatus keyboard_grab (Window window, bool owner_events, uint32 time_)
Grabs the keyboard so that all events are passed to this application until
the keyboard is ungrabbed with keyboard_ungrab.
- public void keyboard_ungrab (uint32 time_)
Ungrabs the keyboard on the default display, if it is grabbed by this
application.
- public void keyval_convert_case (uint symbol, out uint lower, out uint upper)
Obtains the upper- and lower-case versions of the keyval symbol
.
- public uint keyval_from_name (string keyval_name)
Converts a key name to a key value.
- public bool keyval_is_lower (uint keyval)
Returns true if the given key value is in
lower case.
- public bool keyval_is_upper (uint keyval)
Returns true if the given key value is in
upper case.
- public unowned string? keyval_name (uint keyval)
Converts a key value into a symbolic name.
- public uint keyval_to_lower (uint keyval)
Converts a key value to lower case, if applicable.
- public uint32 keyval_to_unicode (uint keyval)
Convert from a GDK key symbol to the corresponding ISO10646 (Unicode)
character.
- public uint keyval_to_upper (uint keyval)
Converts a key value to upper case, if applicable.
- public List<unowned Visual> list_visuals ()
Lists the available visuals for the default screen.
- public void notify_startup_complete ()
Indicates to the GUI environment that the application has finished loading.
- public void notify_startup_complete_with_id (string startup_id)
Indicates to the GUI environment that the application has finished loading,
using a given identifier.
- public unowned Window? offscreen_window_get_embedder (Window window)
Gets the window that window
is embedded in.
- public unowned Surface? offscreen_window_get_surface (Window window)
Gets the offscreen surface that an offscreen window renders into.
- public void offscreen_window_set_embedder (Window window, Window embedder)
Sets window
to be embedded in embedder
.
- public Context pango_context_get ()
Creates a Context for
the default GDK screen.
- public Context pango_context_get_for_display (Display display)
- public Context pango_context_get_for_screen (Screen screen)
- public Region pango_layout_get_clip_region (Layout layout, int x_origin, int y_origin, int[] index_ranges)
Obtains a clip region which contains the areas where the given ranges of
text would be drawn.
- public void parse_args (ref unowned string[] argv)
Parse command line arguments, and store for future use by calls to
open.
- public Pixbuf? pixbuf_get_from_surface (Surface surface, int src_x, int src_y, int width, int height)
Transfers image data from a
XlibSurface and converts it to an RGB(A) representation inside a
Pixbuf.
- public Pixbuf? pixbuf_get_from_window (Window window, int src_x, int src_y, int width, int height)
Transfers image data from a
Window and converts it to an RGB(A) representation inside a
Pixbuf.
- public GrabStatus pointer_grab (Window window, bool owner_events, EventMask event_mask, Window? confine_to, Cursor? cursor, uint32 time_)
Grabs the pointer (usually a mouse) so that all events are passed to this
application until the pointer is ungrabbed with pointer_ungrab, or the grab
window becomes unviewable.
- public bool pointer_is_grabbed ()
Returns true if the pointer on the default
display is currently grabbed by this application.
- public void pointer_ungrab (uint32 time_)
Ungrabs the pointer on the default display, if it is grabbed by this
application.
- public void pre_parse_libgtk_only ()
Prepare for parsing command line arguments for GDK.
- public void property_change (Window window, Atom property, Atom type, int format, PropMode mode, uint8[] data, int nelements)
Changes the contents of a property on a window.
- public void property_delete (Window window, Atom property)
Deletes a property from a window.
- public bool property_get (Window window, Atom property, Atom type, ulong offset, ulong length, int pdelete, out Atom actual_property_type, out int actual_format, out uint8[] data)
Retrieves a portion of the contents of a property.
- public void query_depths (out unowned int[] depths)
This function returns the available bit depths for the default screen.
- public void query_visual_types (out unowned VisualType[] visual_types)
This function returns the available visual types for the default screen.
- public void set_allowed_backends (string backends)
Sets a list of backends that GDK should try to use.
- public void set_double_click_time (uint msec)
Set the double click time for the default display.
- public void set_program_class (string program_class)
Sets the program class.
- public void set_show_events (bool show_events)
Sets whether a trace of received events is output.
- public bool setting_get (string name, Value value)
Obtains a desktop-wide setting, such as the double-click time, for the
default screen.
- public void test_render_sync (Window window)
Retrieves a pixel from window
to force the windowing system to
carry out any pending rendering commands.
- public bool test_simulate_button (Window window, int x, int y, uint button, ModifierType modifiers, EventType button_pressrelease)
This function is intended to be used in GTK+ test programs.
- public bool test_simulate_key (Window window, int x, int y, uint keyval, ModifierType modifiers, EventType key_pressrelease)
This function is intended to be used in GTK+ test programs.
- public int text_property_to_utf8_list_for_display (Display display, Atom encoding, int format, uint8[] text, out string[] list)
Converts a text property in the given encoding to a list of UTF-8 strings.
- public uint threads_add_idle (SourceFunc function)
- public uint threads_add_idle_full (int priority, owned SourceFunc function)
Adds a function to be called whenever there are no higher priority events
pending.
- public uint threads_add_timeout (uint interval, SourceFunc function)
- public uint threads_add_timeout_full (int priority, uint interval, owned SourceFunc function)
Sets a function to be called at regular intervals holding the GDK lock, with
the given priority.
- public uint threads_add_timeout_seconds (uint interval, SourceFunc function)
- public uint threads_add_timeout_seconds_full (int priority, uint interval, owned SourceFunc function)
- public void threads_enter ()
This function marks the beginning of a critical section in which GDK and
GTK+ functions can be called safely and without causing race conditions.
- public void threads_init ()
- public void threads_leave ()
- public void threads_set_lock_functions (Callback enter_fn, Callback leave_fn)
Allows the application to replace the standard method that GDK uses to
protect its data structures.
- public uint unicode_to_keyval (uint32 wc)
Convert from a ISO10646 character to a key symbol.
- public string? utf8_to_string_target (string str)
Converts an UTF-8 string into the best possible representation as a STRING.