Starshatter_Open
Open source Starshatter engine
|
#include <ComboBox.h>
Public Member Functions | |
ComboBox (ActiveWindow *p, int ax, int ay, int aw, int ah, DWORD aid=0) | |
ComboBox (Screen *s, int ax, int ay, int aw, int ah, DWORD aid=0) | |
virtual | ~ComboBox () |
virtual void | Draw () |
virtual void | ShowList () |
virtual void | HideList () |
virtual void | MoveTo (const Rect &r) |
virtual int | OnMouseMove (int x, int y) |
virtual int | OnLButtonDown (int x, int y) |
virtual int | OnLButtonUp (int x, int y) |
virtual int | OnClick () |
virtual int | OnMouseEnter (int x, int y) |
virtual int | OnMouseExit (int x, int y) |
virtual void | OnListSelect (AWEvent *event) |
virtual void | OnListExit (AWEvent *event) |
virtual int | NumItems () |
virtual void | ClearItems () |
virtual void | AddItem (const char *item) |
virtual const char * | GetItem (int index) |
virtual void | SetItem (int index, const char *item) |
virtual void | SetLabel (const char *label) |
virtual int | GetCount () |
virtual const char * | GetSelectedItem () |
virtual int | GetSelectedIndex () |
virtual void | SetSelection (int index) |
Color | GetActiveColor () const |
void | SetActiveColor (Color c) |
bool | GetAnimated () const |
void | SetAnimated (bool bNewValue) |
short | GetBevelWidth () const |
void | SetBevelWidth (short nNewValue) |
bool | GetBorder () const |
void | SetBorder (bool bNewValue) |
Color | GetBorderColor () const |
void | SetBorderColor (Color c) |
short | GetButtonState () const |
void | SetButtonState (short nNewValue) |
bool | IsListShowing () const |
Public Member Functions inherited from ActiveWindow | |
ActiveWindow (Screen *s, int ax, int ay, int aw, int ah, DWORD id=0, DWORD style=0, ActiveWindow *parent=0) | |
virtual | ~ActiveWindow () |
int | operator== (const ActiveWindow &w) const |
virtual void | Paint () |
virtual void | Show () |
virtual void | Hide () |
virtual void | UseLayout (const std::vector< DWORD > &min_x, const std::vector< DWORD > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y) |
virtual void | UseLayout (const std::vector< float > &min_x, const std::vector< float > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y) |
virtual void | UseLayout (int ncols, int nrows, int *min_x, int *min_y, float *weight_x, float *weight_y) |
virtual void | DoLayout () |
virtual int | OnSelect () |
virtual int | OnRButtonDown (int x, int y) |
virtual int | OnRButtonUp (int x, int y) |
virtual int | OnMouseWheel (int wheel) |
virtual int | OnKeyDown (int vk, int flags) |
virtual const char * | GetDescription () const |
virtual int | OnDragStart (int x, int y) |
virtual int | OnDragDrop (int x, int y, ActiveWindow *source) |
virtual ActiveWindow * | FindControl (int x, int y) |
virtual Rect | TargetRect () const |
virtual ActiveWindow * | GetCapture () |
virtual int | SetCapture () |
virtual int | ReleaseCapture () |
virtual void | SetFocus () |
virtual void | KillFocus () |
virtual bool | HasFocus () const |
void | SetEnabled (bool e=true) |
bool | IsEnabled () const |
bool | IsVisible () const |
DWORD | GetID () const |
void | SetStyle (DWORD s) |
DWORD | GetStyle () const |
void | SetText (const char *t) |
void | SetText (const Text &t) |
void | AddText (const char *t) |
void | AddText (const Text &t) |
const Text & | GetText () const |
void | SetAltText (const char *t) |
void | SetAltText (const Text &t) |
const Text & | GetAltText () const |
void | SetTexture (Bitmap *bmp) |
Bitmap * | GetTexture () |
void | SetMargins (const Insets &m) |
Insets & | GetMargins () |
void | SetTextInsets (const Insets &t) |
Insets & | GetTextInsets () |
List< ActiveWindow > & | GetChildren () |
void | SetCellInsets (const Insets &c) |
Insets & | GetCellInsets () |
void | SetCells (int cx, int cy, int cw=1, int ch=1) |
void | SetCells (const Rect &r) |
Rect & | GetCells () |
void | SetFixedWidth (int w) |
int | GetFixedWidth () const |
void | SetFixedHeight (int h) |
int | GetFixedHeight () const |
void | SetAlpha (double a) |
double | GetAlpha () const |
void | SetBackColor (Color c) |
Color | GetBackColor () const |
void | SetBaseColor (Color c) |
Color | GetBaseColor () const |
void | SetForeColor (Color c) |
Color | GetForeColor () const |
void | SetSingleLine (bool a) |
bool | GetSingleLine () const |
void | SetTextAlign (DWORD a) |
DWORD | GetTextAlign () const |
void | SetTransparent (bool t) |
bool | GetTransparent () const |
void | SetHidePartial (bool a) |
bool | GetHidePartial () const |
void | SetTabStop (int n, int x) |
int | GetTabStop (int n) const |
void | DrawText (const char *txt, int count, Rect &txt_rect, DWORD flags) |
virtual void | RegisterClient (int EID, ActiveWindow *client, PFVAWE callback) |
virtual void | UnregisterClient (int EID, ActiveWindow *client) |
virtual void | ClientEvent (int EID, int x=0, int y=0) |
virtual ActiveWindow * | GetForm () |
virtual void | SetForm (ActiveWindow *f) |
virtual bool | IsFormActive () const |
virtual bool | IsTopMost () const |
virtual void | SetTopMost (bool t) |
virtual ActiveWindow * | FindChild (DWORD id) |
virtual ActiveWindow * | FindChild (int x, int y) |
Public Member Functions inherited from Window | |
Window (Screen *s, int ax, int ay, int aw, int ah) | |
virtual | ~Window () |
int | operator== (const Window &that) const |
Screen * | GetScreen () const |
const Rect & | GetRect () const |
int | X () const |
int | Y () const |
int | Width () const |
int | Height () const |
virtual bool | IsShown () const |
virtual bool | AddView (View *v) |
virtual bool | DelView (View *v) |
Rect | ClipRect (const Rect &r) |
bool | ClipLine (int &x1, int &y1, int &x2, int &y2) |
bool | ClipLine (double &x1, double &y1, double &x2, double &y2) |
void | DrawLine (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | DrawRect (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | DrawRect (const Rect &r, Color color, int blend=0) |
void | FillRect (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | FillRect (const Rect &r, Color color, int alpha=0) |
void | DrawBitmap (int x1, int y1, int x2, int y2, Bitmap *img, int blend=0) |
void | FadeBitmap (int x1, int y1, int x2, int y2, Bitmap *img, Color c, int blend) |
void | ClipBitmap (int x1, int y1, int x2, int y2, Bitmap *img, Color c, int blend, const Rect &clip) |
void | TileBitmap (int x1, int y1, int x2, int y2, Bitmap *img, int blend=0) |
void | DrawLines (int nPts, POINT *pts, Color color, int blend=0) |
void | DrawPoly (int nPts, POINT *pts, Color color, int blend=0) |
void | FillPoly (int nPts, POINT *pts, Color color, int blend=0) |
void | DrawEllipse (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | FillEllipse (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | SetFont (Font *f) |
Font * | GetFont () const |
void | Print (int x1, int y1, const char *fmt,...) |
Public Member Functions inherited from EventTarget | |
virtual | ~EventTarget () |
int | operator== (const EventTarget &t) const |
Static Public Member Functions | |
static const char * | TYPENAME () |
Static Public Member Functions inherited from ActiveWindow | |
static void | SetSystemFont (Font *f) |
static void | SetSystemBackColor (Color c) |
static void | SetSystemForeColor (Color c) |
Protected Member Functions | |
Rect | CalcLabelRect () |
void | DrawRectSimple (Rect &rect, int stat) |
Protected Member Functions inherited from ActiveWindow | |
virtual Color | ShadeColor (Color c, double shade) |
virtual void | AddChild (ActiveWindow *child) |
virtual void | DrawStyleRect (const Rect &r, int style) |
virtual void | DrawStyleRect (int x1, int y1, int x2, int y2, int style) |
virtual void | DrawTabbedText () |
virtual void | DrawTextureGrid () |
virtual void | CalcGrid () |
Protected Member Functions inherited from Window | |
virtual void | ScreenToWindow (int &x, int &y) |
virtual void | ScreenToWindow (Rect &r) |
Protected Attributes | |
List< Text > | items |
ComboList * | list |
bool | list_showing |
bool | animated |
bool | border |
int | seln |
int | captured |
int | bevel_width |
int | button_state |
int | pre_state |
Color | active_color |
Color | border_color |
Protected Attributes inherited from ActiveWindow | |
DWORD | id |
DWORD | style |
DWORD | text_align |
bool | single_line |
bool | focus |
bool | enabled |
bool | hide_partial |
float | alpha |
Color | back_color |
Color | base_color |
Color | fore_color |
Text | text |
Text | alt_text |
Text | desc |
Bitmap * | texture |
Insets | margins |
Insets | text_insets |
Insets | cell_insets |
Rect | cells |
int | fixed_width |
int | fixed_height |
int | tab [10] |
ActiveWindow * | parent |
ActiveWindow * | form |
bool | transparent |
bool | topmost |
Layout * | layout |
List< ActiveWindow > | children |
List< AWMap > | clients |
AWEvent | event |
int | rows |
int | cols |
Poly * | polys |
VertexSet * | vset |
Material * | mtl |
Protected Attributes inherited from Window | |
Rect | rect |
Screen * | screen |
bool | shown |
Font * | font |
List< View > | view_list |
Additional Inherited Members | |
Static Protected Attributes inherited from ActiveWindow | |
static Font * | sys_font = 0 |
static Color | sys_back_color = Color(128,128,128) |
static Color | sys_fore_color = Color( 0, 0, 0) |
Definition at line 31 of file ComboBox.h.
ComboBox::ComboBox | ( | ActiveWindow * | p, |
int | ax, | ||
int | ay, | ||
int | aw, | ||
int | ah, | ||
DWORD | aid = 0 |
||
) |
Definition at line 32 of file ComboBox.cpp.
ComboBox::ComboBox | ( | Screen * | s, |
int | ax, | ||
int | ay, | ||
int | aw, | ||
int | ah, | ||
DWORD | aid = 0 |
||
) |
Definition at line 50 of file ComboBox.cpp.
|
virtual |
Definition at line 70 of file ComboBox.cpp.
|
virtual |
Definition at line 374 of file ComboBox.cpp.
|
protected |
Definition at line 174 of file ComboBox.cpp.
|
virtual |
Definition at line 368 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 109 of file ComboBox.cpp.
|
protected |
Definition at line 191 of file ComboBox.cpp.
|
inline |
Definition at line 70 of file ComboBox.h.
|
inline |
Definition at line 72 of file ComboBox.h.
|
inline |
Definition at line 74 of file ComboBox.h.
|
inline |
Definition at line 76 of file ComboBox.h.
|
inline |
Definition at line 78 of file ComboBox.h.
|
inline |
Definition at line 80 of file ComboBox.h.
|
virtual |
Definition at line 407 of file ComboBox.cpp.
|
virtual |
Definition at line 381 of file ComboBox.cpp.
|
virtual |
Definition at line 420 of file ComboBox.cpp.
|
virtual |
Definition at line 412 of file ComboBox.cpp.
|
virtual |
Definition at line 327 of file ComboBox.cpp.
|
inline |
Definition at line 83 of file ComboBox.h.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 286 of file ComboBox.cpp.
|
virtual |
Definition at line 363 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 263 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 240 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 250 of file ComboBox.cpp.
|
virtual |
Definition at line 355 of file ComboBox.cpp.
|
virtual |
Definition at line 341 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 268 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 276 of file ComboBox.cpp.
|
virtual |
Reimplemented from ActiveWindow.
Definition at line 201 of file ComboBox.cpp.
void ComboBox::SetActiveColor | ( | Color | c | ) |
Definition at line 96 of file ComboBox.cpp.
void ComboBox::SetAnimated | ( | bool | bNewValue | ) |
Definition at line 101 of file ComboBox.cpp.
void ComboBox::SetBevelWidth | ( | short | nNewValue | ) |
Definition at line 80 of file ComboBox.cpp.
void ComboBox::SetBorder | ( | bool | bNewValue | ) |
Definition at line 86 of file ComboBox.cpp.
void ComboBox::SetBorderColor | ( | Color | c | ) |
Definition at line 91 of file ComboBox.cpp.
void ComboBox::SetButtonState | ( | short | nNewValue | ) |
|
virtual |
Definition at line 389 of file ComboBox.cpp.
|
virtual |
Definition at line 402 of file ComboBox.cpp.
|
virtual |
Definition at line 428 of file ComboBox.cpp.
|
virtual |
Definition at line 296 of file ComboBox.cpp.
|
inlinestatic |
Reimplemented from ActiveWindow.
Definition at line 34 of file ComboBox.h.
|
protected |
Definition at line 100 of file ComboBox.h.
|
protected |
Definition at line 92 of file ComboBox.h.
|
protected |
Definition at line 96 of file ComboBox.h.
|
protected |
Definition at line 93 of file ComboBox.h.
|
protected |
Definition at line 101 of file ComboBox.h.
|
protected |
Definition at line 97 of file ComboBox.h.
|
protected |
Definition at line 95 of file ComboBox.h.
Definition at line 89 of file ComboBox.h.
|
protected |
Definition at line 90 of file ComboBox.h.
|
protected |
Definition at line 91 of file ComboBox.h.
|
protected |
Definition at line 98 of file ComboBox.h.
|
protected |
Definition at line 94 of file ComboBox.h.