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

Widget_t - struct to hold the basic Widget_t info. More...

#include <xwidget.h>

Collaboration diagram for Widget_t:

Data Fields

Xputtyapp
 
Window widget
 
void * parent
 
void * parent_struct
 
vfunc event_callback
 
Func_t func
 
cairo_surface_t * surface
 
cairo_t * cr
 
cairo_surface_t * buffer
 
cairo_t * crb
 
cairo_surface_t * image
 
int data
 
long long flags
 
const char * label
 
char input_label [32]
 
Adjustment_tadj_x
 
Adjustment_tadj_y
 
Adjustment_tadj
 
Childlist_tchildlist
 
XIC xic
 
XIM xim
 
int state
 
int pos_x
 
int pos_y
 
int x
 
int y
 
int width
 
int height
 
Resize_t scale
 

Detailed Description

Widget_t - struct to hold the basic Widget_t info.

Parameters
*app- pointer to the main struct
widget- the X11 Window
*parent- pointer to the Parent Window or Widget_t
event_callback- the main XEvent callback
func- struct holding the event callbacks
*surface- pointer to the cairo xlib surface
*cr- pointer to the cairo xlib surface context
*buffer- pointer to the cairo buffer surface
*crb- pointer to the cairo buffer surface context
*image- pointer to the cairo image surface
data- int to hold user data
flags- unsigned int to hold Widget_t flags
*label- pointer to the widget label
input_label- char array the widget input label
state- int to hold the widget state
pos_x- mouse pointer x position on button press
pos_y- mouse pointer y position on button press
x- x position of Window on Parent
y- y position of Window on Parent
width- widget width
height- widget height
scale- struct used to resize child widgets
*adj_x- pointer to the x axis adjustment
*adj_y- pointer to the y axis adjustment
*adj- pointer to the adjustment in use
*childlist- pointer to Widget_t child list
xic- Locale and UTF 8 support interface
xim- Context to Locale and UTF 8 support

Definition at line 298 of file xwidget.h.

Field Documentation

◆ adj

Adjustment_t* Widget_t::adj

pointer to the adjustment in use

Definition at line 334 of file xwidget.h.

◆ adj_x

Adjustment_t* Widget_t::adj_x

pointer to the x axis adjustment

Definition at line 330 of file xwidget.h.

◆ adj_y

Adjustment_t* Widget_t::adj_y

pointer to the y axis adjustment

Definition at line 332 of file xwidget.h.

◆ app

Xputty* Widget_t::app

pointer to the main struct

Definition at line 300 of file xwidget.h.

◆ buffer

cairo_surface_t* Widget_t::buffer

pointer to the cairo buffer surface used for transparency

Definition at line 316 of file xwidget.h.

◆ childlist

Childlist_t* Widget_t::childlist

pointer to Widget_t child list

Definition at line 336 of file xwidget.h.

◆ cr

cairo_t* Widget_t::cr

pointer to the cairo xlib surface context

Definition at line 314 of file xwidget.h.

◆ crb

cairo_t* Widget_t::crb

pointer to the cairo buffer surface context

Definition at line 318 of file xwidget.h.

◆ data

int Widget_t::data

int to hold user data

Definition at line 322 of file xwidget.h.

◆ event_callback

vfunc Widget_t::event_callback

the main XEvent callback

Definition at line 308 of file xwidget.h.

◆ flags

long long Widget_t::flags

int to hold Widget_t flags

Definition at line 324 of file xwidget.h.

◆ func

Func_t Widget_t::func

struct holding the event callbacks

Definition at line 310 of file xwidget.h.

◆ height

int Widget_t::height

the widget size y-axis

Definition at line 354 of file xwidget.h.

◆ image

cairo_surface_t* Widget_t::image

pointer to the cairo image surface used to load a png

Definition at line 320 of file xwidget.h.

◆ input_label

char Widget_t::input_label[32]

char array to hold user input

Definition at line 328 of file xwidget.h.

◆ label

const char* Widget_t::label

pointer to the widget label

Definition at line 326 of file xwidget.h.

◆ parent

void* Widget_t::parent

pointer to the Parent Window or Widget_t

Definition at line 304 of file xwidget.h.

◆ parent_struct

void* Widget_t::parent_struct

pointer to the Parent struct

Definition at line 306 of file xwidget.h.

◆ pos_x

int Widget_t::pos_x

mouse pointer x position on button press

Definition at line 344 of file xwidget.h.

◆ pos_y

int Widget_t::pos_y

mouse pointer y position on button press

Definition at line 346 of file xwidget.h.

◆ scale

Resize_t Widget_t::scale

struct used to resize child widgets

Definition at line 356 of file xwidget.h.

◆ state

int Widget_t::state

int to hold the widget state default = 0

Definition at line 342 of file xwidget.h.

◆ surface

cairo_surface_t* Widget_t::surface

pointer to the cairo xlib surface

Definition at line 312 of file xwidget.h.

◆ widget

Window Widget_t::widget

the X11 newly created Window

Definition at line 302 of file xwidget.h.

◆ width

int Widget_t::width

the widget size x-axis

Definition at line 352 of file xwidget.h.

◆ x

int Widget_t::x

x position of Window related to the Parent

Definition at line 348 of file xwidget.h.

◆ xic

XIC Widget_t::xic

Locale and UTF 8 support

Definition at line 338 of file xwidget.h.

◆ xim

XIM Widget_t::xim

Context to Locale and UTF 8 support

Definition at line 340 of file xwidget.h.

◆ y

int Widget_t::y

y position of Window related to the Parent

Definition at line 350 of file xwidget.h.


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