- public void add_client_message_filter (Atom message_type, FilterFunc func)
- public void add_option_entries_libgtk_only (OptionGroup group)
Appends gdk option entries to the passed in option group.
- public void beep ()
Emits a short beep on the default display.
- public Context cairo_create (Drawable drawable)
Creates a Cairo context for drawing to window.
- 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 void cairo_reset_clip (Context cr, Drawable drawable)
- 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_pixmap (Context cr, Pixmap pixmap, double pixmap_x, double pixmap_y)
- 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 int colors_alloc (Colormap colormap, bool contiguous, ulong planes, int nplanes, ulong pixels, int npixels)
- public void colors_free (Colormap colormap, ulong pixels, int npixels, ulong planes)
- public unowned List<Device> devices_list ()
- public void drag_abort (DragContext context, uint32 time_)
Aborts a drag without dropping.
- public unowned DragContext drag_begin (Window window, List<Atom> targets)
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 bool drag_drop_succeeded (DragContext context)
Returns whether the dropped data has been successfully transferred.
- public void drag_find_window (DragContext context, Window drag_window, int x_root, int y_root, out unowned Window dest_window, DragProtocol protocol)
- public void drag_find_window_for_screen (DragContext context, Window drag_window, Screen screen, int x_root, int y_root, out unowned Window dest_window, DragProtocol protocol)
Finds the destination window and DND protocol to use at the given
pointer position.
- public NativeWindow drag_get_protocol (NativeWindow xid, DragProtocol protocol)
- public NativeWindow drag_get_protocol_for_display (Display display, NativeWindow xid, DragProtocol protocol)
- 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 draw_arc (Drawable drawable, GC gc, bool filled, int x, int y, int width, int height, int angle1, int angle2)
- public void draw_drawable (Drawable drawable, GC gc, Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
- public void draw_glyphs (Drawable drawable, GC gc, Font font, int x, int y, GlyphString glyphs)
- public void draw_glyphs_transformed (Drawable drawable, GC gc, Matrix matrix, Font font, int x, int y, GlyphString glyphs)
- public void draw_gray_image (Drawable drawable, GC gc, int x, int y, int width, int height, RgbDither dith, uchar[] buf, int rowstride)
- public void draw_image (Drawable drawable, GC gc, Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
- public void draw_indexed_image (Drawable drawable, GC gc, int x, int y, int width, int height, RgbDither dith, uchar[] buf, int rowstride, RgbCmap cmap)
- public void draw_layout (Drawable drawable, GC gc, int x, int y, Layout layout)
- public void draw_layout_line (Drawable drawable, GC gc, int x, int y, LayoutLine line)
- public void draw_layout_line_with_colors (Drawable drawable, GC gc, int x, int y, LayoutLine line, Color foreground, Color background)
- public void draw_layout_with_colors (Drawable drawable, GC gc, int x, int y, Layout layout, Color foreground, Color background)
- public void draw_line (Drawable drawable, GC gc, int x1_, int y1_, int x2_, int y2_)
- public void draw_lines (Drawable drawable, GC gc, Point[] points)
- public void draw_pixbuf (Drawable drawable, GC gc, Pixbuf pixbuf, int src_x, int src_y, int dest_x, int dest_y, int width, int height, RgbDither dither, int x_dither, int y_dither)
- public void draw_point (Drawable drawable, GC gc, int x, int y)
- public void draw_points (Drawable drawable, GC gc, Point[] points)
- public void draw_polygon (Drawable drawable, GC gc, bool filled, Point[] points)
- public void draw_rectangle (Drawable drawable, GC gc, bool filled, int x, int y, int width, int height)
- public void draw_rgb_32_image (Drawable drawable, GC gc, int x, int y, int width, int height, RgbDither dith, uchar[] buf, int rowstride)
- public void draw_rgb_32_image_dithalign (Drawable drawable, GC gc, int x, int y, int width, int height, RgbDither dith, uchar[] buf, int rowstride, int xdith, int ydith)
- public void draw_rgb_image (Drawable drawable, GC gc, int x, int y, int width, int height, RgbDither dith, uchar[] rgb_buf, int rowstride)
- public void draw_rgb_image_dithalign (Drawable drawable, GC gc, int x, int y, int width, int height, RgbDither dith, uchar[] rgb_buf, int rowstride, int xdith, int ydith)
- public void draw_segments (Drawable drawable, GC gc, Segment[] segs)
- public void draw_text (Drawable drawable, Font font, GC gc, int x, int y, string text, int text_length)
- public void draw_text_wc (Drawable drawable, Font font, GC gc, int x, int y, WChar text, int text_length)
- public void draw_trapezoids (Drawable drawable, GC gc, Trapezoid[] trapezoids)
- public void drop_finish (DragContext context, bool success, uint32 time_)
Ends the drag operation after a drop.
- public void drop_reply (DragContext context, bool ok, uint32 time_)
Accepts or rejects a drop.
- public int error_trap_pop ()
- public void error_trap_push ()
This function allows X errors to be trapped instead of the normal
behavior of exiting the application.
- 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 Font fontset_load_for_display (Display display, string fontset_name)
- public void free_compound_text (uchar[] ctext)
- public void free_text_list (string list)
- public unowned Window get_default_root_window ()
Obtains the root window (parent all other windows are inside) for
the default display and screen.
- public unowned 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 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 void input_set_extension_events (Window window, int mask, ExtensionMode mode)
- 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, uint lower, 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)
Converts from a GDK key symbol to the corresponding 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 Pixmap? offscreen_window_get_pixmap (Window window)
- public void offscreen_window_set_embedder (Window window, Window embedder)
Sets window to be embedded in embedder.
- public unowned Context pango_context_get ()
Creates a
Context for the default GDK screen.
- public unowned Context pango_context_get_for_screen (Screen screen)
- public unowned Region pango_layout_get_clip_region (Layout layout, int x_origin, int y_origin, int index_ranges, int n_ranges)
Obtains a clip region which contains the areas where the given
ranges of text would be drawn.
- public unowned Region pango_layout_line_get_clip_region (LayoutLine line, int x_origin, int y_origin, int index_ranges, int n_ranges)
Obtains a clip region which contains the areas where the given
ranges of text would be drawn.
- public void parse_args (int argc, string argv)
Parse command line arguments, and store for future use by calls to
open.
- public unowned Pixbuf pixbuf_get_from_drawable (Pixbuf? dest, Drawable src, Colormap? cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
- public unowned Pixbuf pixbuf_get_from_image (Pixbuf? dest, Image src, Colormap? cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
- public void pixbuf_render_pixmap_and_mask (Pixbuf pixbuf, out unowned Pixmap pixmap_return, out unowned Bitmap mask_return, int alpha_threshold)
- public void pixbuf_render_pixmap_and_mask_for_colormap (Pixbuf pixbuf, Colormap colormap, out unowned Pixmap pixmap_return, out unowned Bitmap mask_return, int alpha_threshold)
- public void pixbuf_render_threshold_alpha (Pixbuf pixbuf, Bitmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold)
- 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_grab_info_libgtk_only (Display display, out unowned Window grab_window, bool owner_events)
- 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, uchar[] 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 uchar[] data)
Retrieves a portion of the contents of a property.
- public void query_depths (int depths, int count)
This function returns the available bit depths for the default
screen.
- public void query_visual_types (out VisualType visual_types, int count)
This function returns the available visual types for the default
screen.
- public bool rgb_colormap_ditherable (Colormap cmap)
- public bool rgb_ditherable ()
- public void rgb_find_color (Colormap colormap, ref Color color)
- public unowned Colormap rgb_get_colormap ()
- public unowned Visual rgb_get_visual ()
- public void rgb_set_install (bool install)
- public void rgb_set_min_colors (int min_colors)
- public void rgb_set_verbose (bool verbose)
- public void set_double_click_time (uint msec)
Set the double click time for the default display.
- public unowned string set_locale ()
- public unowned PointerHooks set_pointer_hooks (PointerHooks new_hooks)
- 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 void set_sm_client_id (string sm_client_id)
- public bool setting_get (string name, Value value)
Obtains a desktop-wide setting, such as the double-click time, for
the default screen.
- public bool spawn_command_line_on_screen (Screen screen, string command_line) throws Error
- public bool spawn_on_screen (Screen screen, string? working_directory, string[] argv, string[]? envp, SpawnFlags flags, SpawnChildSetupFunc? child_setup, out int child_pid) throws Error
- public bool spawn_on_screen_with_pipes (Screen screen, string? working_directory, string[] argv, string[] envp, SpawnFlags flags, SpawnChildSetupFunc? child_setup, out int child_pid, out int standard_input, out int standard_output, out int standard_error) throws Error
- public int string_to_compound_text (string str, out Atom encoding, int format, uchar[] ctext, int length)
- public int string_to_compound_text_for_display (Display display, string str, out Atom encoding, int format, uchar[] ctext, int length)
- 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_text_list (Atom encoding, int format, uchar[] text, int length, string list)
- public int text_property_to_text_list_for_display (Display display, Atom encoding, int format, uchar[] text, int length, string list)
- public int text_property_to_utf8_list (Atom encoding, int format, uchar[] text, int length, string list)
- public int text_property_to_utf8_list_for_display (Display display, Atom encoding, int format, uchar[] text, int length, 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)
Converts from a Unicode character to a key symbol.
- public bool utf8_to_compound_text (string str, out Atom encoding, int format, uchar[] ctext, int length)
- public bool utf8_to_compound_text_for_display (Display display, string str, out Atom encoding, int format, uchar[] ctext, int length)
- public unowned string utf8_to_string_target (string str)
Converts an UTF-8 string into the best possible representation as a
STRING.