A button used to show/hide the EditorViewport. More...
#include <UIComponent.h>
Public Member Functions | |
EditorViewportButton (UIComponent *ui) | |
~EditorViewportButton () | |
bool | isOpen () |
Returns the open/closed state of the button. | |
void | newOpenGLContextCreated () |
Configures a new OpenGL context for drawing. | |
void | renderOpenGL () |
Draws the button. | |
void | drawName () |
Draws the name of the button. | |
void | drawButton () |
Draws the button. | |
void | toggleState () |
Switches the open/closed state of the button. | |
void | mouseDown (const MouseEvent &e) |
Called when a mouse click begins inside the boundaries of the button. | |
![]() | |
OpenGLCanvas () | |
~OpenGLCanvas () | |
void | setUp2DCanvas () |
void | activateAntiAliasing () |
virtual void | refreshState () |
void | resized () |
virtual void | canvasWasResized () |
void | mouseDrag (const MouseEvent &e) |
void | mouseMove (const MouseEvent &e) |
void | mouseUp (const MouseEvent &e) |
void | mouseWheelMove (const MouseEvent &, float, float) |
virtual void | mouseDownInCanvas (const MouseEvent &e) |
virtual void | mouseDragInCanvas (const MouseEvent &e) |
virtual void | mouseMoveInCanvas (const MouseEvent &e) |
virtual void | mouseUpInCanvas (const MouseEvent &e) |
virtual void | mouseWheelMoveInCanvas (const MouseEvent &, float, float) |
void | startCallbacks () |
void | stopCallbacks () |
int | getScrollAmount () |
int | getScrollBarWidth () |
void | drawScrollBars () |
void | drawRoundedRect (float x, float y, float w, float h, float r, int n) |
FTGLPixmapFont * | getFont (int fontCode) |
virtual int | getHeaderHeight () |
virtual int | getFooterHeight () |
void | setClearColor (int colorCode) |
Additional Inherited Members | |
![]() | |
enum | colorCodes { white, black, lightgrey, darkgrey } |
enum | fontCodes { miso_regular = 0, miso_bold = 1, miso_light = 2, bebas_neue = 3, ostrich = 4, cpmono_extra_light = 5, cpmono_light = 6, cpmono_plain = 7, cpmono_bold = 8, nordic = 9, silkscreen = 10 } |
![]() | |
virtual int | getTotalHeight () |
void | showScrollBars () |
![]() | |
int | scrollPix |
bool | animationIsActive |
int | refreshMs |
A button used to show/hide the EditorViewport.
EditorViewportButton::EditorViewportButton | ( | UIComponent * | ui | ) |
EditorViewportButton::~EditorViewportButton | ( | ) |
bool EditorViewportButton::isOpen | ( | ) |
Returns the open/closed state of the button.
void EditorViewportButton::newOpenGLContextCreated | ( | ) |
Configures a new OpenGL context for drawing.
void EditorViewportButton::renderOpenGL | ( | ) |
Draws the button.
void EditorViewportButton::drawName | ( | ) |
Draws the name of the button.
void EditorViewportButton::drawButton | ( | ) |
Draws the button.
void EditorViewportButton::toggleState | ( | ) |
Switches the open/closed state of the button.
void EditorViewportButton::mouseDown | ( | const MouseEvent & | e | ) |
Called when a mouse click begins inside the boundaries of the button.
Used to toggle the button's open/closed state.
Reimplemented from OpenGLCanvas.