1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Windows
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
onscreen display areas in the target window system
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
A #GdkWindow is a rectangular region on the screen. It's a low-level object,
|
|
|
|
used to implement high-level objects such as #GtkWidget and #GtkWindow on the
|
|
|
|
GTK+ level. A #GtkWindow is a toplevel window, the thing a user might think of
|
|
|
|
as a "window" with a titlebar and so on; a #GtkWindow may contain many #GdkWindow.
|
|
|
|
For example, each #GtkButton has a #GdkWindow associated with it.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkWindow ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
An opaque structure representing an onscreen drawable.
|
|
|
|
Pointers to structures of type #GdkPixmap, #GdkBitmap,
|
|
|
|
and #GdkWindow, can often be used interchangeably.
|
|
|
|
The type #GdkDrawable refers generically to any of
|
|
|
|
these types.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
@user_data: used to store the #GtkWidget associated with this window
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkWindowType ##### -->
|
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Describes the kind of window.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
@GDK_WINDOW_ROOT: root window; this window has no parent, covers the entire screen, and is created by the window system
|
|
|
|
@GDK_WINDOW_TOPLEVEL: toplevel window (used to implement #GtkWindow)
|
|
|
|
@GDK_WINDOW_CHILD: child window (used to implement e.g. #GtkButton)
|
|
|
|
@GDK_WINDOW_DIALOG: useless/deprecated compatibility type
|
|
|
|
@GDK_WINDOW_TEMP: override redirect temporary window (used to implement #GtkMenu)
|
|
|
|
@GDK_WINDOW_FOREIGN: foreign window (see gdk_window_foreign_new())
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkWindowClass ##### -->
|
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
@GDK_INPUT_OUTPUT windows are the standard kind of window you might expect.
|
|
|
|
@GDK_INPUT_ONLY windows are invisible; they are used to trap events, but
|
|
|
|
you can't draw on them.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
@GDK_INPUT_OUTPUT: window for graphics and events
|
|
|
|
@GDK_INPUT_ONLY: window for events only
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkWindowHints ##### -->
|
|
|
|
<para>
|
2001-10-02 19:40:54 +00:00
|
|
|
Used to indicate which fields of a #GdkGeometry struct should be paid attention
|
|
|
|
to. Also, the presence/absence of @GDK_HINT_POS, @GDK_HINT_USER_POS, and
|
|
|
|
@GDK_HINT_USER_SIZE is significant, though they don't directly refer to
|
|
|
|
#GdkGeometry fields. @GDK_HINT_USER_POS will be set automatically by #GtkWindow
|
|
|
|
if you call gtk_window_move(). @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE
|
|
|
|
should be set if the user specified a size/position using a --geometry
|
|
|
|
command-line argument; gtk_window_parse_geometry() automatically sets these
|
|
|
|
flags.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-02 19:40:54 +00:00
|
|
|
@GDK_HINT_POS: indicates that the program has positioned the window
|
|
|
|
@GDK_HINT_MIN_SIZE: min size fields are set
|
|
|
|
@GDK_HINT_MAX_SIZE: max size fields are set
|
|
|
|
@GDK_HINT_BASE_SIZE: base size fields are set
|
|
|
|
@GDK_HINT_ASPECT: aspect ratio fields are set
|
|
|
|
@GDK_HINT_RESIZE_INC: resize increment fields are set
|
|
|
|
@GDK_HINT_WIN_GRAVITY: window gravity field is set
|
|
|
|
@GDK_HINT_USER_POS: indicates that the window's position was explicitly set by the user
|
|
|
|
@GDK_HINT_USER_SIZE: indicates that the window's size was explicitly set by the user
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkGeometry ##### -->
|
|
|
|
<para>
|
2001-10-02 19:40:54 +00:00
|
|
|
The #GdkGeometry struct gives the window manager information about
|
|
|
|
a window's geometry constraints. Normally you would set these on
|
|
|
|
the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow
|
|
|
|
then sets the hints on the #GdkWindow it creates.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
gdk_window_set_geometry_hints() expects the hints to be fully valid already and
|
|
|
|
simply passes them to the window manager; in contrast,
|
|
|
|
gtk_window_set_geometry_hints() performs some interpretation. For example,
|
|
|
|
#GtkWindow will apply the hints to the geometry widget instead of the toplevel
|
|
|
|
window, if you set a geometry widget. Also, the
|
2001-11-17 00:44:31 +00:00
|
|
|
@min_width/@min_height/@max_width/@max_height fields may be set to -1, and
|
2001-10-02 19:40:54 +00:00
|
|
|
#GtkWindow will substitute the size request of the window or geometry widget. If
|
|
|
|
the minimum size hint is not provided, #GtkWindow will use its requisition as
|
|
|
|
the minimum size. If the minimum size is provided and a geometry widget is set,
|
|
|
|
#GtkWindow will take the minimum size as the minimum size of the geometry widget
|
|
|
|
rather than the entire window. The base size is treated similarly.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The canonical use-case for gtk_window_set_geometry_hints() is to get a terminal
|
|
|
|
widget to resize properly. Here, the terminal text area should be the geometry
|
|
|
|
widget; #GtkWindow will then automatically set the base size to the size of
|
|
|
|
other widgets in the terminal window, such as the menubar and scrollbar. Then,
|
2001-11-17 00:44:31 +00:00
|
|
|
the @width_inc and @height_inc fields should be set to the size of one character
|
2001-10-02 19:40:54 +00:00
|
|
|
in the terminal. Finally, the base size should be set to the size of one
|
|
|
|
character. The net effect is that the minimum size of the terminal
|
|
|
|
will have a 1x1 character terminal area, and only terminal sizes on
|
|
|
|
the "character grid" will be allowed.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Here's an example of how the terminal example would be implemented, assuming
|
|
|
|
a terminal area widget called "terminal" and a toplevel window "toplevel":
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
<informalexample><programlisting>
|
2001-10-02 19:40:54 +00:00
|
|
|
GdkGeometry hints;
|
|
|
|
|
|
|
|
hints.base_width = terminal->char_width;
|
|
|
|
hints.base_height = terminal->char_height;
|
|
|
|
hints.min_width = terminal->char_width;
|
|
|
|
hints.min_height = terminal->char_height;
|
|
|
|
hints.width_inc = terminal->char_width;
|
|
|
|
hints.height_inc = terminal->char_height;
|
|
|
|
|
|
|
|
gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
|
|
|
|
GTK_WIDGET (terminal),
|
2001-10-03 18:19:48 +00:00
|
|
|
&hints,
|
2001-10-02 19:40:54 +00:00
|
|
|
GDK_HINT_RESIZE_INC |
|
|
|
|
GDK_HINT_MIN_SIZE |
|
|
|
|
GDK_HINT_BASE_SIZE);
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
</programlisting></informalexample>
|
2001-10-02 19:40:54 +00:00
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-10-02 19:40:54 +00:00
|
|
|
<para>
|
|
|
|
The other useful fields are the @min_aspect and @max_aspect fields; these
|
|
|
|
contain a width/height ratio as a floating point number. If a geometry widget is
|
|
|
|
set, the aspect applies to the geometry widget rather than the entire window.
|
|
|
|
The most common use of these hints is probably to set @min_aspect and
|
|
|
|
@max_aspect to the same value, thus forcing the window to keep a constant aspect
|
|
|
|
ratio.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-02 19:40:54 +00:00
|
|
|
@min_width: minimum width of window (or -1 to use requisition, with #GtkWindow only)
|
|
|
|
@min_height minimum height of window (or -1 to use requisition, with #GtkWindow only)
|
2001-10-03 18:19:48 +00:00
|
|
|
@min_height:
|
2001-10-02 19:40:54 +00:00
|
|
|
@max_width: maximum width of window (or -1 to use requisition, with #GtkWindow only)
|
|
|
|
@max_height: maximum height of window (or -1 to use requisition, with #GtkWindow only)
|
2001-11-17 00:44:31 +00:00
|
|
|
@base_width: allowed window widths are @base_width + @width_inc * N where N is any integer (-1 allowed with #GtkWindow)
|
|
|
|
@base_height: allowed window widths are @base_height + @height_inc * N where N is any integer (-1 allowed with #GtkWindow)
|
2001-10-02 19:40:54 +00:00
|
|
|
@width_inc: width resize increment
|
|
|
|
@height_inc: height resize increment
|
|
|
|
@min_aspect: minimum width/height ratio
|
|
|
|
@max_aspect: maximum width/height ratio
|
|
|
|
@win_gravity: window gravity, see gtk_window_set_gravity()
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2000-10-18 14:59:15 +00:00
|
|
|
<!-- ##### ENUM GdkGravity ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
Defines the reference point of a window and the meaning of coordinates
|
|
|
|
passed to gtk_window_move(). See gtk_window_move() and the "implementation
|
|
|
|
notes" section of the
|
|
|
|
<ulink url="http://www.freedesktop.org/standards/wm-spec.html">extended
|
|
|
|
window manager hints</ulink> specification for more details.
|
2000-10-18 14:59:15 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner.
|
|
|
|
@GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge.
|
|
|
|
@GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner.
|
|
|
|
@GDK_GRAVITY_WEST: the reference point is at the middle of the left edge.
|
|
|
|
@GDK_GRAVITY_CENTER: the reference point is at the center of the window.
|
|
|
|
@GDK_GRAVITY_EAST: the reference point is at the middle of the right edge.
|
|
|
|
@GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner.
|
|
|
|
@GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge.
|
|
|
|
@GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner.
|
|
|
|
@GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
|
|
|
|
window itself, ignoring window manager decorations.
|
|
|
|
|
2000-10-18 14:59:15 +00:00
|
|
|
|
2001-04-17 18:12:46 +00:00
|
|
|
<!-- ##### ENUM GdkWindowEdge ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
Determines a window edge or corner.
|
2001-04-17 18:12:46 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_WINDOW_EDGE_NORTH_WEST: the top left corner.
|
|
|
|
@GDK_WINDOW_EDGE_NORTH: the top edge.
|
|
|
|
@GDK_WINDOW_EDGE_NORTH_EAST: the top right corner.
|
|
|
|
@GDK_WINDOW_EDGE_WEST: the left edge.
|
|
|
|
@GDK_WINDOW_EDGE_EAST: the right edge.
|
|
|
|
@GDK_WINDOW_EDGE_SOUTH_WEST: the lower left corner.
|
|
|
|
@GDK_WINDOW_EDGE_SOUTH: the lower edge.
|
|
|
|
@GDK_WINDOW_EDGE_SOUTH_EAST: the lower right corner.
|
|
|
|
|
2001-04-17 18:12:46 +00:00
|
|
|
|
2001-03-23 22:21:06 +00:00
|
|
|
<!-- ##### ENUM GdkWindowTypeHint ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
These are hints for the window manager that indicate what type of function
|
|
|
|
the window has. The window manager can use this when determining decoration
|
|
|
|
and behaviour of the window. The hint must be set before mapping the window.
|
2001-03-23 22:21:06 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_WINDOW_TYPE_HINT_NORMAL: Normal toplevel window.
|
|
|
|
@GDK_WINDOW_TYPE_HINT_DIALOG: Dialog window.
|
|
|
|
@GDK_WINDOW_TYPE_HINT_MENU: Window used to implement a menu.
|
|
|
|
@GDK_WINDOW_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
|
2001-03-23 22:21:06 +00:00
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
<!-- ##### STRUCT GdkWindowAttr ##### -->
|
|
|
|
<para>
|
|
|
|
Attributes to use for a newly-created window.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@title: title of the window (for toplevel windows)
|
|
|
|
@event_mask: event mask (see gdk_window_set_events())
|
|
|
|
@x: X coordinate relative to parent window (see gdk_window_move())
|
|
|
|
@y: Y coordinate relative to parent window (see gdk_window_move())
|
|
|
|
@width: width of window
|
|
|
|
@height: height of window
|
|
|
|
@wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible window that receives events)
|
|
|
|
@visual: #GdkVisual for window
|
|
|
|
@colormap: #GdkColormap for window
|
|
|
|
@window_type: type of window
|
|
|
|
@cursor: cursor for the window (see gdk_window_set_cursor())
|
|
|
|
@wmclass_name: don't use (see gtk_window_set_wmclass())
|
|
|
|
@wmclass_class: don't use (see gtk_window_set_wmclass())
|
|
|
|
@override_redirect: %TRUE to bypass the window manager
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkWindowAttributesType ##### -->
|
|
|
|
<para>
|
|
|
|
Used to indicate which fields in the #GdkWindowAttr struct should be
|
|
|
|
honored. For example, if you filled in the "cursor" and "x" fields of
|
|
|
|
#GdkWindowAttr, pass "@GDK_WA_X | @GDK_WA_CURSOR" to gdk_window_new(). Fields
|
|
|
|
in #GdkWindowAttr not covered by a bit in this enum are required; for example,
|
2001-11-17 00:44:31 +00:00
|
|
|
the @width/@height, @wclass, and @window_type fields are required, they have no
|
2001-10-03 18:19:48 +00:00
|
|
|
corresponding flag in #GdkWindowAttributesType.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@GDK_WA_TITLE: Honor the title field
|
|
|
|
@GDK_WA_X: Honor the X coordinate field
|
|
|
|
@GDK_WA_Y: Honor the Y coordinate field
|
|
|
|
@GDK_WA_CURSOR: Honor the cursor field
|
|
|
|
@GDK_WA_COLORMAP: Honor the colormap field
|
|
|
|
@GDK_WA_VISUAL: Honor the visual field
|
|
|
|
@GDK_WA_WMCLASS: Honor the wmclass_class and wmclass_name fields
|
|
|
|
@GDK_WA_NOREDIR: Honor the override_redirect field
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@parent:
|
|
|
|
@attributes:
|
|
|
|
@attributes_mask:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_destroy ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_ref ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent of g_object_ref()
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_unref ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent of g_object_unref()
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_window_type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_at_pointer ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@win_x:
|
|
|
|
@win_y:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_show ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_show_unraised ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_hide ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_is_visible ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_is_viewable ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-03-03 23:29:50 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_state ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_withdraw ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
2000-10-18 14:59:15 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_iconify ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
2001-03-03 23:29:50 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_deiconify ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_stick ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_unstick ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_maximize ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_unmaximize ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_move ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_resize ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_move_resize ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_scroll ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@dx:
|
|
|
|
@dy:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_reparent ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@new_parent:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_clear ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_clear_area ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_clear_area_e ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_copy_area ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent to gdk_draw_drawable(), see that function for docs
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@gc:
|
|
|
|
@x:
|
|
|
|
@y:
|
2000-09-07 18:17:06 +00:00
|
|
|
@source_drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@source_x:
|
|
|
|
@source_y:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_raise ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_lower ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
2001-03-03 23:29:50 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_focus ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@timestamp:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_register_dnd ##### -->
|
|
|
|
<para>
|
2001-11-28 23:41:12 +00:00
|
|
|
Registers a window as a potential drop destination.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 23:41:12 +00:00
|
|
|
@window: a #GdkWindow.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2001-04-17 18:12:46 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_begin_resize_drag ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@edge:
|
|
|
|
@button:
|
|
|
|
@root_x:
|
|
|
|
@root_y:
|
|
|
|
@timestamp:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_begin_move_drag ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@button:
|
|
|
|
@root_x:
|
|
|
|
@root_y:
|
|
|
|
@timestamp:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_constrain_size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@geometry:
|
|
|
|
@flags:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
@new_width:
|
|
|
|
@new_height:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_begin_paint_rect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@rectangle:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_begin_paint_region ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@region:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_end_paint ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_invalidate_rect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@rect:
|
|
|
|
@invalidate_children:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_invalidate_region ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@region:
|
|
|
|
@invalidate_children:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_update_area ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_freeze_updates ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_thaw_updates ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_process_all_updates ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_process_updates ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@update_children:
|
|
|
|
|
|
|
|
|
2001-02-20 05:21:44 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_set_debug_updates ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@setting:
|
|
|
|
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_internal_paint_info ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@real_drawable:
|
|
|
|
@x_offset:
|
|
|
|
@y_offset:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_set_user_data ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@user_data:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_override_redirect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@override_redirect:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_add_filter ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@function:
|
|
|
|
@data:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_remove_filter ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@function:
|
|
|
|
@data:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
|
|
|
|
<para>
|
2001-11-17 00:44:31 +00:00
|
|
|
Specifies the type of function used to filter native events before they are
|
|
|
|
converted to GDK events. A filter may translate the native event to a GDK
|
|
|
|
event or handle it without translation.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-20 13:55:08 +00:00
|
|
|
@xevent: the native event to filter.
|
|
|
|
@event: the GDK event to which the X event will be translated.
|
2001-11-17 00:44:31 +00:00
|
|
|
@data: user data set when the filter was installed.
|
|
|
|
@Returns: a #GdkFilterReturn value.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkFilterReturn ##### -->
|
|
|
|
<para>
|
2001-11-17 00:44:31 +00:00
|
|
|
Specifies the result of applying a #GdkFilterFunc to a native event.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-20 13:55:08 +00:00
|
|
|
@GDK_FILTER_CONTINUE: event not handled, continue processing.
|
2001-11-17 00:44:31 +00:00
|
|
|
@GDK_FILTER_TRANSLATE: translated event stored.
|
|
|
|
@GDK_FILTER_REMOVE: event handled, terminate processing.
|
|
|
|
|
2000-02-02 03:23:11 +00:00
|
|
|
<!-- ##### TYPEDEF GdkXEvent ##### -->
|
|
|
|
<para>
|
2001-11-17 00:44:31 +00:00
|
|
|
Used to represent native events (<type>XEvent</type>s for the X11
|
|
|
|
backend, <type>MSG</type>s for Win32).
|
2000-02-02 03:23:11 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_shape_combine_mask ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
2001-11-21 21:43:47 +00:00
|
|
|
@mask:
|
|
|
|
@x:
|
|
|
|
@y:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2001-03-03 23:29:50 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_shape_combine_region ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@shape_region:
|
|
|
|
@offset_x:
|
|
|
|
@offset_y:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_set_child_shapes ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_merge_child_shapes ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_static_gravities ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@use_static:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_hints ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@min_width:
|
|
|
|
@min_height:
|
|
|
|
@max_width:
|
|
|
|
@max_height:
|
|
|
|
@flags:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_title ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@title:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_background ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@color:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_back_pixmap ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@pixmap:
|
|
|
|
@parent_relative:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
|
|
|
|
<para>
|
2001-12-03 21:28:47 +00:00
|
|
|
A special value for <literal>GdkPixmap*</literal> variables, indicating
|
|
|
|
that the background pixmap for a window should be inherited from the parent
|
|
|
|
window.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_cursor ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@cursor:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_set_colormap ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent to gdk_drawable_set_colormap()
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2001-11-20 13:55:08 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_user_data ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@data:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_geometry ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
@depth:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_geometry_hints ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@geometry:
|
2001-11-21 21:43:47 +00:00
|
|
|
@geom_mask:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2001-03-23 22:21:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_set_icon_list ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@pixbufs:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_modal_hint ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@modal:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_type_hint ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@hint:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_position ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_root_origin ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
|
|
|
|
|
2001-04-17 18:12:46 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_frame_extents ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@rect:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_get_size ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent of gdk_drawable_get_size().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_get_visual ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent of gdk_drawable_get_visual().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_get_colormap ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent of gdk_drawable_get_colormap().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
@Returns: colormap for the window
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_window_get_type ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-10-03 18:19:48 +00:00
|
|
|
Deprecated equivalent of gdk_drawable_get_type().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
@Returns: type of drawable
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_origin ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_deskrelative_origin ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_pointer ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@mask:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkModifierType ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@GDK_SHIFT_MASK:
|
|
|
|
@GDK_LOCK_MASK:
|
|
|
|
@GDK_CONTROL_MASK:
|
|
|
|
@GDK_MOD1_MASK:
|
|
|
|
@GDK_MOD2_MASK:
|
|
|
|
@GDK_MOD3_MASK:
|
|
|
|
@GDK_MOD4_MASK:
|
|
|
|
@GDK_MOD5_MASK:
|
|
|
|
@GDK_BUTTON1_MASK:
|
|
|
|
@GDK_BUTTON2_MASK:
|
|
|
|
@GDK_BUTTON3_MASK:
|
|
|
|
@GDK_BUTTON4_MASK:
|
|
|
|
@GDK_BUTTON5_MASK:
|
|
|
|
@GDK_RELEASE_MASK:
|
|
|
|
@GDK_MODIFIER_MASK:
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_parent ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_toplevel ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_children ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_peek_children ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_events ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_events ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@event_mask:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_icon ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@icon_window:
|
|
|
|
@pixmap:
|
|
|
|
@mask:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_icon_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@name:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_transient_for ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
2001-11-21 21:43:47 +00:00
|
|
|
@parent:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_role ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@role:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_group ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@leader:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_decorations ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@decorations:
|
|
|
|
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<!-- ##### FUNCTION gdk_window_get_decorations ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window: The window to get the decorations from
|
|
|
|
@decorations: The window decorations will be written here
|
2001-11-17 00:44:31 +00:00
|
|
|
@Returns: %TRUE if the window has decorations set, %FALSE otherwise.
|
2001-02-12 17:50:13 +00:00
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### ENUM GdkWMDecoration ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
These are hints originally defined by the Motif toolkit.
|
|
|
|
The window manager can use them when determining how to decorate
|
|
|
|
the window. The hint must be set before mapping the window.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_DECOR_ALL: all decorations should be applied.
|
|
|
|
@GDK_DECOR_BORDER: a frame should be drawn around the window.
|
|
|
|
@GDK_DECOR_RESIZEH: the frame should have resize handles.
|
|
|
|
@GDK_DECOR_TITLE: a titlebar should be placed above the window.
|
|
|
|
@GDK_DECOR_MENU: a button for opening a menu should be included.
|
|
|
|
@GDK_DECOR_MINIMIZE: a minimize button should be included.
|
|
|
|
@GDK_DECOR_MAXIMIZE: a maximize button should be included.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_set_functions ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@window:
|
|
|
|
@functions:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkWMFunction ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
These are hints originally defined by the Motif toolkit.
|
|
|
|
The window manager can use them when determining the functions
|
|
|
|
to offer for the window.
|
|
|
|
The hint must be set before mapping the window.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_FUNC_ALL: all functions should be offered.
|
|
|
|
@GDK_FUNC_RESIZE: the window should be resizable.
|
|
|
|
@GDK_FUNC_MOVE: the window should be movable.
|
|
|
|
@GDK_FUNC_MINIMIZE: the window should be minimizable.
|
|
|
|
@GDK_FUNC_MAXIMIZE: the window should be maximizable.
|
|
|
|
@GDK_FUNC_CLOSE: the window should be closable.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_window_get_toplevels ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
<!-- ##### FUNCTION gdk_get_default_root_window ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkPointerHooks ##### -->
|
|
|
|
<para>
|
2001-11-28 19:05:58 +00:00
|
|
|
A table of pointers to functions for getting quantities related to
|
|
|
|
the current pointer position. GDK has one global table of this type,
|
|
|
|
which can be set using gdk_set_pointer_hooks().
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This is only useful for such low-level tools as an event recorder.
|
|
|
|
Applications should never have any reason to use this facility
|
2001-10-03 18:19:48 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@get_pointer: Obtains the current pointer position and modifier state.
|
|
|
|
The position is given in coordinates relative to the window containing
|
|
|
|
the pointer, which is returned in @window.
|
|
|
|
@window_at_pointer: Obtains the window underneath the mouse pointer,
|
|
|
|
returning the location of that window in @win_x, @win_y. Returns %NULL
|
|
|
|
if the window under the mouse pointer is not known to GDK (for example,
|
|
|
|
belongs to another application).
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_set_pointer_hooks ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@new_hooks:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|