Open source remastering of the Freespace 2 engine
UI_INPUTBOX Class Reference

#include <ui.h>

Inheritance diagram for UI_INPUTBOX:

Public Member Functions

void create (UI_WINDOW *wnd, int _x, int _y, int _w, int _textlen, char *_text, int _flags=0, int pixel_lim=-1, color *clr=NULL)
void set_valid_chars (char *vchars)
void set_invalid_chars (char *ichars)
int changed ()
int pressed ()
void get_text (char *out)
void set_text (const char *in)
- Public Member Functions inherited from UI_GADGET
virtual ~UI_GADGET ()
void base_create (UI_WINDOW *wnd, int _kind, int _x, int _y, int _w, int _h)
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 ()

Additional Inherited Members

- Public Attributes inherited from UI_GADGET
int bmap_ids [MAX_BMAPS_PER_GADGET]
- Protected Member Functions inherited from UI_GADGET
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_GADGETget_next ()
UI_GADGETget_prev ()
int check_move ()
- Protected Attributes inherited from UI_GADGET
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

Detailed Description

TODO class UI_USERBOX : public UI_GADGET { int b1_held_down; int b1_clicked; int b1_double_clicked; int b1_dragging; int b1_drag_x1, b1_drag_y1; int b1_drag_x2, b1_drag_y2; int b1_done_dragging; int keypress; int mouse_onme; int mouse_x, mouse_y; int bitmap_number; };

Definition at line 279 of file ui.h.

Member Function Documentation

int UI_INPUTBOX::changed ( )

Definition at line 474 of file inputbox.cpp.

void UI_INPUTBOX::create ( UI_WINDOW wnd,
int  _x,
int  _y,
int  _w,
int  _textlen,
char *  _text,
int  _flags = 0,
int  pixel_lim = -1,
color clr = NULL 

Definition at line 101 of file inputbox.cpp.

void UI_INPUTBOX::get_text ( char *  out)

Definition at line 484 of file inputbox.cpp.

int UI_INPUTBOX::pressed ( )

Definition at line 479 of file inputbox.cpp.

void UI_INPUTBOX::set_invalid_chars ( char *  ichars)

Definition at line 163 of file inputbox.cpp.

void UI_INPUTBOX::set_text ( const char *  in)

Definition at line 490 of file inputbox.cpp.

void UI_INPUTBOX::set_valid_chars ( char *  vchars)

Definition at line 152 of file inputbox.cpp.

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