Open Ephys GUI
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions
ControlPanelButton Class Reference

Used to show and hide the file browser within the ControlPanel. More...

#include <ControlPanel.h>

Inheritance diagram for ControlPanelButton:
OpenGLCanvas

List of all members.

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.
- Public Member Functions inherited from OpenGLCanvas
 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

- Public Types inherited from OpenGLCanvas
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
}
- Protected Member Functions inherited from OpenGLCanvas
virtual int getTotalHeight ()
void showScrollBars ()
- Protected Attributes inherited from OpenGLCanvas
int scrollPix
bool animationIsActive
int refreshMs

Detailed Description

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.

See also:
ControlPanel

Constructor & Destructor Documentation

ControlPanelButton::ControlPanelButton ( ControlPanel cp_)
ControlPanelButton::~ControlPanelButton ( )

Member Function Documentation

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.


The documentation for this class was generated from the following file: