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

Xputty - the main struct.
It should be declared before any other call to a Xputty function.
Xputty store a pointer in the childlist, to any Widget_t related to this instance of libxputty.
The first created Widget_t is the toplevel window.
When the toplevel window call destroy_widget(), Xputty call destroy_widget() for all remaining Widget_t's in the main childlist.
So any allocated memory should be released before the toplevel window finaly close. More...

#include <xputty.h>

Collaboration diagram for Xputty:

Data Fields

Childlist_tchildlist
 
Display * dpy
 
XColor_tcolor_scheme
 
Widget_thold_grab
 
bool run
 
int small_font
 
int normal_font
 
int big_font
 

Detailed Description

Xputty - the main struct.
It should be declared before any other call to a Xputty function.
Xputty store a pointer in the childlist, to any Widget_t related to this instance of libxputty.
The first created Widget_t is the toplevel window.
When the toplevel window call destroy_widget(), Xputty call destroy_widget() for all remaining Widget_t's in the main childlist.
So any allocated memory should be released before the toplevel window finaly close.

Parameters
*childlist- pointer to the main childlist
*dpy- pointer to the display in use
run- bool to quit the main loop
*color_scheme- theming scheme for all Widget_t
*hold_grab- pointer to a modal Widget_t

Definition at line 177 of file xputty.h.

Field Documentation

◆ big_font

int Xputty::big_font

big fontsize for all Widget_t

Definition at line 193 of file xputty.h.

◆ childlist

Childlist_t* Xputty::childlist

pointer to the main childlist

Definition at line 179 of file xputty.h.

◆ color_scheme

XColor_t* Xputty::color_scheme

theming scheme for all Widget_t

Definition at line 183 of file xputty.h.

◆ dpy

Display* Xputty::dpy

pointer to the display in use

Definition at line 181 of file xputty.h.

◆ hold_grab

Widget_t* Xputty::hold_grab

pointer to a modal Widget_t

Definition at line 185 of file xputty.h.

◆ normal_font

int Xputty::normal_font

normal fontsize for all Widget_t

Definition at line 191 of file xputty.h.

◆ run

bool Xputty::run

bool to quit the main loop

Definition at line 187 of file xputty.h.

◆ small_font

int Xputty::small_font

small fontsize for all Widget_t

Definition at line 189 of file xputty.h.


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