FS2_Open
Open source remastering of the Freespace 2 engine
UI_WINDOW Class Reference

#include <ui.h>

Public Member Functions

 UI_WINDOW ()
 
 ~UI_WINDOW ()
 
void set_mask_bmap (char *fname)
 
void set_mask_bmap (int bmap, char *name)
 
void set_foreground_bmap (char *fname)
 
void create (int _x, int _y, int _w, int _h, int _flags, int _f_id=-1)
 
int process (int key_in=-1, int process_mouse=1)
 
void draw ()
 
void draw_tooltip ()
 
void draw_XSTR_forced (UI_GADGET *owner, int frame)
 
int get_current_hotspot ()
 
void destroy ()
 
ubyteget_mask_data (int *w_md, int *h_md)
 
void render_tooltip (char *str)
 
void set_ignore_gadgets (int state)
 
void add_XSTR (char *string, int _xstr_id, int _x, int _y, UI_GADGET *_assoc, int _color_type, int _font_id=-1)
 
void add_XSTR (UI_XSTR *xstr)
 

Public Attributes

const char *(* tooltip_handler )(const char *text)
 
int last_keypress
 
int ttx
 
int tty
 
int use_hack_to_get_around_stupid_problem_flag
 

Protected Member Functions

void capture_mouse (UI_GADGET *gadget=NULL)
 
void release_bitmaps ()
 
void check_focus_switch_keys ()
 
void do_dump_check ()
 
void draw_xstrs ()
 
void draw_one_xstr (UI_XSTR *xstr, int frame)
 

Protected Attributes

int flags
 
int x
 
int y
 
int w
 
int h
 
int f_id
 
int last_tooltip_hotspot
 
uint last_tooltip_time
 
int tt_group
 
int ignore_gadgets
 
UI_GADGETfirst_gadget
 
UI_GADGETselected_gadget
 
UI_GADGETmouse_captured_gadget
 
int mask_bmap_id
 
int foreground_bmap_id
 
bitmapmask_bmap_ptr
 
ubytemask_data
 
int mask_w
 
int mask_h
 
UI_XSTRxstrs [MAX_UI_XSTRS]
 
int keypress
 

Friends

class UI_GADGET
 
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
 
class UI_ICON
 

Detailed Description

Definition at line 584 of file ui.h.

Constructor & Destructor Documentation

UI_WINDOW::UI_WINDOW ( )

Definition at line 43 of file window.cpp.

UI_WINDOW::~UI_WINDOW ( )

Definition at line 65 of file window.cpp.

Member Function Documentation

void UI_WINDOW::add_XSTR ( char *  string,
int  _xstr_id,
int  _x,
int  _y,
UI_GADGET _assoc,
int  _color_type,
int  _font_id = -1 
)

Definition at line 476 of file window.cpp.

void UI_WINDOW::add_XSTR ( UI_XSTR xstr)

Definition at line 522 of file window.cpp.

void UI_WINDOW::capture_mouse ( UI_GADGET gadget = NULL)
protected

Definition at line 466 of file window.cpp.

void UI_WINDOW::check_focus_switch_keys ( )
protected

Definition at line 461 of file window.cpp.

void UI_WINDOW::create ( int  _x,
int  _y,
int  _w,
int  _h,
int  _flags,
int  _f_id = -1 
)

Definition at line 140 of file window.cpp.

void UI_WINDOW::destroy ( )

Definition at line 189 of file window.cpp.

void UI_WINDOW::do_dump_check ( )
protected

Definition at line 668 of file window.cpp.

void UI_WINDOW::draw ( )

Definition at line 220 of file window.cpp.

void UI_WINDOW::draw_one_xstr ( UI_XSTR xstr,
int  frame 
)
protected

Definition at line 568 of file window.cpp.

void UI_WINDOW::draw_tooltip ( )

Definition at line 304 of file window.cpp.

void UI_WINDOW::draw_XSTR_forced ( UI_GADGET owner,
int  frame 
)

Definition at line 278 of file window.cpp.

void UI_WINDOW::draw_xstrs ( )
protected

Definition at line 653 of file window.cpp.

int UI_WINDOW::get_current_hotspot ( )

Definition at line 290 of file window.cpp.

ubyte* UI_WINDOW::get_mask_data ( int w_md,
int h_md 
)
inline

Definition at line 643 of file ui.h.

int UI_WINDOW::process ( int  key_in = -1,
int  process_mouse = 1 
)

Definition at line 401 of file window.cpp.

void UI_WINDOW::release_bitmaps ( )
protected

Definition at line 167 of file window.cpp.

void UI_WINDOW::render_tooltip ( char *  str)

Definition at line 374 of file window.cpp.

void UI_WINDOW::set_foreground_bmap ( char *  fname)

Definition at line 127 of file window.cpp.

void UI_WINDOW::set_ignore_gadgets ( int  state)

Definition at line 471 of file window.cpp.

void UI_WINDOW::set_mask_bmap ( char *  fname)

Definition at line 75 of file window.cpp.

void UI_WINDOW::set_mask_bmap ( int  bmap,
char *  name 
)

Definition at line 89 of file window.cpp.

Friends And Related Function Documentation

friend class UI_BUTTON
friend

Definition at line 587 of file ui.h.

friend class UI_CHECKBOX
friend

Definition at line 589 of file ui.h.

friend class UI_DOT_SLIDER
friend

Definition at line 595 of file ui.h.

friend class UI_DOT_SLIDER_NEW
friend

Definition at line 596 of file ui.h.

friend class UI_GADGET
friend

Definition at line 586 of file ui.h.

friend class UI_ICON
friend

Definition at line 597 of file ui.h.

friend class UI_INPUTBOX
friend

Definition at line 593 of file ui.h.

friend class UI_KEYTRAP
friend

Definition at line 588 of file ui.h.

friend class UI_LISTBOX
friend

Definition at line 592 of file ui.h.

friend class UI_RADIO
friend

Definition at line 590 of file ui.h.

friend class UI_SCROLLBAR
friend

Definition at line 591 of file ui.h.

friend class UI_SLIDER2
friend

Definition at line 594 of file ui.h.

Member Data Documentation

int UI_WINDOW::f_id
protected

Definition at line 603 of file ui.h.

UI_GADGET* UI_WINDOW::first_gadget
protected

Definition at line 609 of file ui.h.

int UI_WINDOW::flags
protected

Definition at line 600 of file ui.h.

int UI_WINDOW::foreground_bmap_id
protected

Definition at line 614 of file ui.h.

int UI_WINDOW::h
protected

Definition at line 602 of file ui.h.

int UI_WINDOW::ignore_gadgets
protected

Definition at line 607 of file ui.h.

int UI_WINDOW::keypress
protected

Definition at line 622 of file ui.h.

int UI_WINDOW::last_keypress

Definition at line 650 of file ui.h.

int UI_WINDOW::last_tooltip_hotspot
protected

Definition at line 604 of file ui.h.

uint UI_WINDOW::last_tooltip_time
protected

Definition at line 605 of file ui.h.

int UI_WINDOW::mask_bmap_id
protected

Definition at line 613 of file ui.h.

bitmap* UI_WINDOW::mask_bmap_ptr
protected

Definition at line 615 of file ui.h.

ubyte* UI_WINDOW::mask_data
protected

Definition at line 616 of file ui.h.

int UI_WINDOW::mask_h
protected

Definition at line 617 of file ui.h.

int UI_WINDOW::mask_w
protected

Definition at line 617 of file ui.h.

UI_GADGET* UI_WINDOW::mouse_captured_gadget
protected

Definition at line 611 of file ui.h.

UI_GADGET* UI_WINDOW::selected_gadget
protected

Definition at line 610 of file ui.h.

const char*(* UI_WINDOW::tooltip_handler) (const char *text)

Definition at line 649 of file ui.h.

int UI_WINDOW::tt_group
protected

Definition at line 606 of file ui.h.

int UI_WINDOW::ttx

Definition at line 651 of file ui.h.

int UI_WINDOW::tty

Definition at line 651 of file ui.h.

int UI_WINDOW::use_hack_to_get_around_stupid_problem_flag

Definition at line 652 of file ui.h.

int UI_WINDOW::w
protected

Definition at line 602 of file ui.h.

int UI_WINDOW::x
protected

Definition at line 601 of file ui.h.

UI_XSTR* UI_WINDOW::xstrs[MAX_UI_XSTRS]
protected

Definition at line 619 of file ui.h.

int UI_WINDOW::y
protected

Definition at line 601 of file ui.h.


The documentation for this class was generated from the following files: