-
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 drawable.
-
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)
Resets the clip region for a Cairo context created by
cairo_create.
-
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 the Cairo context.
-
public void cairo_set_source_pixmap (
Context cr, Pixmap pixmap, double pixmap_x, double pixmap_y)
Sets the given pixmap as the source pattern for the Cairo context.
-
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_)
-
public unowned DragContext drag_begin (Window window,
List<Atom> targets)
-
public void drag_drop (DragContext context,
uint32 time_)
-
public
bool drag_drop_succeeded (DragContext context)
-
public void drag_find_window (DragContext context, Window drag_window,
int x_root, int y_root, out Window dest_window, DragProtocol protocol)
Finds the destination window and DND protocol to use at the given pointer position.
-
public void drag_find_window_for_screen (DragContext context, Window drag_window, Screen screen,
int x_root, int y_root, out Window dest_window, DragProtocol protocol)
-
public NativeWindow drag_get_protocol (NativeWindow xid, DragProtocol protocol)
Finds out the DND protocol supported by a window.
-
public NativeWindow drag_get_protocol_for_display (Display display, NativeWindow xid, DragProtocol protocol)
-
public Atom drag_get_selection (DragContext context)
-
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_)
-
public void drag_status (DragContext context, DragAction action,
uint32 time_)
-
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_)
-
public void drop_reply (DragContext context,
bool ok, uint32 time_)
-
public
int error_trap_pop ()
-
public void error_trap_push ()
-
public
bool events_pending ()
-
public void flush ()
-
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 ()
-
public unowned
string get_display_arg_name ()
-
public unowned
string get_program_class ()
-
public
bool get_show_events ()
Gets whether event debugging output is enabled.
-
public void init (ref
string[] argv)
-
public
bool init_check (ref string[] argv)
Initialize the library for use.
-
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)
-
public
bool keyval_is_lower (uint keyval)
-
public
bool keyval_is_upper (uint keyval)
-
public unowned
string keyval_name (uint keyval)
-
public
uint keyval_to_lower (uint keyval)
-
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)
-
public
List<Visual> list_visuals ()
-
public void notify_startup_complete ()
-
public void notify_startup_complete_with_id (
string startup_id)
-
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)
Gets the offscreen pixmap that an offscreen window renders into.
-
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 PangoContext for the default GDK screen.
-
public unowned
Context pango_context_get_for_screen (Screen screen)
Creates a PangoContext for 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)
Transfers image data from a Drawable and converts it to an
RGB(A) representation inside a GdkPixbuf.
-
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 Pixmap pixmap_return, out Bitmap mask_return, int alpha_threshold)
Creates a pixmap and a mask bitmap which are returned in the pixmap_return and
mask_return arguments, respectively, and renders a pixbuf and its corresponding thresholded alpha mask to them.
-
public void pixbuf_render_pixmap_and_mask_for_colormap (
Pixbuf pixbuf, Colormap colormap, out Pixmap pixmap_return, out Bitmap mask_return, int alpha_threshold)
Creates a pixmap and a mask bitmap which are returned in the pixmap_return and
mask_return arguments, respectively, and renders a pixbuf and its corresponding tresholded alpha mask to them.
-
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)
Takes the opacity values in a rectangular portion of a pixbuf and thresholds them to produce a bi-level
alpha mask that can be used as a clipping mask for a drawable.
-
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 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 ()
-
public void property_change (Window window, Atom property, Atom type,
int format, PropMode mode, uchar[] data, int nelements)
-
public void property_delete (Window window, Atom property)
-
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)
-
public void query_depths (
int depths, int count)
-
public void query_visual_types (out VisualType visual_types,
int count)
-
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 selection_convert (Window requestor, Atom selection, Atom target,
uint32 time_)
-
public unowned Window selection_owner_get (Atom selection)
-
public unowned Window selection_owner_get_for_display (Display display, Atom selection)
-
public
bool selection_owner_set (Window owner, Atom selection, uint32 time_, bool send_event)
-
public
bool selection_owner_set_for_display (Display display, Window owner, Atom selection, uint32 time_, bool send_event)
-
public
int selection_property_get (Window requestor, uchar[] data, out Atom prop_type, int prop_format)
-
public void selection_send_notify (NativeWindow requestor, Atom selection, Atom target, Atom property,
uint32 time_)
-
public void selection_send_notify_for_display (Display display, NativeWindow requestor, Atom selection, Atom target, Atom property,
uint32 time_)
-
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)
This function allows for hooking into the operation of getting the current location of the pointer.
-
public void set_program_class (
string 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)
Sets the SM_CLIENT_ID property on the application's leader window so that the window manager
can save the application's state using the X11R6 ICCCM session management protocol.
-
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)
-
public
bool test_simulate_button (Window window, int x, int y, uint button, ModifierType modifiers, EventType button_pressrelease)
-
public
bool test_simulate_key (Window window, int x, int y, uint keyval, ModifierType modifiers, EventType key_pressrelease)
-
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)
Convert a text property in the giving encoding to a list of UTF-8 strings.
-
public
int text_property_to_utf8_list_for_display (Display display, Atom encoding, int format, uchar[] text, int length, string list)
-
public
uint threads_add_idle (SourceFunc function)
A wrapper for the common usage of
threads_add_idle_full assigning the default priority, G_PRIORITY_DEFAULT_IDLE.
-
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)
A variant of gdk_threads_add_timout_full with second-granularity.
-
public void threads_enter ()
-
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
bool utf8_to_compound_text (string str, out Atom encoding, int format, uchar[] ctext, int length)
Convert from UTF-8 to compound text.
-
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)