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

Öffentliche Methoden

 PictureBox ()
 
void SetImage (const std::shared_ptr< Drawing::ITexture > &image)
 
std::shared_ptr
< Drawing::ITexture > & 
GetImage ()
 
void SetStretch (bool strech)
 
bool GetStretch () const
 
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 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 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

Wird zum Anzeigen eines Bildes verwendet.

Beschreibung der Konstruktoren und Destruktoren

OSHGui::PictureBox::PictureBox ( )

Konstruktor der Klasse.

Dokumentation der Elementfunktionen

std::shared_ptr< Drawing::ITexture > & OSHGui::PictureBox::GetImage ( )

Ruft das in der PictureBox dargestellte Bild ab.

Rückgabe
das Bild
bool OSHGui::PictureBox::GetStretch ( ) const

Ruft ab, ob das Bild gestrecht wird, wenn es kleiner ist, wie die Größe der PictureBox.

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

Zeichnet das Steuerelement mithilfe des übergebenen IRenderers.

Parameter
renderer

Erneute Implementation von OSHGui::Control.

void OSHGui::PictureBox::SetImage ( const std::shared_ptr< Drawing::ITexture > &  image)

Legt das in der PictureBox dargestellte Bild fest.

Parameter
imagedas Bild
void OSHGui::PictureBox::SetStretch ( bool  strech)

Legt fest, ob das Bild gestrecht wird, wenn es kleiner ist, wie die Größe der PictureBox.

Parameter
strech