|
bool | Create (Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override |
| Creates a new key slot button. More...
|
|
bool | EventProcess (const Event &event) override |
| Management of an event. More...
|
|
void | Draw () override |
| Draws button. More...
|
|
|
void | SetBinding (InputBinding b) |
| Management of binding. More...
|
|
InputBinding | GetBinding () |
|
virtual void | SetPos (Math::Point pos) |
|
virtual Math::Point | GetPos () |
|
virtual void | SetDim (Math::Point dim) |
|
virtual Math::Point | GetDim () |
|
virtual bool | SetState (int state, bool bState) |
|
virtual bool | SetState (int state) |
|
virtual bool | ClearState (int state) |
|
virtual bool | TestState (int state) |
|
virtual int | GetState () |
|
virtual void | SetIcon (int icon) |
|
virtual int | GetIcon () |
|
virtual void | SetName (std::string name, bool bTooltip=true) |
|
virtual std::string | GetName () |
|
virtual void | SetTextAlign (Gfx::TextAlign mode) |
|
virtual int | GetTextAlign () |
|
virtual void | SetFontSize (float size) |
|
virtual float | GetFontSize () |
|
virtual void | SetFontStretch (float stretch) |
|
virtual float | GetFontStretch () |
|
virtual void | SetFontType (Gfx::FontType font) |
|
virtual Gfx::FontType | GetFontType () |
|
virtual bool | SetTooltip (std::string name) |
|
virtual bool | GetTooltip (Math::Point pos, std::string &name) |
|
virtual void | SetFocus (CControl *focusControl) |
|
virtual bool | GetFocus () |
|
virtual EventType | GetEventType () |
|
|
bool | TestKey (unsigned int key) |
| Checks if a key is already used. More...
|
|
void | GlintDelete () |
|
void | GlintCreate (Math::Point ref, bool bLeft=true, bool bUp=true) |
|
void | GlintFrame (const Event &event) |
|
void | DrawPart (int icon, float zoom, float ex) |
|
void | DrawIcon (Math::Point pos, Math::Point dim, Math::Point uv1, Math::Point uv2, float ex=0.0f) |
|
void | DrawIcon (Math::Point pos, Math::Point dim, Math::Point uv1, Math::Point uv2, Math::Point corner, float ex) |
|
void | DrawWarning (Math::Point pos, Math::Point dim) |
|
void | DrawShadow (Math::Point pos, Math::Point dim, float deep=1.0f) |
|
virtual bool | Detect (Math::Point pos) |
|
std::string | GetResourceName (EventType eventType) |
|
Creates a new key slot button.
Reimplemented from Ui::CControl.
bool Ui::CKey::EventProcess |
( |
const Event & |
event | ) |
|
|
overridevirtual |
bool Ui::CKey::TestKey |
( |
unsigned int |
key | ) |
|
|
protected |
Checks if a key is already used.
The documentation for this class was generated from the following files:
- /build/colobot-4LMcse/colobot-0.1.8/src/ui/controls/key.h
- /build/colobot-4LMcse/colobot-0.1.8/src/ui/controls/key.cpp