88 Assertion(nframes < MAX_BMAPS_PER_GADGET,
"Too many frames specified (%d), must be less than MAX_BMAPS_PER_GADGET", nframes);
90 for(idx=start_frame; idx<nframes; idx++){
95 num_digits = (idx < 10) ? 1 : (idx < 100) ? 2 : (idx < 1000) ? 3 : 4;
99 for(s_idx=0; s_idx<(4-num_digits); s_idx++){
121 if((first_frame >= 0) && (
m_num_frames <= MAX_BMAPS_PER_GADGET)){
189 if ( _x != -1 )
x = _x;
190 if ( _y != -1 )
y = _y;
191 if ( _w != -1 )
w = _w;
192 if ( _h != -1 )
h = _h;
380 if ( mask_data == NULL ) {
381 nprintf((
"Warning",
"No mask defined, but control is linked to hotspot\n"));
394 pixel_val = *(mask_data +
offset);
590 UI_GADGET *eldest_sibling, *youngest_sibling;
593 youngest_sibling = eldest_sibling->
prev;
595 next = eldest_sibling;
596 prev = youngest_sibling;
598 eldest_sibling->
prev =
this;
599 youngest_sibling->
next =
this;
609 UI_GADGET *eldest_sibling, *youngest_sibling;
612 youngest_sibling = eldest_sibling->
prev;
614 next = eldest_sibling;
617 eldest_sibling->
prev =
this;
618 youngest_sibling->
next =
this;
GLfloat GLfloat GLfloat GLfloat h
virtual void process(int focus=0)
int mouse_captured(UI_GADGET *gadget=NULL)
int bmap_ids[MAX_BMAPS_PER_GADGET]
void base_create(UI_WINDOW *wnd, int _kind, int _x, int _y, int _w, int _h)
#define Assertion(expr, msg,...)
void set_callback(void(*_user_function)(void))
int bm_load_animation(const char *real_filename, int *nframes, int *fps, int *keyframe, int can_drop_frames, int dir_type)
Loads a bitmap sequance so we can draw with it.
int set_bmaps(char *ani_filename, int nframes=3, int start_frame=1)
UI_GADGET * mouse_captured_gadget
void get_dimensions(int *_x, int *_y, int *_w, int *_h)
sprintf(buf,"(%f,%f,%f)", v3->xyz.x, v3->xyz.y, v3->xyz.z)
void remove_from_family()
#define MAX_BMAPS_PER_GADGET
GLint GLint GLint GLint GLint x
int is_mouse_on_children()
void set_hotkey(int keycode)
int bm_load(const char *real_filename)
Loads a bitmap so we can draw with it later.
void update_dimensions(int _x, int _y, int _w, int _h)
void set_parent(UI_GADGET *_parent)
void link_hotspot(int num)
ubyte * get_mask_data(int *w_md, int *h_md)
GLubyte GLubyte GLubyte GLubyte w
void capture_mouse(UI_GADGET *gadget=NULL)
void start_drag_with_children()
void drag_with_children(int dx, int dy)
void get_mouse_pos(int *xx, int *yy)
void stop_drag_with_children()
void(* user_function)(void)
int bm_unload(int handle, int clear_render_targets, bool nodebug)
Unloads a bitmap's data, but not the bitmap info.
UI_GADGET * selected_gadget