Class

PhocViewChild

since: 0

Description [src]

class Phoc.ViewChild : GObject.Object
{
  view: PhocView*,
  parent: PhocViewChild*,
  children: GSList*,
  wlr_surface: wlr_surface*,
  link: wl_list,
  mapped: _Bool,
  map: wl_listener,
  unmap: wl_listener,
  commit: wl_listener,
  new_subsurface: wl_listener
}

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

Available since: 0

Ancestors

Instance methods

phoc_view_child_apply_damage

This is the equivalent of phoc_view_apply_damage but for PhocViewChild.

since: 0

phoc_view_child_damage_whole

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

since: 0

phoc_view_child_get_pos
No description available.

since: 0

phoc_view_child_get_view

Get the view this child belongs to.

since: 0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Phoc.ViewChild:view
No description available.

since: 0

Phoc.ViewChild:wlr-surface
No description available.

since: 0

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.

unstable since: 2.0

Class structure

struct PhocViewChildClass {
  GObjectClass parent_class;
  void (* map) (
    PhocViewChild* self
  );
  void (* unmap) (
    PhocViewChild* self
  );
  void (* get_pos) (
    PhocViewChild* self,
    int* sx,
    int* sy
  );
  
}
No description available.
Class members
parent_class: GObjectClass

The object class structure needs to be the first element in the widget class structure in order for the class mechanism to work correctly. This allows a PhocViewClass pointer to be cast to a GObjectClass pointer.

map: void (* map) ( PhocViewChild* self )

Invoked on map. Chain up to parent.

unmap: void (* unmap) ( PhocViewChild* self )

Invoked on unmap. Chain up to parent.

get_pos: void (* get_pos) ( PhocViewChild* self, int* sx, int* sy )

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

Virtual methods

Phoc.ViewChildClass.get_pos

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

since: 0

Phoc.ViewChildClass.map

Invoked on map. Chain up to parent.

since: 0

Phoc.ViewChildClass.unmap

Invoked on unmap. Chain up to parent.

since: 0