src/swipl-devel/packages/xpce/man/refmanual/md/frame.md

class frame {#class-frame}

A frame is a top-level window in the desktop environment. It hosts a collection of window instances and mediates between them and the OS window manager: it carries the title, decorations, geometry, modality and close/save handlers.

The frame's interior is tiled: the member windows together cover the entire client area without overlap. Layout is managed by a tile object associated with the frame.

Every window needs a frame before it can be opened. For simple applications the user does not need to deal with frames explicitly — opening a single window creates a frame as a side-effect. Windows delegate messages they don't understand to their associated frame.

Subclasses of frame are common in user-defined applications that need to coordinate several sub-windows. The set of windows and their spatial relationships may be changed after the frame has been opened.

The underlying driver is SDL3 across all platforms; legacy X11 behaviour and window-manager protocol names (WM_DELETE_WINDOW, WM_SAVE_YOURSELF, ...) are preserved as identifiers but no longer imply X-specific semantics.

@see window->initialise @see display<-frames @see topic Window Layout @see class tile @see class window

Class variables {#class-frame-classvars}

Instance variables {#class-frame-instvars}

Send methods {#class-frame-send}

Get methods {#class-frame-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.