VSF Documented
Macros | Functions
vsf_tgui_dynamic.h File Reference

Go to the source code of this file.

Macros

#define VSF_TGUI_HEAP_HEADER   "service/heap/vsf_heap.h"
 
#define vsf_tgui_malloc(__size)   vsf_heap_malloc(__size)
 
#define vsf_tgui_free(__ptr)   vsf_heap_free(__ptr)
 
#define vsf_tgui_control_set_width(__control, __w)
 
#define vsf_tgui_control_set_height(__control, __h)
 
#define vsf_tui_control_set_size(__control, __w, __h)
 
#define vsf_tgui_control_set_margin(__control, __left, __top, __right, __bottom)
 
#define vsf_control_set_msghandler(__control, __handler, __num)
 
#define vsf_tgui_container_set_type2(__container, __type, __autosize)
 
#define vsf_tgui_container_set_type1(__container, __type)    vsf_tgui_container_set_type2((__container), (__type), true)
 
#define vsf_tgui_container_set_type(__container, ...)    __PLOOC_EVAL(vsf_tgui_container_set_type, __VA_ARGS__)((__container), ##__VA_ARGS__)
 
#define vsf_tgui_button_set_text_static(__button, __text)    vsf_tgui_label_set_text_static((vsf_tgui_label_t *)(__button), (__text))
 
#define vsf_tgui_list_get_child(__list)    ((vsf_tgui_control_t *) (((vsf_tgui_container_t *)((__list)->node_ptr))->node_ptr) )
 

Functions

vsf_tgui_control_tvsf_tgui_control_new (vsf_tree_msg_node_id_t id, char *name)
 
void vsf_tgui_control_destroy (vsf_tgui_control_t *control)
 
void vsf_tgui_control_add (vsf_tgui_container_t *parent, vsf_tgui_control_t *control_prev, vsf_tgui_control_t *control)
 
void vsf_tgui_control_remove (vsf_tgui_container_t *parent, vsf_tgui_control_t *control)
 
void vsf_tgui_control_sync (vsf_tgui_container_t *parent, vsf_tgui_control_t *control)
 
vsf_tgui_container_t * vsf_tgui_container_new (char *name)
 
vsf_tgui_label_t * vsf_tgui_label_new (char *name)
 
void vsf_tgui_label_set_text_static (vsf_tgui_label_t *label, const char *text)
 
const char * vsf_tgui_label_get_text (vsf_tgui_label_t *label)
 
vsf_tgui_button_t * vsf_tgui_button_new (char *name)
 

Macro Definition Documentation

◆ VSF_TGUI_HEAP_HEADER

#define VSF_TGUI_HEAP_HEADER   "service/heap/vsf_heap.h"

◆ vsf_tgui_malloc

#define vsf_tgui_malloc (   __size)    vsf_heap_malloc(__size)

◆ vsf_tgui_free

#define vsf_tgui_free (   __ptr)    vsf_heap_free(__ptr)

◆ vsf_tgui_control_set_width

#define vsf_tgui_control_set_width (   __control,
  __w 
)
Value:
do { \
(__control)->tSize.iWidth = (__w); \
} while(0)

◆ vsf_tgui_control_set_height

#define vsf_tgui_control_set_height (   __control,
  __h 
)
Value:
do { \
(__control)->tSize.iHeight = (__h); \
} while(0)

◆ vsf_tui_control_set_size

#define vsf_tui_control_set_size (   __control,
  __w,
  __h 
)
Value:
do { \
(__control)->tSize.iWidth = (__w); \
(__control)->tSize.iHeight = (__h); \
} while(0)

◆ vsf_tgui_control_set_margin

#define vsf_tgui_control_set_margin (   __control,
  __left,
  __top,
  __right,
  __bottom 
)
Value:
do { \
(__control)->tMargin.chLeft = (__left); \
(__control)->tMargin.chTop = (__top); \
(__control)->tMargin.chRight = (__right); \
(__control)->tMargin.chBottom = (__bottom); \
} while(0)

◆ vsf_control_set_msghandler

#define vsf_control_set_msghandler (   __control,
  __handler,
  __num 
)
Value:
do { \
(__control)->tMSGMap.ptItems = (__handler); \
(__control)->tMSGMap.chCount = (__num); \
} while (0)

◆ vsf_tgui_container_set_type2

#define vsf_tgui_container_set_type2 (   __container,
  __type,
  __autosize 
)
Value:
do { \
(__container)->ContainerAttribute.u5Type = (__type), \
(__container)->ContainerAttribute.bIsAutoSize = (__autosize); \
} while(0)
#define __type
Definition hci_transport_aic8800.c:553

◆ vsf_tgui_container_set_type1

#define vsf_tgui_container_set_type1 (   __container,
  __type 
)     vsf_tgui_container_set_type2((__container), (__type), true)

◆ vsf_tgui_container_set_type

#define vsf_tgui_container_set_type (   __container,
  ... 
)     __PLOOC_EVAL(vsf_tgui_container_set_type, __VA_ARGS__)((__container), ##__VA_ARGS__)

◆ vsf_tgui_button_set_text_static

#define vsf_tgui_button_set_text_static (   __button,
  __text 
)     vsf_tgui_label_set_text_static((vsf_tgui_label_t *)(__button), (__text))

◆ vsf_tgui_list_get_child

#define vsf_tgui_list_get_child (   __list)     ((vsf_tgui_control_t *) (((vsf_tgui_container_t *)((__list)->node_ptr))->node_ptr) )

Function Documentation

◆ vsf_tgui_control_new()

vsf_tgui_control_t * vsf_tgui_control_new ( vsf_tree_msg_node_id_t  id,
char *  name 
)
extern

◆ vsf_tgui_control_destroy()

void vsf_tgui_control_destroy ( vsf_tgui_control_t control)
extern

◆ vsf_tgui_control_add()

void vsf_tgui_control_add ( vsf_tgui_container_t *  parent,
vsf_tgui_control_t control_prev,
vsf_tgui_control_t control 
)
extern

◆ vsf_tgui_control_remove()

void vsf_tgui_control_remove ( vsf_tgui_container_t *  parent,
vsf_tgui_control_t control 
)
extern

◆ vsf_tgui_control_sync()

void vsf_tgui_control_sync ( vsf_tgui_container_t *  parent,
vsf_tgui_control_t control 
)
extern

◆ vsf_tgui_container_new()

vsf_tgui_container_t * vsf_tgui_container_new ( char *  name)
extern

◆ vsf_tgui_label_new()

vsf_tgui_label_t * vsf_tgui_label_new ( char *  name)
extern

◆ vsf_tgui_label_set_text_static()

void vsf_tgui_label_set_text_static ( vsf_tgui_label_t *  label,
const char *  text 
)
extern

◆ vsf_tgui_label_get_text()

const char * vsf_tgui_label_get_text ( vsf_tgui_label_t *  label)
extern

◆ vsf_tgui_button_new()

vsf_tgui_button_t * vsf_tgui_button_new ( char *  name)
extern