|
libxputty
0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
|
|
Go to the documentation of this file.
27 assert(childlist->
childs != NULL);
30 childlist->
size =
sizeof(childlist);
33 for(;i<childlist->
cap;i++) {
34 childlist->
childs[i] = NULL;
39 if(childlist) free(childlist->
childs);
44 if (childlist->
cap < childlist->
elem+2) {
50 Atom WM_DELETE_WINDOW;
51 WM_DELETE_WINDOW = XInternAtom(child->
app->
dpy,
"WM_DELETE_WINDOW", True);
52 XSetWMProtocols(child->
app->
dpy, child->
widget, &WM_DELETE_WINDOW, 1);
58 if (!childlist)
return;
61 childlist->
childs[it] = NULL;
64 for(;i<childlist->
elem;i++) {
73 for(;i<childlist->
elem;i++) {
74 if(childlist->
childs[i] == child) {
82 int i = childlist->
elem-1;
92 return childlist->
elem;
void childlist_add_child(Childlist_t *childlist, Widget_t *child)
childlist_add_child - internal use to add a child to the Childlist_t You usually didn't need to cal...
void _childlist_add_elem(Childlist_t *childlist)
_childlist_add_elem - internal use to reallocate the childlist array to new size You didn't need to...
void childlist_init(Childlist_t *childlist)
childlist_init - internal use to allocate the array to min size You usually didn't need to call thi...
void childlist_remove_child(Childlist_t *childlist, Widget_t *child)
childlist_remove_child - internal use to remove a child from the childlist You usually didn't need ...
#define debug_print(...)
debug_print - print out state messages when compiled with the -DDEBUG flag
int childlist_find_widget(Childlist_t *childlist, Window child_window)
childlist_find_widget - find a child Widget_t in a the childlist by given the Window id
Childlist_t - struct to hold a Widget_t child list Xputty main holds a list of any Widget_t created...
int childlist_has_child(Childlist_t *childlist)
childlist_has_child - check if a Widget_t Childlist_t contain a child
void childlist_destroy(Childlist_t *childlist)
childlist_destroy - internal use to free the Childlist_t You usually didn't need to call this
int childlist_find_child(Childlist_t *childlist, Widget_t *child)
childlist_find_child - find a child in a the Childlist_t this could be sued to check if a Widget_t is...