Gdk-3.0 (original) (raw)

add_option_entries_libgtk_only Appends gdk option entries to the passed in option group. This is not public API and must not be used by applications. deprecated: 3.16
beep Emits a short beep on the default display.
cairo_create Creates a Cairo context for drawing to window. deprecated: 3.22 since: 2.8
cairo_draw_from_gl This is the main way to draw GL content in GTK+. It takes a render buffer ID(source_type == #GL_RENDERBUFFER) or a texture id (source_type == #GL_TEXTURE) and draws it onto cr with an OVER operation, respecting the current clip. The top left corner of the rectangle specified by x, y, width and heightwill be drawn at the current (0,0) position of the cairo_t. since: 3.16
cairo_get_clip_rectangle This is a convenience function around cairo_clip_extents(). It rounds the clip extents to integer coordinates and returns a boolean indicating if a clip area exists.
cairo_get_drawing_context Retrieves the GdkDrawingContext that created the Cairo context cr. since: 3.22
cairo_rectangle Adds the given rectangle to the current path of cr. since: 2.8
cairo_region Adds the given region to the current path of cr. since: 2.8
cairo_region_create_from_surface Creates region that describes covers the area where the givensurface is more than 50% opaque.
cairo_set_source_color Sets the specified GdkColor as the source color of cr. deprecated: 3.4 since: 2.8
cairo_set_source_pixbuf Sets the given pixbuf as the source pattern for cr. since: 2.8
cairo_set_source_rgba Sets the specified GdkRGBA as the source color of cr. since: 3.0
cairo_set_source_window Sets the given window as the source pattern for cr. since: 2.24
cairo_surface_create_from_pixbuf Creates an image surface with the same contents as the pixbuf. since: 3.10
disable_multidevice Disables multidevice support in GDK. This call must happen prior to gdk_display_open(), gtk_init(), gtk_init_with_args() orgtk_init_check() in order to take effect. since: 3.0
drag_abort Aborts a drag without dropping.
drag_begin Starts a drag and creates a new drag context for it. This function assumes that the drag is controlled by the client pointer device, use gdk_drag_begin_for_device() to begin a drag with a different device.
drag_begin_for_device Starts a drag and creates a new drag context for it.
drag_begin_from_point Starts a drag and creates a new drag context for it. since: 3.20
drag_drop Drops on the current destination.
drag_drop_done Inform GDK if the drop ended successfully. Passing FALSEfor success may trigger a drag cancellation animation. since: 3.20
drag_drop_succeeded Returns whether the dropped data has been successfully transferred. This function is intended to be used while handling a GDK_DROP_FINISHED event, its return value is meaningless at other times. since: 2.6
drag_find_window_for_screen Finds the destination window and DND protocol to use at the given pointer position. since: 2.2
drag_get_selection Returns the selection atom for the current source window.
drag_motion Updates the drag context when the pointer moves or the set of actions changes.
drag_status Selects one of the actions offered by the drag source.
drop_finish Ends the drag operation after a drop.
drop_reply Accepts or rejects a drop.
error_trap_pop Removes an error trap pushed with gdk_error_trap_push(). May block until an error has been definitively received or not received from the X server. gdk_error_trap_pop_ignored()is preferred if you don’t need to know whether an error occurred, because it never has to block. If you don’t need the return value of gdk_error_trap_pop(), use gdk_error_trap_pop_ignored().
error_trap_pop_ignored Removes an error trap pushed with gdk_error_trap_push(), but without bothering to wait and see whether an error occurred. If an error arrives later asynchronously that was triggered while the trap was pushed, that error will be ignored. since: 3.0
error_trap_push This function allows X errors to be trapped instead of the normal behavior of exiting the application. It should only be used if it is not possible to avoid the X error in any other way. Errors are ignored on all GdkDisplay currently known to theGdkDisplayManager. If you don’t care which error happens and just want to ignore everything, pop with gdk_error_trap_pop_ignored(). If you need the error code, use gdk_error_trap_pop() which may have to block and wait for the error to arrive from the X server.
events_get_angle If both events contain X/Y information, this function will return TRUEand return in angle the relative angle from event1 to event2. The rotation direction for positive angles is from the positive X axis towards the positive Y axis. since: 3.0
events_get_center If both events contain X/Y information, the center of both coordinates will be returned in x and y. since: 3.0
events_get_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. since: 3.0
events_pending Checks if any events are ready to be processed for any display.
flush Flushes the output buffers of all display connections and waits until all requests have been processed. This is rarely needed by applications.
get_default_root_window Obtains the root window (parent all other windows are inside) for the default display and screen.
get_display Gets the name of the display, which usually comes from theDISPLAY environment variable or the--display command line option. deprecated: 3.8
get_display_arg_name Gets the display name specified in the command line arguments passed to gdk_init() or gdk_parse_args(), if any. since: 2.2
get_program_class Gets the program class. Unless the program class has explicitly been set with gdk_set_program_class() or with the --classcommandline option, the default value is the program name (determined with g_get_prgname()) with the first character converted to uppercase.
get_show_events Gets whether event debugging output is enabled.
init Initializes the GDK library and connects to the windowing system. If initialization fails, a warning message is output and the application terminates with a call to exit(1).
init_check Initializes the GDK library and connects to the windowing system, returning TRUE on success.
keyboard_grab Grabs the keyboard so that all events are passed to this application until the keyboard is ungrabbed with gdk_keyboard_ungrab(). This overrides any previous keyboard grab by this client. deprecated: 3.0
keyboard_ungrab Ungrabs the keyboard on the default display, if it is grabbed by this application. deprecated: 3.0
keyval_convert_case Obtains the upper- and lower-case versions of the keyval symbol. Examples of keyvals are #GDK_KEY_a, #GDK_KEY_Enter, #GDK_KEY_F1, etc.
keyval_from_name Converts a key name to a key value.
keyval_is_lower Returns TRUE if the given key value is in lower case.
keyval_is_upper Returns TRUE if the given key value is in upper case.
keyval_name Converts a key value into a symbolic name.
keyval_to_lower Converts a key value to lower case, if applicable.
keyval_to_unicode Convert from a GDK key symbol to the corresponding ISO10646 (Unicode) character.
keyval_to_upper Converts a key value to upper case, if applicable.
list_visuals Lists the available visuals for the default screen. (See gdk_screen_list_visuals()) A visual describes a hardware image data format. For example, a visual might support 24-bit color, or 8-bit color, and might expect pixels to be in a certain format. deprecated: 3.22
notify_startup_complete Indicates to the GUI environment that the application has finished loading. If the applications opens windows, this function is normally called after opening the application’s initial set of windows. since: 2.2
notify_startup_complete_with_id Indicates to the GUI environment that the application has finished loading, using a given identifier. since: 2.12
offscreen_window_get_embedder Gets the window that window is embedded in. since: 2.18
offscreen_window_get_surface Gets the offscreen surface that an offscreen window renders into. If you need to keep this around over window resizes, you need to add a reference to it.
offscreen_window_set_embedder Sets window to be embedded in embedder. since: 2.18
pango_context_get Creates a PangoContext for the default GDK screen.
pango_context_get_for_display Creates a PangoContext for display. since: 3.22
pango_context_get_for_screen Creates a PangoContext for screen. since: 2.2
pango_layout_get_clip_region Obtains a clip region which contains the areas where the given ranges of text would be drawn. x_origin and y_origin are the top left point to center the layout. index_ranges should contain ranges of bytes in the layout’s text.
pango_layout_line_get_clip_region Obtains a clip region which contains the areas where the given ranges of text would be drawn. x_origin and y_origin are the top left position of the layout. index_rangesshould contain ranges of bytes in the layout’s text. The clip region will include space to the left or right of the line (to the layout bounding box) if you have indexes above or below the indexes contained inside the line. This is to draw the selection all the way to the side of the layout. However, the clip region is in line coordinates, not layout coordinates.
parse_args Parse command line arguments, and store for future use by calls to gdk_display_open(). since: 2.2
pixbuf_get_from_surface Transfers image data from a #cairo_surface_t and converts it to an RGB(A) representation inside a GdkPixbuf. This allows you to efficiently read individual pixels from cairo surfaces. For GdkWindows, usegdk_pixbuf_get_from_window() instead.
pixbuf_get_from_window Transfers image data from a GdkWindow and converts it to an RGB(A) representation inside a GdkPixbuf.
pointer_grab Grabs the pointer (usually a mouse) so that all events are passed to this application until the pointer is ungrabbed with gdk_pointer_ungrab(), or the grab window becomes unviewable. This overrides any previous pointer grab by this client. deprecated: 3.0
pointer_is_grabbed Returns TRUE if the pointer on the default display is currently grabbed by this application. deprecated: 3.0
pointer_ungrab Ungrabs the pointer on the default display, if it is grabbed by this application. deprecated: 3.0
pre_parse_libgtk_only Prepare for parsing command line arguments for GDK. This is not public API and should not be used in application code. deprecated: 3.16
property_change Changes the contents of a property on a window.
property_delete Deletes a property from a window.
property_get Retrieves a portion of the contents of a property. If the property does not exist, then the function returns FALSE, and GDK_NONE will be stored in actual_property_type.
query_depths This function returns the available bit depths for the default screen. It’s equivalent to listing the visuals (gdk_list_visuals()) and then looking at the depth field in each visual, removing duplicates. deprecated: 3.22
query_visual_types This function returns the available visual types for the default screen. It’s equivalent to listing the visuals (gdk_list_visuals()) and then looking at the type field in each visual, removing duplicates. deprecated: 3.22
selection_convert Retrieves the contents of a selection in a given form.
selection_owner_get Determines the owner of the given selection.
selection_owner_get_for_display Determine the owner of the given selection. since: 2.2
selection_owner_set Sets the owner of the given selection.
selection_owner_set_for_display Sets the GdkWindow owner as the current owner of the selection selection. since: 2.2
selection_property_get Retrieves selection data that was stored by the selection data in response to a call to gdk_selection_convert(). This function will not be used by applications, who should use the GtkClipboard API instead.
selection_send_notify Sends a response to SelectionRequest event.
selection_send_notify_for_display Send a response to SelectionRequest event. since: 2.2
set_allowed_backends Sets a list of backends that GDK should try to use. since: 3.10
set_double_click_time Set the double click time for the default display. See gdk_display_set_double_click_time(). See also gdk_display_set_double_click_distance(). Applications should not set this, it is a global user-configured setting.
set_program_class Sets the program class. The X11 backend uses the program class to set the class name part of the WM_CLASS property on toplevel windows; see the ICCCM.
set_show_events Sets whether a trace of received events is output. Note that GTK+ must be compiled with debugging (that is, configured using the --enable-debug option) to use this option.
setting_get Obtains a desktop-wide setting, such as the double-click time, for the default screen. See gdk_screen_get_setting().
synthesize_window_state
test_render_sync Retrieves a pixel from window to force the windowing system to carry out any pending rendering commands. since: 2.14
test_simulate_button This function is intended to be used in GTK+ test programs. It will warp the mouse pointer to the given (x,y) coordinates within window and simulate a button press or release event. Because the mouse pointer needs to be warped to the target location, use of this function outside of test programs that run in their own virtual windowing system (e.g. Xvfb) is not recommended. since: 2.14
test_simulate_key This function is intended to be used in GTK+ test programs. If (x,y) are > (-1,-1), it will warp the mouse pointer to the given (x,y) coordinates within window and simulate a key press or release event. since: 2.14
text_property_to_utf8_list_for_display Converts a text property in the given encoding to a list of UTF-8 strings. since: 2.2
threads_add_idle A wrapper for the common usage of gdk_threads_add_idle_full()assigning the default priority, #G_PRIORITY_DEFAULT_IDLE. since: 2.12
threads_add_idle_full Adds a function to be called whenever there are no higher priority events pending. If the function returns FALSE it is automatically removed from the list of event sources and will not be called again. since: 2.12
threads_add_timeout A wrapper for the common usage of gdk_threads_add_timeout_full()assigning the default priority, #G_PRIORITY_DEFAULT. since: 2.12
threads_add_timeout_full Sets a function to be called at regular intervals holding the GDK lock, with the given priority. The function is called repeatedly until it returns FALSE, at which point the timeout is automatically destroyed and the function will not be called again. The notify function is called when the timeout is destroyed. The first call to the function will be at the end of the first interval. since: 2.12
threads_add_timeout_seconds A wrapper for the common usage of gdk_threads_add_timeout_seconds_full()assigning the default priority, #G_PRIORITY_DEFAULT. since: 2.14
threads_add_timeout_seconds_full A variant of gdk_threads_add_timeout_full() with second-granularity. See g_timeout_add_seconds_full() for a discussion of why it is a good idea to use this function if you don’t need finer granularity. since: 2.14
threads_enter This function marks the beginning of a critical section in whichGDK and GTK+ functions can be called safely and without causing race conditions. Only one thread at a time can be in such a critial section. deprecated: 3.6
threads_init Initializes GDK so that it can be used from multiple threads in conjunction with gdk_threads_enter() and gdk_threads_leave(). deprecated: 3.6
threads_leave Leaves a critical region begun with gdk_threads_enter(). deprecated: 3.6
threads_set_lock_functions Allows the application to replace the standard method thatGDK uses to protect its data structures. Normally, GDKcreates a single GMutex that is locked by gdk_threads_enter(), and released by gdk_threads_leave(); using this function an application provides, instead, a function enter_fn that is called by gdk_threads_enter() and a function leave_fn that is called by gdk_threads_leave(). deprecated: 3.6 since: 2.4
unicode_to_keyval Convert from a ISO10646 character to a key symbol.
utf8_to_string_target Converts an UTF-8 string into the best possible representation as a STRING. The representation of characters not in STRINGis not specified; it may be as pseudo-escape sequences \x{ABCD}, or it may be in some other form of approximation.