libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
Childlist_t Struct Reference

Childlist_t - struct to hold a Widget_t child list
Xputty main holds a list of any Widget_t created in relation to main
Any Event is only propagate to Widget_t's found in this list
Every Widget_t holds a list of Child Widget_t's they contain
When a Widget_t get destroy_widget() call, all of it's childs receive a destroy_widget() call before the Widget_t itself get destroyed
the expose_callback() (EXPOSE) and the configure_callback() (CONFIGURE) will be propagate to all childs in a Childlist_t. More...

#include <xchildlist.h>

Collaboration diagram for Childlist_t:

Data Fields

Widget_t ** childs
 
size_t size
 
int cap
 
int elem
 

Detailed Description

Childlist_t - struct to hold a Widget_t child list
Xputty main holds a list of any Widget_t created in relation to main
Any Event is only propagate to Widget_t's found in this list
Every Widget_t holds a list of Child Widget_t's they contain
When a Widget_t get destroy_widget() call, all of it's childs receive a destroy_widget() call before the Widget_t itself get destroyed
the expose_callback() (EXPOSE) and the configure_callback() (CONFIGURE) will be propagate to all childs in a Childlist_t.

Parameters
**childs- dynamic array to hold pointers to the childs
size- current size of array
cap- current capacity of the array
elem- current elements in the array

Definition at line 49 of file xchildlist.h.

Field Documentation

◆ cap

int Childlist_t::cap

current capacity of the array

Definition at line 55 of file xchildlist.h.

◆ childs

Widget_t** Childlist_t::childs

dynamic array to hold pointers to the childs

Definition at line 51 of file xchildlist.h.

◆ elem

int Childlist_t::elem

current elements in the array

Definition at line 57 of file xchildlist.h.

◆ size

size_t Childlist_t::size

current size of array

Definition at line 53 of file xchildlist.h.


The documentation for this struct was generated from the following file: