Class
PhocView
Descendants
Instance methods
phoc_view_activate
Performs the necessary steps to make the view itself appear activated
and send out the corresponding view related protocol events.
Note that this is not enough to actually focus the view for the user
See phoc_seat_set_focus_view()
.
phoc_view_add_bling
By adding a PhocBling
to a view you ensure that it gets rendered
just before the view if both the view and the bling are mapped.
phoc_view_arrange
Arrange a view based on it’s current state (floating, tiled or
maximized). If the view is neither tiled nor maximized and
center
is FALSE
this operation is a noop.
phoc_view_damage_whole
Add the damage of all surfaces belonging to a PhocView
to the
damaged screen area that needs repaint. This damages the whole
view
(possibly including server side window decorations) ignoring
any buffer damage.
phoc_view_flush_activation_token
Notifies that the compositor handled processing the activation token and clears it.
phoc_view_get_fullscreen_output
Gets the output a view is fullscreen on. Returns NULL
if
the view isn’t currently fullscreen.
phoc_view_get_maximized_box
Gets the “visible bounds” that a view will use on a given output when maximized.
phoc_view_get_output
If a view spans multiple output it returns the output that the center of the view is on.
phoc_view_restore
Put a view back into floating state while restoring it’s previous size and position.
phoc_view_set_activation_token
Sets the activation token that will be used when activate the view once mapped. It will be cleared once the view got activated.
phoc_view_set_decorated
Sets whether the compositor should draw server side decorations for this window.
phoc_view_set_fullscreen
If fullscreen
is true
. fullscreens a view on the given output or
(if output
is NULL
) on the view’s current output. Unfullscreens
the view
if fullscreens
is false
.
phoc_view_set_scale_to_fit
Turn auto scaling if oversized for this surface on (TRUE
) or off (FALSE
).
phoc_view_want_auto_maximize
Check if a view needs to be auto-maximized. In phoc’s auto-maximize mode only toplevels should be maximized.
Methods inherited from PhocChildRoot (6)
Signals
Phoc.View::surface-destroy
Derived classes emit this signal just before dropping their ref so reference holders can react.
Class structure
Virtual methods
Phoc.ViewClass.for_each_surface
This is used by PhocView
to iterate over a surface and it’s children.
The implementation is optional.
Phoc.ViewClass.get_geometry
This is called by PhocView
to get a views geometry.
The implementation is optional.
Phoc.ViewClass.get_wlr_surface_at
Get the wlr_surface at the give coordinates. The implementation is optional.
Phoc.ViewClass.move
This is called by PhocView
to move a view to a new position.
The implementation is optional.
Phoc.ViewClass.set_suspended
This is called by PhocView
to indicate that the view is suspended
The implementation is optional.
Phoc.ViewClass.want_auto_maximize
Check if a view needs to be auto-maximized. In phoc’s auto-maximize mode only toplevels should be maximized.