OldSchoolHack GUI
Öffentliche Methoden | Geschützte Methoden | Aufstellung aller Elemente
OSHGui::HotkeyControl Klassenreferenz
Klassendiagramm für OSHGui::HotkeyControl:
Inheritance graph
[Legende]
Zusammengehörigkeiten von OSHGui::HotkeyControl:
Collaboration graph
[Legende]

Öffentliche Methoden

 HotkeyControl ()
 
virtual void SetText (const Misc::AnsiString &text) override
 
virtual void SetHotkey (Key::Keys hotkey)
 
virtual Key::Keys GetHotkey () const
 
virtual void SetHotkeyModifier (Key::Keys modifier)
 
virtual Key::Keys GetHotkeyModifier () const
 
virtual void ShowCaret (bool showCaret)
 
- Öffentliche Methoden geerbt von OSHGui::TextBox
 TextBox ()
 
virtual void SetSize (const Drawing::Size &size) override
 
virtual void SetFont (const std::shared_ptr< Drawing::IFont > &font) override
 
virtual const Misc::AnsiString & GetText () const
 
virtual void SetPasswordChar (const Misc::AnsiChar &passwordChar)
 
virtual const Misc::AnsiChar & GetPasswordChar () const
 
TextChangedEventGetTextChangedEvent ()
 
virtual bool Intersect (const Drawing::Point &point) const override
 
virtual void CalculateAbsoluteLocation () override
 
virtual void Render (Drawing::IRenderer *renderer) override
 
- Öffentliche Methoden geerbt von OSHGui::Control
virtual CONTROL_TYPE GetType () const
 
virtual bool GetIsFocused () const
 
virtual void SetEnabled (bool isEnabled)
 
virtual bool GetEnabled () const
 
virtual void SetVisible (bool isVisible)
 
virtual bool GetVisible () const
 
virtual void SetAutoSize (bool autoSize)
 
virtual bool GetAutoSize () const
 
virtual void SetBounds (const Drawing::Rectangle &bounds)
 
virtual void SetBounds (const Drawing::Point &location, const Drawing::Size &size)
 
virtual void SetBounds (int x, int y, int w, int h)
 
virtual const Drawing::Rectangle GetBounds () const
 
virtual void SetLocation (int x, int y)
 
virtual void SetLocation (const Drawing::Point &location)
 
virtual const Drawing::PointGetLocation () const
 
virtual void SetSize (int width, int height)
 
virtual const Drawing::SizeGetSize () const
 
virtual int GetLeft () const
 
virtual int GetTop () const
 
virtual int GetRight () const
 
virtual int GetBottom () const
 
virtual int GetWidth () const
 
virtual int GetHeight () const
 
virtual void SetAnchor (AnchorStyle anchor)
 
virtual AnchorStyle GetAnchor () const
 
virtual void SetTag (Misc::Any &tag)
 
virtual const Misc::AnyGetTag () const
 
virtual void SetName (const Misc::AnsiString &name)
 
virtual const Misc::AnsiString & GetName () const
 
const std::shared_ptr
< Drawing::IFont > & 
GetFont () const
 
void SetCursor (const std::shared_ptr< Cursor > &cursor)
 
virtual const std::shared_ptr
< Cursor > & 
GetCursor () const
 
virtual void SetForeColor (Drawing::Color color)
 
virtual Drawing::Color GetForeColor () const
 
virtual void SetBackColor (Drawing::Color color)
 
virtual Drawing::Color GetBackColor () const
 
virtual void SetMouseOverFocusColor (Drawing::Color color)
 
virtual Drawing::Color GetMouseOverFocusColor () const
 
LocationChangedEventGetLocationChangedEvent ()
 
SizeChangedEventGetSizeChangedEvent ()
 
ClickEventGetClickEvent ()
 
MouseClickEventGetMouseClickEvent ()
 
MouseDownEventGetMouseDownEvent ()
 
MouseUpEventGetMouseUpEvent ()
 
MouseMoveEventGetMouseMoveEvent ()
 
MouseScrollEventGetMouseScrollEvent ()
 
MouseEnterEventGetMouseEnterEvent ()
 
MouseLeaveEventGetMouseLeaveEvent ()
 
MouseCaptureChangedEventGetMouseCaptureChangedEvent ()
 
KeyDownEventGetKeyDownEvent ()
 
KeyPressEventGetKeyPressEvent ()
 
KeyUpEventGetKeyUpEvent ()
 
FocusGotEventGetFocusGotEvent ()
 
FocusLostEventGetFocusLostEvent ()
 
virtual void SetParent (Control *parent)
 
virtual ControlGetParent () const
 
virtual void Focus ()
 
virtual const Drawing::Point PointToClient (const Drawing::Point &point) const
 
virtual const Drawing::Point PointToScreen (const Drawing::Point &point) const
 
bool ProcessMouseMessage (const MouseMessage &mouse)
 
bool ProcessKeyboardMessage (KeyboardMessage &keyboard)
 
virtual void ApplyTheme (const Drawing::Theme &theme)
 

Geschützte Methoden

virtual void OnMouseDown (const MouseMessage &mouse) override
 
virtual bool OnKeyDown (const KeyboardMessage &keyboard) override
 
virtual bool OnKeyPress (const KeyboardMessage &keyboard) override
 
virtual bool OnKeyUp (const KeyboardMessage &keyboard) override
 
- Geschützte Methoden geerbt von OSHGui::TextBox
virtual void OnTextChanged ()
 
- Geschützte Methoden geerbt von OSHGui::Control
 Control ()
 
virtual void OnLocationChanged ()
 
virtual void OnSizeChanged ()
 
virtual void OnMouseClick (const MouseMessage &mouse)
 
virtual void OnMouseUp (const MouseMessage &mouse)
 
virtual void OnMouseMove (const MouseMessage &mouse)
 
virtual void OnMouseScroll (const MouseMessage &mouse)
 
virtual void OnMouseEnter (const MouseMessage &mouse)
 
virtual void OnMouseLeave (const MouseMessage &mouse)
 
virtual void OnGotMouseCapture ()
 
virtual void OnLostMouseCapture ()
 
virtual void OnGotFocus (Control *newFocusedControl)
 
virtual void OnLostFocus (Control *newFocusedControl)
 

Weitere Geerbte Elemente

- Öffentliche, statische Methoden geerbt von OSHGui::Control
static Misc::AnsiString ControlTypeToString (CONTROL_TYPE controlType)
 
- Statische öffentliche Attribute geerbt von OSHGui::TextBox
static const Drawing::Size DefaultSize
 
- Geschützte Attribute geerbt von OSHGui::Control
Misc::AnsiString name
 
CONTROL_TYPE type
 
bool canRaiseEvents
 
bool isEnabled
 
bool isVisible
 
bool isInside
 
bool isClicked
 
bool isFocusable
 
bool isFocused
 
bool hasCaptured
 
bool autoSize
 
Misc::Any tag
 
Drawing::Point location
 
Drawing::Point absoluteLocation
 
Drawing::Size size
 
LocationChangedEvent locationChangedEvent
 
SizeChangedEvent sizeChangedEvent
 
ClickEvent clickEvent
 
MouseClickEvent mouseClickEvent
 
MouseDownEvent mouseDownEvent
 
MouseUpEvent mouseUpEvent
 
MouseMoveEvent mouseMoveEvent
 
MouseScrollEvent mouseScrollEvent
 
MouseEnterEvent mouseEnterEvent
 
MouseLeaveEvent mouseLeaveEvent
 
MouseCaptureChangedEvent mouseCaptureChangedEvent
 
KeyDownEvent keyDownEvent
 
KeyPressEvent keyPressEvent
 
KeyUpEvent keyUpEvent
 
FocusGotEvent focusGotEvent
 
FocusLostEvent focusLostEvent
 
Drawing::Color foreColor
 
Drawing::Color backColor
 
Drawing::Color mouseOverFocusColor
 
std::shared_ptr< Drawing::IFontfont
 
std::shared_ptr< Cursorcursor
 
Controlparent
 

Ausführliche Beschreibung

Stellt ein Textfeld-Steuerelement dar.

Beschreibung der Konstruktoren und Destruktoren

OSHGui::HotkeyControl::HotkeyControl ( )

Konstruktor der Klasse.

Dokumentation der Elementfunktionen

Key::Keys OSHGui::HotkeyControl::GetHotkey ( ) const
virtual

Ruft den Hotkey ab.

Rückgabe
hotkey
Key::Keys OSHGui::HotkeyControl::GetHotkeyModifier ( ) const
virtual

Ruft den HotkeyModifier ab.

Rückgabe
hotkeyModifier
void OSHGui::HotkeyControl::OnMouseDown ( const MouseMessage mouse)
overrideprotectedvirtual

Zeichnet das Steuerelement mithilfe des übergebenen IRenderers.

Parameter
renderer

Erneute Implementation von OSHGui::TextBox.

void OSHGui::HotkeyControl::SetHotkey ( Key::Keys  hotkey)
virtual

Legt den Hotkey fest.

Parameter
hotkey
void OSHGui::HotkeyControl::SetHotkeyModifier ( Key::Keys  modifier)
virtual

Legt den HotkeyModifier fest.

Parameter
hotkey
void OSHGui::HotkeyControl::SetText ( const Misc::AnsiString &  text)
overridevirtual

Legt den Text fest.

Parameter
text

Erneute Implementation von OSHGui::TextBox.