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

Öffentliche Methoden

 Timer ()
 
virtual void SetEnabled (bool isEnabled) override
 
void SetInterval (int interval)
 
long long GetInterval () const
 
TickEventGetTickEvent ()
 
void Start ()
 
void Stop ()
 
virtual bool Intersect (const Drawing::Point &point) const override
 
- Öffentliche Methoden geerbt von OSHGui::Control
virtual CONTROL_TYPE GetType () const
 
virtual bool GetIsFocused () const
 
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 void SetSize (const Drawing::Size &size)
 
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
 
virtual void SetFont (const std::shared_ptr< Drawing::IFont > &font)
 
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 void CalculateAbsoluteLocation ()
 
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 Render (Drawing::IRenderer *renderer)
 
virtual void ApplyTheme (const Drawing::Theme &theme)
 

Weitere Geerbte Elemente

- Öffentliche, statische Methoden geerbt von OSHGui::Control
static Misc::AnsiString ControlTypeToString (CONTROL_TYPE controlType)
 
- Geschützte Methoden geerbt von OSHGui::Control
 Control ()
 
virtual void OnLocationChanged ()
 
virtual void OnSizeChanged ()
 
virtual void OnMouseDown (const MouseMessage &mouse)
 
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)
 
virtual bool OnKeyDown (const KeyboardMessage &keyboard)
 
virtual bool OnKeyPress (const KeyboardMessage &keyboard)
 
virtual bool OnKeyUp (const KeyboardMessage &keyboard)
 
- 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

Implementiert einen Zeitgeber, der ein Ereignis in benutzerdefinierten Intervallen auslöst.

Beschreibung der Konstruktoren und Destruktoren

OSHGui::Timer::Timer ( )

Konstruktor der Klasse.

Dokumentation der Elementfunktionen

long long OSHGui::Timer::GetInterval ( ) const

Ruft die Frequenz des Timers in Millisekunden ab.

Rückgabe
interval
TickEvent & OSHGui::Timer::GetTickEvent ( )

Ruft das TickEvent für das Steuerelement ab.

Rückgabe
tickEvent
bool OSHGui::Timer::Intersect ( const Drawing::Point point) const
overridevirtual

Überprüft, ob sich der Punkt innerhalb des Steuerelements befindet.

Parameter
point
Rückgabe
ja / nein

Implementiert OSHGui::Control.

void OSHGui::Timer::SetEnabled ( bool  isEnabled)
overridevirtual

Legt fest, ob das Steuerlement auf Benutzerinteraktionen reagieren kann.

Parameter
isEnabled

Erneute Implementation von OSHGui::Control.

void OSHGui::Timer::SetInterval ( int  interval)

Legt die Frequenz des Timers in Millisekunden fest.

Parameter
intervaldie Frequenz in Millisekunden
void OSHGui::Timer::Start ( )

Startet den Timer. Equivalent zu SetEnabled(true);

void OSHGui::Timer::Stop ( )

Hält den Timer an. Equivalent zu SetEnabled(false);