Class
PhocDesktop
Description [src]
class Phoc.Desktop : GObject.Object {
parent: GObject,
views: wl_list,
outputs: wl_list,
config: PhocConfig*,
layout: wlr_output_layout*,
xdg_shell: wlr_xdg_shell*,
gamma_control_manager_v1: wlr_gamma_control_manager_v1*,
export_dmabuf_manager_v1: wlr_export_dmabuf_manager_v1*,
server_decoration_manager: wlr_server_decoration_manager*,
xdg_decoration_manager: wlr_xdg_decoration_manager_v1*,
primary_selection_device_manager: wlr_primary_selection_v1_device_manager*,
idle: wlr_idle*,
input_inhibit: wlr_input_inhibit_manager*,
layer_shell: wlr_layer_shell_v1*,
input_method: wlr_input_method_manager_v2*,
text_input: wlr_text_input_manager_v3*,
virtual_keyboard: wlr_virtual_keyboard_manager_v1*,
virtual_pointer: wlr_virtual_pointer_manager_v1*,
screencopy: wlr_screencopy_manager_v1*,
tablet_v2: wlr_tablet_manager_v2*,
pointer_constraints: wlr_pointer_constraints_v1*,
presentation: wlr_presentation*,
foreign_toplevel_manager_v1: wlr_foreign_toplevel_manager_v1*,
relative_pointer_manager: wlr_relative_pointer_manager_v1*,
pointer_gestures: wlr_pointer_gestures_v1*,
output_manager_v1: wlr_output_manager_v1*,
output_power_manager_v1: wlr_output_power_manager_v1*,
xdg_activation_v1: wlr_xdg_activation_v1*,
new_output: wl_listener,
layout_change: wl_listener,
xdg_shell_surface: wl_listener,
layer_shell_surface: wl_listener,
xdg_toplevel_decoration: wl_listener,
input_inhibit_activate: wl_listener,
input_inhibit_deactivate: 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.
Instance methods
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_phosh_private
Gets a handler of the phosh-private Wayland protocol implementations.
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_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.
phoc_desktop_toggle_output_blank
Blank or unblank all outputs depending on the current state. Brings all outputs into consistent state (either all blanked or all enabled).
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.