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

Öffentliche Methoden

 ColorPicker ()
 
virtual void SetSize (const Drawing::Size &size) override
 
void SetColor (Drawing::Color color)
 
Drawing::Color GetColor () const
 
Drawing::Color GetColorAtPoint (int x, int y) const
 
Drawing::Color GetColorAtPoint (const Drawing::Point &point) const
 
ColorChangedEventGetColorChangedEvent ()
 
virtual bool Intersect (const Drawing::Point &point) const 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
 
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 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 OnMouseClick (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

Wird zum Auswählen einer Farbe verwendet.

Beschreibung der Konstruktoren und Destruktoren

OSHGui::ColorPicker::ColorPicker ( )

Konstruktor der Klasse.

Dokumentation der Elementfunktionen

Drawing::Color OSHGui::ColorPicker::GetColor ( ) const

Ruft die ausgewählte Farbe ab.

Rückgabe
color
Drawing::Color OSHGui::ColorPicker::GetColorAtPoint ( int  x,
int  y 
) const

Ruft die Farbe an einem bestimmten Punkt ab.

Parameter
x
y
Rückgabe
color
Drawing::Color OSHGui::ColorPicker::GetColorAtPoint ( const Drawing::Point point) const

Ruft die Farbe an einem bestimmten Punkt ab.

Parameter
point
Rückgabe
color
ColorChangedEvent & OSHGui::ColorPicker::GetColorChangedEvent ( )

Ruft das ColorChangeEvent für das Steuerelement ab.

Rückgabe
colorChangeEvent
bool OSHGui::ColorPicker::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::ColorPicker::Render ( Drawing::IRenderer renderer)
overridevirtual

Zeichnet das Steuerelement mithilfe des übergebenen IRenderers.

Parameter
renderer

Erneute Implementation von OSHGui::Control.

void OSHGui::ColorPicker::SetColor ( Drawing::Color  color)

Legt die ausgewählte Farbe fest.

Parameter
colordie Farbe
void OSHGui::ColorPicker::SetSize ( const Drawing::Size size)
overridevirtual

Legt die Höhe und Breite des Steuerelements fest.

Parameter
size

Erneute Implementation von OSHGui::Control.