Macros

The following macros have been defined to manipulate drawing elements:

#define GET_IMAGE_HIDDEN(element)(element->image_flags & IMAGE_HIDDEN)

#define SHOW_IMAGE(element)(element->image_flags &= ~IMAGE_HIDDEN)

#define HIDE_IMAGE(element)(element->image_flags |= IMAGE_HIDDEN)

#define GET_ON_SCREEN(element)(element->image_flags & IMAGE_ON_SCREEN)

#define SET_ON_SCREEN(element)element->image_flags |= IMAGE_ON_SCREEN

#define SET_OFF_SCREEN(element)element->image_flags &= ~IMAGE_ON_SCREEN

The following macros have been defined to manipulate string elements:

#define STR_UNSEL(ELEMENT)ELEMENT->sel_end = -1; ELEMENT->sel_str = -1;

#define STR_SEL(ELEMENT, STR, END)ELEMENT->sel_end = END; ELEMENT->sel_str = STR;

#define IS_STR_SEL(ELEMENT)(ELEMENT->sel_end != -1 && ELEMENT->sel_str != -1)