Class
GntWM
Instance methods
gnt_wm_foreach
Calls the given function for each of the GntWidget / GntNode pairs in the
GntWM. The function is passed the widget and node of each pair, and the
given user_data parameter. The window manager may not be modified while
iterating over it (you can’t add/remove widgets).
unstable since: 3.0
gnt_wm_has_window_position
Checks whether the window manager has a recorded window position for a
window with the given title.
unstable since: 3.0
Methods inherited from GntBindable (6)
gnt_bindable_bindings_view
Returns a GntTree populated with “key” -> “binding” for the widget.
since: 2.1.1
gnt_bindable_build_help_window
Builds a window that list the key bindings for a GntBindable object. From this window a user can select a listing to rebind a new key for the given action.
since: 2.1.1
gnt_bindable_check_key
Discover if a key is bound.
since: 2.4.2
gnt_bindable_perform_action_key
Perform an action from a keybinding.
gnt_bindable_perform_action_named
Perform an action on a bindable object.
gnt_bindable_remap_keys
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GntWMClass {
void (* new_window) (
GntWM* wm,
GntWidget* widget
);
void (* decorate_window) (
GntWM* wm,
GntWidget* win
);
gboolean (* close_window) (
GntWM* wm,
GntWidget* win
);
gboolean (* window_resize_confirm) (
GntWM* wm,
GntWidget* win,
int* w,
int* h
);
void (* window_resized) (
GntWM* wm,
GntNode* node
);
gboolean (* window_move_confirm) (
GntWM* wm,
GntWidget* win,
int* x,
int* y
);
void (* window_moved) (
GntWM* wm,
GntNode* node
);
void (* window_update) (
GntWM* wm,
GntNode* node
);
gboolean (* key_pressed) (
GntWM* wm,
const char* key
);
gboolean (* mouse_clicked) (
GntWM* wm,
GntMouseEvent event,
int x,
int y,
GntWidget* widget
);
void (* give_focus) (
GntWM* wm,
GntWidget* widget
);
void (* terminal_refresh) (
GntWM* wm
);
}
The class structure for GntWM.
Class members
new_window: void (* new_window) ( GntWM* wm, GntWidget* widget )The class closure for the
GntWM::new-winsignal. This is called when a new window is shown.decorate_window: void (* decorate_window) ( GntWM* wm, GntWidget* win )The class closure for the
GntWM::decorate-winsignal.close_window: gboolean (* close_window) ( GntWM* wm, GntWidget* win )The class closure for the
GntWM::close-winsignal. This is called when a window is being closed.window_resize_confirm: gboolean (* window_resize_confirm) ( GntWM* wm, GntWidget* win, int* w, int* h )The class closure for the
GntWM::confirm-resizesignal. The WM may want to confirm a size for a window first.window_resized: void (* window_resized) ( GntWM* wm, GntNode* node )The class closure for the
GntWM::window-resizedsignal.window_move_confirm: gboolean (* window_move_confirm) ( GntWM* wm, GntWidget* win, int* x, int* y )The class closure for the
GntWM::confirm-movesignal. The WM may want to confirm the position of a window.window_moved: void (* window_moved) ( GntWM* wm, GntNode* node )The class closure for the
GntWM::window-movedsignal.window_update: void (* window_update) ( GntWM* wm, GntNode* node )The class closure for the
GntWM::window-updatesignal. This gets called when: - the title of the window changes - the ‘urgency’ of the window changes.key_pressed: gboolean (* key_pressed) ( GntWM* wm, const char* key )This should usually return
NULLif the keys were processed by the WM. If not, the WM can simply return the original string, which will be processed by the default WM. The custom WM can also return a different static string for the default WM to process.mouse_clicked: gboolean (* mouse_clicked) ( GntWM* wm, GntMouseEvent event, int x, int y, GntWidget* widget )The class closure for the
GntWM::mouse-clickedsignal.give_focus: void (* give_focus) ( GntWM* wm, GntWidget* widget )The class closure for the
GntWM::give-focussignal. Whatever the WM wants to do when a window is given focus.terminal_refresh: void (* terminal_refresh) ( GntWM* wm )The class closure for the
GntWM::terminal-refreshsignal. This is invoked whenever the terminal window is resized, or the screen session is attached to a new terminal. (i.e., from the SIGWINCH callback) Since: 2.1.
Virtual methods
Gnt.WMClass.close_window
The class closure for the GntWM::close-win signal. This is
called when a window is being closed.
Gnt.WMClass.give_focus
The class closure for the GntWM::give-focus signal. Whatever
the WM wants to do when a window is given focus.
Gnt.WMClass.key_pressed
This should usually return NULL if the keys were processed by
the WM. If not, the WM can simply return the original string,
which will be processed by the default WM. The custom WM can
also return a different static string for the default WM to process.
Gnt.WMClass.terminal_refresh
The class closure for the GntWM::terminal-refresh signal.
This is invoked whenever the terminal window is resized,
or the screen session is attached to a new terminal.
(i.e., from the SIGWINCH callback)
Since: 2.1.
Gnt.WMClass.window_move_confirm
The class closure for the GntWM::confirm-move signal.
The WM may want to confirm the position of a window.
Gnt.WMClass.window_resize_confirm
The class closure for the GntWM::confirm-resize
signal. The WM may want to confirm a size for a
window first.
Gnt.WMClass.window_update
The class closure for the GntWM::window-update signal. This
gets called when:
- the title of the window changes
- the ‘urgency’ of the window changes.