Node: Frame Styles, Next: , Previous: Frame Types, Up: Window Frames



Frame Styles

Frame styles are used to encapsulate frames of the different types that have a single visual appearance. Each frame style associates a name with a function that creates a frame definition for a particular window and frame type combination.

Several window properties are used while choosing frame styles:

frame-style Window Property
The user-chosen frame style of the window. If nil, Sawfish will use the default frame style.

current-frame-style Window Property
The current frame style of the window. This is not set explicitly; window update functions will change it behind the scenes.

ignored Window Property
When set, the window is not given a frame.

It is possible to edit certain frame styles in place with sawfish-themer.

frame-style-editable-p style Function
Returns t if style can be edited interactively, nil otherwise.

edit-frame-style style Command
Prompts for a frame style (defaulting to the value of default-frame-style), and runs sawfish-themer-program on it.

reload-frame-style name Function
Reloads the frame style name from disk if it is already known to the system. All windows with that style are reframed.