Class
PhocViewChild
Description [src]
class Phoc.ViewChild : GObject.Object
{
/* No available fields */
}
A child of a PhocView
, e.g. a PhocXdgPopup
or subsurface.
Since PhocViewChild
ren 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).
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
).
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.
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.