| gdk-Windows {RGtk2.10} | R Documentation |
Onscreen display areas in the target window system
gdkWindowNew(parent = NULL, attributes)
gdkWindowDestroy(object)
gdkWindowGetWindowType(object)
gdkWindowAtPointer()
gdkWindowShow(object)
gdkWindowShowUnraised(object)
gdkWindowHide(object)
gdkWindowIsVisible(object)
gdkWindowIsViewable(object)
gdkWindowGetState(object)
gdkWindowWithdraw(object)
gdkWindowIconify(object)
gdkWindowDeiconify(object)
gdkWindowStick(object)
gdkWindowUnstick(object)
gdkWindowMaximize(object)
gdkWindowUnmaximize(object)
gdkWindowFullscreen(object)
gdkWindowUnfullscreen(object)
gdkWindowSetKeepAbove(object, setting)
gdkWindowSetKeepBelow(object, setting)
gdkWindowMove(object, x, y)
gdkWindowResize(object, width, height)
gdkWindowMoveResize(object, x, y, width, height)
gdkWindowScroll(object, dx, dy)
gdkWindowMoveRegion(object, region, x, y)
gdkWindowReparent(object, new.parent, x, y)
gdkWindowClear(object)
gdkWindowClearArea(object, x, y, width, height)
gdkWindowClearAreaE(object, x, y, width, height)
gdkWindowRaise(object)
gdkWindowLower(object)
gdkWindowFocus(object, timestamp = "GDK_CURRENT_TIME")
gdkWindowRegisterDnd(object)
gdkWindowBeginResizeDrag(object, edge, button, root.x, root.y, timestamp)
gdkWindowBeginMoveDrag(object, button, root.x, root.y, timestamp)
gdkWindowConstrainSize(geometry, width, height)
gdkWindowBeginPaintRect(object, rectangle)
gdkWindowBeginPaintRegion(object, region)
gdkWindowEndPaint(object)
gdkWindowInvalidateRect(object, rect = NULL, invalidate.children)
gdkWindowInvalidateRegion(object, region, invalidate.children)
gdkWindowInvalidateMaybeRecurse(object, region, child.func, user.data)
gdkWindowGetUpdateArea(object)
gdkWindowFreezeUpdates(object)
gdkWindowThawUpdates(object)
gdkWindowProcessAllUpdates()
gdkWindowProcessUpdates(object, update.children)
gdkWindowSetDebugUpdates(setting)
gdkWindowGetInternalPaintInfo(object)
gdkWindowEnableSynchronizedConfigure(object)
gdkWindowConfigureFinished(object)
gdkWindowSetUserData(object, user.data = NULL)
gdkWindowSetOverrideRedirect(object, override.redirect)
gdkWindowSetAcceptFocus(object, accept.focus)
gdkWindowSetFocusOnMap(object, focus.on.map)
gdkWindowAddFilter(object, fun, data)
gdkWindowRemoveFilter(object, fun, data)
gdkWindowShapeCombineMask(object, shape.mask = NULL, offset.x, offset.y)
gdkWindowShapeCombineRegion(object, shape.region = NULL, offset.x, offset.y)
gdkWindowSetChildShapes(object)
gdkWindowMergeChildShapes(object)
gdkWindowInputShapeCombineMask(object, mask, x, y)
gdkWindowInputShapeCombineRegion(object, shape.region, offset.x, offset.y)
gdkWindowSetChildInputShapes(object)
gdkWindowMergeChildInputShapes(object)
gdkWindowSetStaticGravities(object, use.static)
gdkWindowSetHints(object, x, y, min.width, min.height, max.width, max.height, flags)
gdkWindowSetTitle(object, title)
gdkWindowSetBackground(object, color)
gdkWindowSetBackPixmap(object, pixmap = NULL, parent.relative)
gdkWindowSetCursor(object, cursor = NULL)
gdkWindowGetUserData(object)
gdkWindowGetGeometry(object)
gdkWindowSetGeometryHints(object, geometry)
gdkWindowSetIconList(object, pixbufs)
gdkWindowSetModalHint(object, modal)
gdkWindowSetTypeHint(object, hint)
gdkWindowGetTypeHint(object)
gdkWindowSetSkipTaskbarHint(object, modal)
gdkWindowSetSkipPagerHint(object, modal)
gdkWindowSetUrgencyHint(object, urgent)
gdkWindowGetPosition(object)
gdkWindowGetRootOrigin(object)
gdkWindowGetFrameExtents(object)
gdkWindowGetOrigin(object)
gdkWindowGetDeskrelativeOrigin(object)
gdkWindowGetPointer(object)
gdkWindowGetParent(object)
gdkWindowGetToplevel(object)
gdkWindowGetChildren(object)
gdkWindowPeekChildren(object)
gdkWindowGetEvents(object)
gdkWindowSetEvents(object, event.mask)
gdkWindowSetIcon(object, icon.window, pixmap, mask)
gdkWindowSetIconName(object, name)
gdkWindowSetTransientFor(object, leader)
gdkWindowSetRole(object, role)
gdkWindowSetGroup(object, leader)
gdkWindowGetGroup(object)
gdkWindowSetDecorations(object, decorations)
gdkWindowGetDecorations(object)
gdkWindowSetFunctions(object, functions)
gdkWindowGetToplevels()
gdkGetDefaultRootWindow()
gdkSetPointerHooks(object, new.hooks)
gdkWindow(parent = NULL, attributes)
GObject
+----GdkDrawable
+----GdkWindow
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.
GdkWindowGdkPixmap, GdkBitmap,
and GdkWindow, can often be used interchangeably.
The type GdkDrawable refers generically to any of
these types.
GdkGeometryGdkGeometry struct gives the window manager information about
a window's geometry constraints. Normally you would set these on
the GTK+ level using gtkWindowSetGeometryHints. GtkWindow
then sets the hints on the GdkWindow it creates.
gdkWindowSetGeometryHints expects the hints to be fully valid already and
simply passes them to the window manager; in contrast,
gtkWindowSetGeometryHints 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
min.width/min.height/max.width/max.height fields may be set to -1, and
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.
The canonical use-case for gtkWindowSetGeometryHints 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,
the width.inc and height.inc fields should be set to the size of one character
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.
Here's an example of how the terminal example would be implemented, assuming a terminal area widget called "terminal" and a toplevel window "toplevel":
fields <- c("base.width", "base.height", "min.width", "min.height", "width.inc", "height.inc")
hints[fields] <- char_width
toplevel$setGeometryHints(terminal, hints)
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.
GdkGeometry is a transparent-type.
min_widthGtkWindow only)min_heightGtkWindow only)max_widthGtkWindow only)max_heightGtkWindow only)base_widthbase.width + width.inc * N where N is any integer (-1 allowed with GtkWindow)base_heightbase.height + height.inc * N where N is any integer (-1 allowed with GtkWindow)width_incheight_incmin_aspectmax_aspectwin_gravityGdkGravity] window gravity, see gtkWindowSetGravity
GdkWindowAttrGdkWindowAttr is a transparent-type.
titleevent_maskgdkWindowSetEvents)xgdkWindowMove)ygdkWindowMove)widthheightwclassGdkWindowClass] GDK_INPUT_OUTPUT (normal window) or GDK_INPUT_ONLY (invisible window that receives events)visualGdkVisual] GdkVisual for windowcolormapGdkColormap] GdkColormap for windowwindow_typeGdkWindowType] type of windowcursorGdkCursor] cursor for the window (see gdkWindowSetCursor)wmclass_namegtkWindowSetWmclass)wmclass_classgtkWindowSetWmclass)override_redirectTRUE to bypass the window manager
GdkFilterReturnGdkFilterFunc to a native event.
gdkWindow is the equivalent of gdkWindowNew.
GdkWindowTyperoottoplevelGtkWindow)childGtkButton)dialogtempGtkMenu)foreigngdkWindowForeignNew())
GdkWindowClassGDK.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.
outputonly
GdkWindowHintsGdkGeometry 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 gtkWindowMove. 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; gtkWindowParseGeometry() automatically sets these
flags.
posmin-sizemax-sizebase-sizeaspectresize-incwin-gravityuser-posuser-size
GdkGravitygtkWindowMove. See gtkWindowMove and the "implementation
notes" section of the
Extended
Window Manager Hints (http://www.freedesktop.org/Standards/wm-spec) specification for more details.
north-westnorthnorth-eastwestcentereastsouth-westsouthsouth-eaststatic
GdkWindowEdgenorth-westnorthnorth-eastwesteastsouth-westsouthsouth-east
GdkWindowTypeHintSee the Extended Window Manager Hints (http://www.freedesktop.org/Standards/wm-spec) specification for more details about window types.
normaldialogmenutoolbarsplashscreenutilitydockdesktop
GdkWindowAttributesTypeGdkWindowAttr 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 gdkWindowNew. Fields
in GdkWindowAttr not covered by a bit in this enum are required; for example,
the width/height, wclass, and window.type fields are required, they have no
corresponding flag in GdkWindowAttributesType.
titlexycursorcolormapvisualwmclassnoredir
GdkFilterReturnGdkFilterFunc to a native event.
continuetranslateevent structure that was passed in.remove
GdkModifierTypeLike the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped
to Mod2 - Mod5, and indicates this by setting GDK_SUPER_MASK, GDK_HYPER_MASK
or GDK_META_MASK in the state field of key events.
shift-masklock-maskcontrol-maskmod1-maskmod2-maskmod3-maskmod4-maskmod5-maskbutton1-maskbutton2-maskbutton3-maskbutton4-maskbutton5-maskrelease-maskmodifier-mask
GdkWMDecorationallborderresizehtitlemenuminimizemaximize
GdkWMFunctionallresizemoveminimizemaximizeclose
GdkFilterFunc(xevent, event, data)
When a filter is called, event is unpopulated, except for
event->window. The filter may translate the native
event to a GDK event and store the result in event, or handle it without
translation. If the filter translates the event and processing should
continue, it should return GDK_FILTER_TRANSLATE.
xeventeventGdkEvent] the GDK event to which the X event will be translated.data
Returns: [GdkFilterReturn] a GdkFilterReturn value.
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html