Package: gdk
Class gdk-window
Superclassesg-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails
Onscreen display areas in the target window system. A gdk-window object is a usually rectangular region on the screen. It is a low-level object, used to implement high-level objects such as gtk-widget and gtk-window widgets on the GTK level. A gtk-window widget is a toplevel window, the thing a user might think of as a "window" with a titlebar and so on. A gtk-window widget may contain many gdk-window objects. For example, each gtk-button widget has a gdk-window object associated with it. Composited WindowsNormally, the windowing system takes care of rendering the contents of a child window onto its parent window. This mechanism can be intercepted by calling the function gdk-window-composited on the child window. For a composited window it is the responsibility of the application to render the window contents at the right spot.Offscreen WindowsOffscreen windows are more general than composited windows, since they allow not only to modify the rendering of the child window onto its parent, but also to apply coordinate transformations.To integrate an offscreen window into a window hierarchy, one has to call the function gdk-offscreen-window-set-embedder and handle a number of signals. The "pick-embedded-child" signal on the embedder window is used to select an offscreen child at given coordinates, and the "to-embedder" and "from-embedder" signals on the offscreen window are used to translate coordinates between the embedder and the offscreen window. For rendering an offscreen window onto its embedder, the contents of the offscreen window are available as a surface, via the function gdk-offscreen-window-surface. Signal DetailsThe "create-surface" signallambda (window width height) : Run LastThe "create-surface" signal is emitted when an offscreen window needs its surface (re)created, which happens either when the the window is first drawn to, or when the window is being resized. The first signal handler that returns a non-nil surface will stop any further signal emission, and its surface will be used. Note that it is not possible to access the window's previous surface from within any callback of this signal. Calling the function gdk-offscreen-window-surface will lead to a crash.
The "from-embedder" signallambda (window embedder-x embedder-y offscreen-x offscreen-y) : Run LastThe "from-embedder" signal is emitted to translate coordinates in the embedder of an offscreen window to the offscreen window. See also the "to-embedder" signal.
The "moved-to-rect" signallambda (window flipped-rect final-rect flipped-x flipped-y) : Run FirstEmitted when the position of window is finalized after being moved to a destination rectangle. window might be flipped over the destination rectangle in order to keep it on-screen, in which case flipped-x and flipped-y will be set to true accordingly. flipped-rect is the ideal position of window after any possible flipping, but before any possible sliding. final-rect is flipped-rect, but possibly translated in the case that flipping is still ineffective in keeping window on-screen. Since 3.22
The "pick-embedded-child" signallambda (window x y) : Run LastThe "pick-embedded-child" signal is emitted to find an embedded child at the given position.
The "to-embedder" signallambda (window offscreen-x offscreen-y embedder-x embedder-y) : Run LastThe "to-embedder" signal is emitted to translate coordinates in an offscreen window to its embedder. See also the "from-embedder" signal.
| Slot Access FunctionsInherited Slot Access FunctionsSee also |
2020-9-7