Classes | |
class | Callback |
Public Member Functions | |
ImageSwitch (Window &parent, const Image &imageNormal, const Image &imageDown) noexcept | |
ImageSwitch (Widget *widget, const Image &imageNormal, const Image &imageDown) noexcept | |
ImageSwitch (const ImageSwitch &imageSwitch) noexcept | |
ImageSwitch & | operator= (const ImageSwitch &imageSwitch) noexcept |
bool | isDown () const noexcept |
void | setDown (bool down) noexcept |
void | setCallback (Callback *callback) noexcept |
![]() | |
Widget (Window &parent) | |
virtual | ~Widget () |
bool | isVisible () const noexcept |
void | setVisible (bool yesNo) |
void | show () |
void | hide () |
uint | getWidth () const noexcept |
uint | getHeight () const noexcept |
const Size< uint > & | getSize () const noexcept |
void | setWidth (uint width) noexcept |
void | setHeight (uint height) noexcept |
void | setSize (uint width, uint height) noexcept |
void | setSize (const Size< uint > &size) noexcept |
int | getAbsoluteX () const noexcept |
int | getAbsoluteY () const noexcept |
const Point< int > & | getAbsolutePos () const noexcept |
void | setAbsoluteX (int x) noexcept |
void | setAbsoluteY (int y) noexcept |
void | setAbsolutePos (int x, int y) noexcept |
void | setAbsolutePos (const Point< int > &pos) noexcept |
App & | getParentApp () const noexcept |
Window & | getParentWindow () const noexcept |
bool | contains (int x, int y) const noexcept |
bool | contains (const Point< int > &pos) const noexcept |
void | repaint () noexcept |
uint | getId () const noexcept |
void | setId (uint id) noexcept |
Protected Member Functions | |
void | onDisplay () override |
bool | onMouse (const MouseEvent &) override |
![]() | |
virtual bool | onKeyboard (const KeyboardEvent &) |
virtual bool | onSpecial (const SpecialEvent &) |
virtual bool | onMotion (const MotionEvent &) |
virtual bool | onScroll (const ScrollEvent &) |
virtual void | onResize (const ResizeEvent &) |
void | setNeedsFullViewport (bool yesNo) noexcept |
void | setNeedsScaling (bool yesNo) noexcept |
|
overrideprotectedvirtual |
A function called to draw the view contents with OpenGL.
Implements Widget.
|
overrideprotectedvirtual |
A function called when a mouse button is pressed or released.
Reimplemented from Widget.