Atrinik Client  4.0
Data Fields
widgetdata Struct Reference

#include <widget.h>

Data Fields

char * name
 
char * id
 
char bg [32]
 
int x
 
int y
 
int w
 
int h
 
int zoom_x
 
int zoom_y
 
uint8_t moveable
 
uint8_t show
 
uint8_t redraw
 
uint8_t unique
 
uint8_t required
 
uint8_t save
 
struct widgetdatanext
 
struct widgetdataprev
 
struct widgetdatainv
 
struct widgetdatainv_rev
 
struct widgetdataenv
 
struct widgetdatatype_next
 
struct widgetdatatype_prev
 
void * subwidget
 
SDL_Surface * surface
 
texture_structtexture
 
int texture_type
 
int type
 
int sub_type
 
uint8_t resizeable
 
int min_w
 
int min_h
 
int resize_flags
 
int disable_snapping
 
uint32_t showed_ticks
 
int hidden
 
double zoom
 Zoom factor of the widget.
 
void(* draw_func )(struct widgetdata *widget)
 
void(* background_func )(struct widgetdata *widget, int draw)
 
int(* event_func )(struct widgetdata *widget, SDL_Event *event)
 
void(* deinit_func )(struct widgetdata *widget)
 
int(* load_func )(struct widgetdata *widget, const char *keyword, const char *parameter)
 
void(* save_func )(struct widgetdata *widget, FILE *fp, const char *padding)
 
int(* menu_handle_func )(struct widgetdata *widget, SDL_Event *event)
 
void(* padding_func )(struct widgetdata *widget, int *x, int *y)
 

Detailed Description

Information about a widget.

Definition at line 37 of file widget.h.

Field Documentation

char widgetdata::bg[32]

Widget background; either a texture or a color using HTML notation.

Definition at line 45 of file widget.h.

struct widgetdata* widgetdata::env

The widget that contains this widget.

Definition at line 98 of file widget.h.

int widgetdata::h

Height.

Definition at line 57 of file widget.h.

int widgetdata::hidden

If 1, this widget will not be rendered, but any items it contains will still get processed and rendered.

Definition at line 140 of file widget.h.

char* widgetdata::id

Unique identifier.

Definition at line 42 of file widget.h.

struct widgetdata* widgetdata::inv

The first widget inside this widget.

Definition at line 92 of file widget.h.

struct widgetdata* widgetdata::inv_rev

The last widget inside this widget, used for traversing in reverse.

Definition at line 95 of file widget.h.

uint8_t widgetdata::moveable

Is the widget moveable?

Definition at line 66 of file widget.h.

char* widgetdata::name

Widget name.

Definition at line 39 of file widget.h.

struct widgetdata* widgetdata::next

Next widget.

Definition at line 86 of file widget.h.

struct widgetdata* widgetdata::prev

Previous widget.

Definition at line 89 of file widget.h.

uint8_t widgetdata::redraw

Widget must be redrawn.

Definition at line 72 of file widget.h.

uint8_t widgetdata::required

Must there be at least one of this widget type alive?

Definition at line 78 of file widget.h.

uint8_t widgetdata::save

If 0, will not save this widget.

Definition at line 83 of file widget.h.

uint8_t widgetdata::show

Is the widget visible?

Definition at line 69 of file widget.h.

int widgetdata::sub_type

The ID for the subtype of widget, used as a way of creating specific widgets.

Definition at line 122 of file widget.h.

void* widgetdata::subwidget

Used for custom attributes of a widget.

Definition at line 107 of file widget.h.

SDL_Surface* widgetdata::surface

Surface used to draw the widget.

Definition at line 110 of file widget.h.

texture_struct* widgetdata::texture

Texture used.

Definition at line 113 of file widget.h.

int widgetdata::type

The ID for the type of the widget.

Definition at line 118 of file widget.h.

struct widgetdata* widgetdata::type_next

Next widget of the same type.

Definition at line 101 of file widget.h.

struct widgetdata* widgetdata::type_prev

Previous widget of the same type.

Definition at line 104 of file widget.h.

uint8_t widgetdata::unique

Should this widget be the only one of its type?

Definition at line 75 of file widget.h.

int widgetdata::w

Width.

Definition at line 54 of file widget.h.

int widgetdata::x

X position.

Definition at line 48 of file widget.h.

int widgetdata::y

Y position.

Definition at line 51 of file widget.h.

int widgetdata::zoom_x

X position with zooming taken into account.

Definition at line 60 of file widget.h.

int widgetdata::zoom_y

Y position with zooming taken into account.

Definition at line 63 of file widget.h.


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