Vital
|
A template class that wraps a given ComponentType and automatically redraws an OpenGlImageComponent on mouse events. More...
#include <open_gl_image_component.h>
Public Member Functions | |
virtual void | mouseDown (const MouseEvent &e) override |
virtual void | mouseUp (const MouseEvent &e) override |
virtual void | mouseDoubleClick (const MouseEvent &e) override |
virtual void | mouseEnter (const MouseEvent &e) override |
virtual void | mouseExit (const MouseEvent &e) override |
virtual void | mouseWheelMove (const MouseEvent &e, const MouseWheelDetails &wheel) override |
OpenGlImageComponent * | getImageComponent () |
Gets the underlying OpenGlImageComponent. | |
virtual void | redoImage () |
Redraws the image after a state change. | |
Protected Attributes | |
OpenGlImageComponent | image_component_ |
The OpenGlImageComponent for rendering this component. | |
A template class that wraps a given ComponentType and automatically redraws an OpenGlImageComponent on mouse events.
This class automatically triggers redraws of the image whenever mouse events occur, ensuring the image stays up-to-date with the component's state.
|
inline |
Gets the underlying OpenGlImageComponent.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlinevirtual |
Redraws the image after a state change.
|
protected |
The OpenGlImageComponent for rendering this component.