rtkprivate.h File Reference

#include <sys/types.h>

Go to the source code of this file.


Defines

#define TRUE   1
#define FALSE   0
#define PRINT_ERR(m)
#define PRINT_ERR1(m, a)
#define PRINT_ERR2(m, a, b)
#define PRINT_WARN(m)
#define PRINT_WARN1(m, a)
#define PRINT_WARN2(m, a, b)
#define PRINT_WARN3(m, a, b, c)
#define PRINT_MSG(m)   printf("stg_rtk msg : %s :\n "m"\n", __FILE__)
#define PRINT_MSG1(m, a)   printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a)
#define PRINT_MSG2(m, a, b)   printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a, b)
#define PRINT_DEBUG(m)
#define PRINT_DEBUG1(m, a)
#define PRINT_DEBUG2(m, a, b)
#define PRINT_DEBUG3(m, a, b, c)
#define STK_LIST_APPEND(head, item)
#define STK_LIST_REMOVE(head, item)
#define STK_LIST_APPENDX(head, list, item)
#define STK_LIST_REMOVEX(head, list, item)

Functions

void stg_rtk_canvas_add_fig (stg_rtk_canvas_t *canvas, stg_rtk_fig_t *fig)
void stg_rtk_canvas_del_fig (stg_rtk_canvas_t *canvas, stg_rtk_fig_t *fig)
void stg_rtk_canvas_calc (stg_rtk_canvas_t *canvas)
uint16_t * stg_rtk_canvas_get_image_rgb16 (stg_rtk_canvas_t *canvas, int sizex, int sizey)
uint8_t * stg_rtk_canvas_get_image_rgb24 (stg_rtk_canvas_t *canvas)
void stg_rtk_fig_dirty (stg_rtk_fig_t *fig)
void stg_rtk_fig_calc (stg_rtk_fig_t *fig)
void stg_rtk_fig_render (stg_rtk_fig_t *fig)
void stg_rtk_fig_render_xfig (stg_rtk_fig_t *fig)
int stg_rtk_fig_hittest (stg_rtk_fig_t *fig, int dx, int dy)
void stg_rtk_fig_on_mouse (stg_rtk_fig_t *fig, int event, int mode)

Define Documentation

#define TRUE   1
 

#define FALSE   0
 

#define PRINT_ERR  ) 
 

Value:

printf("\rstg_rtk error : %s %s\n  "m"\n", \
                                    __FILE__, __FUNCTION__)

#define PRINT_ERR1 m,
 ) 
 

Value:

printf("\rstg_rtk error : %s %s\n  "m"\n", \
                                    __FILE__, __FUNCTION__, a)

#define PRINT_ERR2 m,
a,
 ) 
 

Value:

printf("\rstg_rtk error : %s %s\n  "m"\n", \
                                    __FILE__, __FUNCTION__, a, b)

#define PRINT_WARN  ) 
 

Value:

printf("\rstg_rtk warning : %s %s\n  "m"\n", \
                                     __FILE__, __FUNCTION__)

#define PRINT_WARN1 m,
 ) 
 

Value:

printf("\rstg_rtk warning : %s %s\n  "m"\n", \
                                     __FILE__, __FUNCTION__, a)

#define PRINT_WARN2 m,
a,
 ) 
 

Value:

printf("\rstg_rtk warning : %s %s\n  "m"\n", \
                                     __FILE__, __FUNCTION__, a, b)

#define PRINT_WARN3 m,
a,
b,
 ) 
 

Value:

printf("\rstg_rtk warning : %s %s\n  "m"\n", \
                                     __FILE__, __FUNCTION__, a, b, c)

#define PRINT_MSG  )     printf("stg_rtk msg : %s :\n "m"\n", __FILE__)
 

#define PRINT_MSG1 m,
 )     printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a)
 

#define PRINT_MSG2 m,
a,
 )     printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a, b)
 

#define PRINT_DEBUG  ) 
 

#define PRINT_DEBUG1 m,
 ) 
 

#define PRINT_DEBUG2 m,
a,
 ) 
 

#define PRINT_DEBUG3 m,
a,
b,
 ) 
 

#define STK_LIST_APPEND head,
item   ) 
 

Value:

item->prev = head;\
item->next = NULL;\
if (head == NULL)\
    head = item;\
else\
{\
    while (item->prev->next)\
       item->prev = item->prev->next;\
    item->prev->next = item;\
}

#define STK_LIST_REMOVE head,
item   ) 
 

Value:

if (item->prev)\
    item->prev->next = item->next;\
if (item->next)\
    item->next->prev = item->prev;\
if (item == head)\
    head = item->next;

#define STK_LIST_APPENDX head,
list,
item   ) 
 

Value:

item->list##_##prev = head;\
item->list##_##next = NULL;\
if (head == NULL)\
    head = item;\
else\
{\
    while (item->list##_##prev->list##_##next)\
       item->list##_##prev = item->list##_##prev->list##_##next;\
    item->list##_##prev->list##_##next = item;\
}

#define STK_LIST_REMOVEX head,
list,
item   ) 
 

Value:

if (item->list##_##prev)\
    item->list##_##prev->list##_##next = item->list##_##next;\
if (item->list##_##next)\
    item->list##_##next->list##_##prev = item->list##_##prev;\
if (item == head)\
    head = item->list##_##next;

Function Documentation

void stg_rtk_canvas_add_fig stg_rtk_canvas_t canvas,
stg_rtk_fig_t fig
 

void stg_rtk_canvas_del_fig stg_rtk_canvas_t canvas,
stg_rtk_fig_t fig
 

void stg_rtk_canvas_calc stg_rtk_canvas_t canvas  ) 
 

uint16_t* stg_rtk_canvas_get_image_rgb16 stg_rtk_canvas_t canvas,
int  sizex,
int  sizey
 

uint8_t* stg_rtk_canvas_get_image_rgb24 stg_rtk_canvas_t canvas  ) 
 

void stg_rtk_fig_dirty stg_rtk_fig_t fig  ) 
 

void stg_rtk_fig_calc stg_rtk_fig_t fig  ) 
 

void stg_rtk_fig_render stg_rtk_fig_t fig  ) 
 

void stg_rtk_fig_render_xfig stg_rtk_fig_t fig  ) 
 

int stg_rtk_fig_hittest stg_rtk_fig_t fig,
int  dx,
int  dy
 

void stg_rtk_fig_on_mouse stg_rtk_fig_t fig,
int  event,
int  mode
 


Generated on Thu Aug 11 13:08:10 2005 for Stage by  doxygen 1.4.0