Used to show and hide the file browser within the ControlPanel. More...
#include <ControlPanel.h>
Public Member Functions | |
ControlPanelButton (ControlPanel *cp_) | |
~ControlPanelButton () | |
bool | isOpen () |
Returns the open/closed state of the ControlPanelButton. | |
void | toggleState () |
Toggles the open/closed state of the ControlPanelButton. | |
void | newOpenGLContextCreated () |
Initializes an OpenGL context in which drawing occurs. | |
void | renderOpenGL () |
Draws the button. | |
void | drawButton () |
Draws the button. | |
void | mouseDown (const MouseEvent &e) |
Responds to mouse clicks within 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 |
Used to show and hide the file browser within the ControlPanel.
The ControlPanel contains a JUCE FilenameComponent used to change the data directory. When not in use, this component can be hidden using the ControlPanelButton.
ControlPanelButton::ControlPanelButton | ( | ControlPanel * | cp_ | ) |
ControlPanelButton::~ControlPanelButton | ( | ) |
bool ControlPanelButton::isOpen | ( | ) |
Returns the open/closed state of the ControlPanelButton.
void ControlPanelButton::toggleState | ( | ) |
Toggles the open/closed state of the ControlPanelButton.
void ControlPanelButton::newOpenGLContextCreated | ( | ) |
Initializes an OpenGL context in which drawing occurs.
void ControlPanelButton::renderOpenGL | ( | ) |
Draws the button.
void ControlPanelButton::drawButton | ( | ) |
Draws the button.
void ControlPanelButton::mouseDown | ( | const MouseEvent & | e | ) |
Responds to mouse clicks within the button.
Reimplemented from OpenGLCanvas.