Class

PhocViewChild

[]

Description [src]

class Phoc.ViewChild : GObject.Object
{
  /* No available fields */
}

A child of a PhocView, e.g. a PhocXdgPopup or subsurface.

Since PhocViewChildren are created from toplevels or other children they add themselves to the toplevels list of children upon construction and remove themselves when their last ref is dropped (either via subsurface / popup’s handle_destroy or when the view disposes frees the list of its children).

[]

Ancestors

[]

Instance methods

phoc_view_child_apply_damage

This is the equivalent of phoc_view_apply_damage but for PhocViewChild.

phoc_view_child_damage_whole

This is the equivalent of phoc_view_damage_whole() but for PhocViewChild.

phoc_view_child_get_parent

Get the view’s parent (if any). The parent is either a PhocViewChild or NULL (in that case self is a direct child of it’s view).

phoc_view_child_get_pos
No description available.

phoc_view_child_get_root

Get the root of the tree this child belongs to.

phoc_view_child_get_wlr_surface

Get the wlr_surface associated with this view child.

phoc_view_child_set_mapped

Sets whether the view child is currently mapped.

Methods inherited from GObject (43)
[]

Properties

Phoc.ViewChild:child-root
No description available.

Phoc.ViewChild:wlr-surface
No description available.

[]

Signals

Signals inherited from GObject (1)

Class structure

[]

Virtual methods

Phoc.ViewChildClass.get_pos

Get the child’s position relative to it’s parent.

Phoc.ViewChildClass.map

Invoked on map. Chain up to parent.

Phoc.ViewChildClass.unmap

Invoked on unmap. Chain up to parent.