|
FS2_Open
Open source remastering of the Freespace 2 engine
|
#include <ui.h>
Public Member Functions | |
| UI_GADGET () | |
| virtual | ~UI_GADGET () |
| void | base_create (UI_WINDOW *wnd, int _kind, int _x, int _y, int _w, int _h) |
| virtual void | draw () |
| void | set_focus () |
| void | clear_focus () |
| int | has_focus () |
| void | set_hotkey (int keycode) |
| void | set_callback (void(*_user_function)(void)) |
| void | disable () |
| void | enable (int n=1) |
| void | capture_mouse () |
| int | mouse_captured (UI_GADGET *gadget=NULL) |
| int | disabled () |
| int | enabled () |
| virtual void | hide (int n) |
| virtual void | hide () |
| virtual void | unhide () |
| void | update_dimensions (int _x, int _y, int _w, int _h) |
| void | get_dimensions (int *_x, int *_y, int *_w, int *_h) |
| int | is_mouse_on () |
| void | get_mouse_pos (int *xx, int *yy) |
| void | link_hotspot (int num) |
| int | get_hotspot () |
| int | bmaps_used () |
| int | set_bmaps (char *ani_filename, int nframes=3, int start_frame=1) |
| void | reset () |
| virtual int | is_hidden () |
Public Attributes | |
| int | bmap_ids [MAX_BMAPS_PER_GADGET] |
Protected Member Functions | |
| void | drag_with_children (int dx, int dy) |
| void | start_drag_with_children () |
| void | stop_drag_with_children () |
| int | is_mouse_on_children () |
| void | remove_from_family () |
| void | set_parent (UI_GADGET *_parent) |
| UI_GADGET * | get_next () |
| UI_GADGET * | get_prev () |
| virtual void | process (int focus=0) |
| virtual void | destroy () |
| int | check_move () |
Protected Attributes | |
| char * | bm_filename |
| int | kind |
| int | hotkey |
| int | x |
| int | y |
| int | w |
| int | h |
| int | m_flags |
| void(* | user_function )(void) |
| int | disabled_flag |
| int | base_dragging |
| int | base_drag_x |
| int | base_drag_y |
| int | base_start_x |
| int | base_start_y |
| int | hidden |
| int | linked_to_hotspot |
| int | hotspot_num |
| int | uses_bmaps |
| int | m_num_frames |
| UI_GADGET * | parent |
| UI_GADGET * | children |
| UI_GADGET * | prev |
| UI_GADGET * | next |
| UI_WINDOW * | my_wnd |
Friends | |
| class | UI_WINDOW |
| class | UI_BUTTON |
| class | UI_KEYTRAP |
| class | UI_CHECKBOX |
| class | UI_RADIO |
| class | UI_SCROLLBAR |
| class | UI_LISTBOX |
| class | UI_INPUTBOX |
| class | UI_SLIDER2 |
| class | UI_DOT_SLIDER |
| class | UI_DOT_SLIDER_NEW |
| UI_GADGET::UI_GADGET | ( | ) |
Definition at line 19 of file gadget.cpp.
|
virtual |
Definition at line 25 of file gadget.cpp.
Definition at line 244 of file gadget.cpp.
| void UI_GADGET::capture_mouse | ( | ) |
Definition at line 225 of file gadget.cpp.
|
protected |
Definition at line 510 of file gadget.cpp.
| void UI_GADGET::clear_focus | ( | ) |
Definition at line 328 of file gadget.cpp.
|
protectedvirtual |
Reimplemented in UI_DOT_SLIDER.
Definition at line 160 of file gadget.cpp.
| void UI_GADGET::disable | ( | ) |
Definition at line 432 of file gadget.cpp.
| int UI_GADGET::disabled | ( | ) |
Definition at line 447 of file gadget.cpp.
Definition at line 459 of file gadget.cpp.
|
virtual |
Reimplemented in UI_DOT_SLIDER_NEW, UI_DOT_SLIDER, and UI_BUTTON.
Definition at line 139 of file gadget.cpp.
Definition at line 440 of file gadget.cpp.
| int UI_GADGET::enabled | ( | ) |
Definition at line 454 of file gadget.cpp.
Definition at line 195 of file gadget.cpp.
| int UI_GADGET::get_hotspot | ( | ) |
Definition at line 29 of file gadget.cpp.
Definition at line 341 of file gadget.cpp.
|
protected |
Definition at line 295 of file gadget.cpp.
|
protected |
Definition at line 308 of file gadget.cpp.
| int UI_GADGET::has_focus | ( | ) |
Definition at line 334 of file gadget.cpp.
Definition at line 207 of file gadget.cpp.
|
virtual |
Reimplemented in UI_SCROLLBAR.
Definition at line 212 of file gadget.cpp.
|
virtual |
Definition at line 42 of file gadget.cpp.
| int UI_GADGET::is_mouse_on | ( | ) |
Definition at line 371 of file gadget.cpp.
|
protected |
Definition at line 412 of file gadget.cpp.
Definition at line 50 of file gadget.cpp.
Definition at line 234 of file gadget.cpp.
Reimplemented in UI_DOT_SLIDER_NEW, and UI_DOT_SLIDER.
Definition at line 352 of file gadget.cpp.
|
protected |
Definition at line 549 of file gadget.cpp.
| void UI_GADGET::reset | ( | ) |
Definition at line 37 of file gadget.cpp.
Definition at line 71 of file gadget.cpp.
Definition at line 288 of file gadget.cpp.
| void UI_GADGET::set_focus | ( | ) |
Definition at line 321 of file gadget.cpp.
Definition at line 280 of file gadget.cpp.
Definition at line 580 of file gadget.cpp.
|
protected |
Definition at line 476 of file gadget.cpp.
|
protected |
Definition at line 494 of file gadget.cpp.
|
virtual |
Reimplemented in UI_SCROLLBAR.
Definition at line 217 of file gadget.cpp.
Definition at line 187 of file gadget.cpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
| int UI_GADGET::bmap_ids[MAX_BMAPS_PER_GADGET] |