Node: Frame Functions, Next: , Previous: Frame Part Definition, Up: Window Frames



Frame Functions

set-window-frame window frame-def Function
Sets the frame of the client window associated with the object window to that defined by the list of frame part definitions frame-def. If the window is mapped the old frame will be destroyed and a new frame constructed.

window-frame window Function
Return the list of frame part definitions defining the frame associated with window.

window-framed-p window Function
Return t when window has been reparented to a frame created by the window manager.

refresh-window window Function
Refresh all the frame parts belonging to window.

rebuild-frame window Function
Recreates the window frame associated with window, from the previously defined frame definition. All frame parts are reinitialized and recalibrated.

window-frame-dimensions window Function
Return a cons cell (width . height) defining the dimensions of the frame associated with window. These will always be greater than or equal to the dimensions of the client window.

If window is not framed, then this function returns the same values as window-dimensions would.

window-frame-offset window Function
Return a cons cell (x . y) defining the offset from the origin of the client window associated with window to the origin of its frame.

window-border-width window Function
Return the width of the border of the window that window manages.

clicked-frame-part Function
Return a pointer to the frame part object that was clicked on as part of the current event. Returns nil if no frame part was clicked on.

frame-part-dimensions part Function
Return a cons cell (width . height) of dimensions for frame part part.

frame-part-position part Function
Return a cons cell (x . x) of the relative position of frame part part against its window's frame origin.

frame-part-window part Function
Return the window object associated with this frame part.

frame-part-x-window part Function
Return the X11 window ID associated with this frame part.

frame-draw-mutex lock Function
Called with lock equal to t, frame part redraws will be delayed. The redraws will take place once the function is called with lock set to nil.

map-frame-parts function window Function
Call (function part) on each the frame parts of window and return nil. If any function returns nil, map-frame-parts returns nil immediately.

rebuild-frame-part part Function
Build a new copy of the frame part part and install the copy in the owning window, replacing the old part.

refresh-frame-part part Function
The frame part part will be redrawn at the next opportunity.