Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <text_area.h>
Public Member Functions | |
TextArea (void) | |
TextArea (float x, float y, float wid, float hei, int scrollbar) | |
~TextArea (void) | |
int | GetSelectedItem () |
void | SetSelectedItem (int newh) |
void | DoHighlight (int yes) |
void | DoMultiline (int yes) |
void | Refresh (void) |
void | RenderText (void) |
void | AddTextItem (const char *name, const char *description, const char *parent_name=NULL, const GFXColor col=GFXColor(1, 1, 1, 1)) |
void | ChangeTextItem (const char *name, const char *description, bool wrap=false) |
void | ChangeTextItemColor (const char *name, const GFXColor &col) |
void | SetText (const char *text) |
void | ClearList (void) |
char * | GetSelectedItemName (void) |
char * | GetSelectedItemDesc (void) |
void | SortList (void) |
int | MouseClick (int button, int state, float x, float y) |
int | MouseMove (float x, float y) |
int | MouseMoveClick (float x, float y) |
int | DoMouse (int type, float x, float y, int button, int state) |
Definition at line 86 of file text_area.h.
TextArea::TextArea | ( | void | ) |
Definition at line 37 of file text_area.cpp.
Definition at line 43 of file text_area.cpp.
References Refresh(), x, and y.
TextArea::~TextArea | ( | void | ) |
Definition at line 35 of file text_area.cpp.
void TextArea::AddTextItem | ( | const char * | name, |
const char * | description, | ||
const char * | parent_name = NULL , |
||
const GFXColor | col = GFXColor( 1, 1, 1, 1 ) |
||
) |
Definition at line 261 of file text_area.cpp.
References TextAreaItem::AddChild(), and TextAreaItem::FindChild().
void TextArea::ChangeTextItem | ( | const char * | name, |
const char * | description, | ||
bool | wrap = false |
||
) |
Definition at line 271 of file text_area.cpp.
References TextAreaItem::description, and TextAreaItem::FindChild().
void TextArea::ChangeTextItemColor | ( | const char * | name, |
const GFXColor & | col | ||
) |
Definition at line 280 of file text_area.cpp.
References TextAreaItem::col, and TextAreaItem::FindChild().
void TextArea::ClearList | ( | void | ) |
void TextArea::DoHighlight | ( | int | yes) |
Definition at line 422 of file text_area.cpp.
References MouseClick(), MouseMove(), and MouseMoveClick().
|
inline |
Definition at line 100 of file text_area.h.
|
inline |
Definition at line 91 of file text_area.h.
Referenced by GetSelectedItemDesc(), and GetSelectedItemName().
char * TextArea::GetSelectedItemDesc | ( | void | ) |
Definition at line 310 of file text_area.cpp.
References GetSelectedItem().
char * TextArea::GetSelectedItemName | ( | void | ) |
Definition at line 306 of file text_area.cpp.
References GetSelectedItem().
Definition at line 332 of file text_area.cpp.
References WS_LEFT_BUTTON, WS_MOUSE_UP, and y.
Referenced by DoMouse().
void TextArea::Refresh | ( | void | ) |
Definition at line 146 of file text_area.cpp.
References RenderText(), x, and y.
Referenced by TextArea().
void TextArea::RenderText | ( | void | ) |
Definition at line 231 of file text_area.cpp.
Referenced by Refresh().
|
inline |
Definition at line 95 of file text_area.h.
void TextArea::SetText | ( | const char * | text) |
void TextArea::SortList | ( | void | ) |
Definition at line 325 of file text_area.cpp.
References TextAreaItem::Sort().