Class

GntWM

Description

class Gnt.WM : Gnt.Bindable
{
  /* No available fields */
}

No description available.

Ancestors

Functions

gnt_wm_get_idle_time
No description available.

Instance methods

gnt_wm_add_workspace

Add a workspace.

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_get_current_workspace

Gets the current workspace.

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

gnt_wm_move_window

Move a window.

gnt_wm_new_window

Process a new window.

gnt_wm_process_click

Process a click event.

gnt_wm_process_input

Process input.

gnt_wm_raise_window

Raise a window.

gnt_wm_resize_window

Resize a window.

gnt_wm_set_workspaces

Set the list of workspaces .

gnt_wm_switch_workspace

Switch to a workspace.

gnt_wm_switch_workspace_next

Switch to the next workspace from the current one.

gnt_wm_switch_workspace_prev

Switch to the previous workspace from the current one.

gnt_wm_update_window

Update a window.

gnt_wm_widget_find_workspace

Find the workspace that contains a specific widget.

gnt_wm_widget_move_workspace

Move a window to a specific workspace.

gnt_wm_window_close

Close a window.

gnt_wm_window_decorate

Decorate a window.

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
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Gnt.WM::close-win
No description available.

Gnt.WM::confirm-move
No description available.

Gnt.WM::confirm-resize
No description available.

Gnt.WM::decorate-win
No description available.

Gnt.WM::give-focus
No description available.

Gnt.WM::mouse-clicked
No description available.

Gnt.WM::new-win
No description available.

Gnt.WM::terminal-refresh
No description available.

Gnt.WM::window-moved
No description available.

Gnt.WM::window-resized
No description available.

Gnt.WM::window-update
No description available.

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-win signal. 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-win signal.

close_window: gboolean (* close_window) ( GntWM* wm, GntWidget* win )

The class closure for the GntWM::close-win signal. 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-resize signal. 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-resized signal.

window_move_confirm: gboolean (* window_move_confirm) ( GntWM* wm, GntWidget* win, int* x, int* y )

The class closure for the GntWM::confirm-move signal. 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-moved signal.

window_update: void (* window_update) ( GntWM* wm, GntNode* node )

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.

key_pressed: gboolean (* key_pressed) ( GntWM* wm, const char* key )

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.

mouse_clicked: gboolean (* mouse_clicked) ( GntWM* wm, GntMouseEvent event, int x, int y, GntWidget* widget )

The class closure for the GntWM::mouse-clicked signal.

give_focus: void (* give_focus) ( GntWM* wm, GntWidget* widget )

The class closure for the GntWM::give-focus signal. 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-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.

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.decorate_window

The class closure for the GntWM::decorate-win signal.

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.mouse_clicked

The class closure for the GntWM::mouse-clicked signal.

Gnt.WMClass.new_window

Process a new window.

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_moved

The class closure for the GntWM::window-moved signal.

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_resized

The class closure for the GntWM::window-resized signal.

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.