Class

PhocDesktop

[]

Description [src]

class Phoc.Desktop : GObject.Object
{
  outputs: wl_list,
  export_dmabuf_manager_v1: wlr_export_dmabuf_manager_v1*,
  ext_foreign_toplevel_list_v1: wlr_ext_foreign_toplevel_list_v1*,
  foreign_toplevel_manager_v1: wlr_foreign_toplevel_manager_v1*,
  gamma_control_manager_v1: wlr_gamma_control_manager_v1*,
  idle: wlr_idle*,
  input_method: wlr_input_method_manager_v2*,
  layer_shell: wlr_layer_shell_v1*,
  layout: wlr_output_layout*,
  output_manager_v1: wlr_output_manager_v1*,
  output_power_manager_v1: wlr_output_power_manager_v1*,
  pointer_constraints: wlr_pointer_constraints_v1*,
  pointer_gestures: wlr_pointer_gestures_v1*,
  primary_selection_device_manager: wlr_primary_selection_v1_device_manager*,
  relative_pointer_manager: wlr_relative_pointer_manager_v1*,
  security_context_manager_v1: wlr_security_context_manager_v1*,
  server_decoration_manager: wlr_server_decoration_manager*,
  tablet_v2: wlr_tablet_manager_v2*,
  text_input: wlr_text_input_manager_v3*,
  virtual_keyboard: wlr_virtual_keyboard_manager_v1*,
  virtual_pointer: wlr_virtual_pointer_manager_v1*,
  xdg_activation_v1: wlr_xdg_activation_v1*,
  xdg_decoration_manager: wlr_xdg_decoration_manager_v1*,
  xdg_shell: wlr_xdg_shell*,
  new_output: wl_listener,
  backend_destroy: wl_listener,
  layout_change: wl_listener,
  xdg_shell_toplevel: wl_listener,
  layer_shell_surface: wl_listener,
  xdg_toplevel_decoration: wl_listener,
  virtual_keyboard_new: wl_listener,
  virtual_pointer_new: wl_listener,
  pointer_constraint: wl_listener,
  output_manager_apply: wl_listener,
  output_manager_test: wl_listener,
  output_power_manager_set_mode: wl_listener,
  xdg_activation_v1_request_activate: wl_listener,
  xcursor_manager: wlr_xcursor_manager*,
  xwayland: wlr_xwayland*,
  xwayland_surface: wl_listener,
  xwayland_ready: wl_listener,
  xwayland_remove_startup_id: wl_listener,
  xwayland_atoms: None,
  maximize: gboolean,
  scale_to_fit: gboolean,
  input_output_map: GHashTable*
}

Desktop singleton.

[]

Ancestors

[]

Constructors

phoc_desktop_new
No description available.

[]

Instance methods

phoc_desktop_destroy_xwayland
No description available.

phoc_desktop_find_output

Find an output by make, model and serial.

phoc_desktop_find_output_by_name

Find an output by it’s name.

phoc_desktop_for_each_view

Invokes view_iter on all views passing in user_data.

phoc_desktop_get_auto_maximize
No description available.

phoc_desktop_get_builtin_output

Get the built-in output. This assumes there’s only one and returns the first.

phoc_desktop_get_draggable_layer_surface

Returns a draggable layer surface if layer_surface is configured as such. NULL otherwise.

phoc_desktop_get_enable_animations

Checks whether the user wants animations to be enabled.

phoc_desktop_get_gtk_shell

Gets a handler of the gtk_shell Wayland protocol implementations.

phoc_desktop_get_layer_surface_stacks

Get the list of currently known stacks.

phoc_desktop_get_phosh_private

Gets a handler of the phosh-private Wayland protocol implementations.

phoc_desktop_get_scale_to_fit
No description available.

phoc_desktop_get_view_by_index

Gets the view at the given position in the queue. If the view is not part of that desktop NULL is returned.

phoc_desktop_get_views

Get the current views. Don’t manipulate the queue directly. This is only meant for reading.

phoc_desktop_has_views

Check whether the desktop has any views.

phoc_desktop_insert_view

Insert the view into the queue of views. New views are inserted at the front so they appear on top of other views.

phoc_desktop_is_privileged_protocol
No description available.

phoc_desktop_layer_surface_at

Looks up the surface at lx,ly and returns the topmost surface at that position if it is a layersurface, NULL otherwise.

phoc_desktop_layout_get_output

Get the output at layout coordinates.

phoc_desktop_move_view_to_top

Move the given view to the front of the view stack meaning that it will be rendered on top of other views (but below move-to-top views if view isn’t a move-to-top-view itself).

phoc_desktop_notify_activity
No description available.

phoc_desktop_remove_view

Removes a view from the queue of views.

phoc_desktop_set_auto_maximize

Turn auto maximization of toplevels on (TRUE) or off (FALSE).

phoc_desktop_set_scale_to_fit

Turn auto scaling of all oversized toplevels on (TRUE) or off (FALSE).

phoc_desktop_set_view_always_on_top

If on_top is TRUE marks the view (and it’s children) as being placed on top of other views. If on_top if FALSE the view will be placed normally.

phoc_desktop_setup_xwayland
No description available.

phoc_desktop_view_check_visibility

Checks if a view is currently visible. This is currently very pessimistic and only assumes that the view is not visible when we’re certain it is covered by other windows.

phoc_desktop_wlr_surface_at

Looks up the surface at lx,ly and returns the topmost surface at that position (if any) and the surface-local coordinates of sx,sy on that surface.

Methods inherited from GObject (43)
[]

Properties

Phoc.Desktop:scale-to-fit

If TRUE all surfaces will be scaled down to fit the screen.

[]

Signals

Signals inherited from GObject (1)

Class structure