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

Used to modify the appearance of the application. More...

#include <CustomLookAndFeel.h>

List of all members.

Public Member Functions

 CustomLookAndFeel ()
 ~CustomLookAndFeel ()
const Typeface::Ptr getTypefaceForFont (const Font &font)
void drawTabButton (Graphics &g, int w, int h, const Colour &preferredColour, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation, bool isMouseOver, bool isMouseDown, bool isFrontTab)
void drawTabButtonText (Graphics &g, int x, int y, int w, int h, const Colour &preferredBackgroundColour, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation o, bool isMouseOver, bool isMouseDown, bool isFrontTab)
int getTabButtonBestWidth (int tabIndex, const String &text, int tabDepth, Button &button)
int getTabButtonSpaceAroundImage ()
void drawTabAreaBehindFrontButton (Graphics &g, int w, int h, TabbedButtonBar &tabBar, TabbedButtonBar::Orientation o)
int getTabButtonOverlap (int tabDepth)
void drawScrollbarButton (Graphics &g, ScrollBar &scrollbar, int width, int height, int buttonDirection, bool isScrollBarVertical, bool isMouseOverButton, bool isButtonDown)
void drawScrollbar (Graphics &g, ScrollBar &scrollbar, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown)
void drawLinearSliderThumb (Graphics &g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle style, Slider &slider)
void drawLinearSliderBackground (Graphics &g, int x, int y, int width, int height, float, float, float, const Slider::SliderStyle, Slider &slider)
int getSliderThumbRadius (Slider &slider)
void drawSliderKnob (Graphics &g, const float x, const float y, const float diameter, const Colour &colour, const float outlineThickness) throw ()
void drawGlassPointer (Graphics &g, const float x, const float y, const float diameter, const Colour &colour, const float outlineThickness, const int direction) throw ()
void drawComboBox (Graphics &g, int width, int height, const bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &box)

Detailed Description

Used to modify the appearance of the application.

Currently contains methods for drawing custom tabs, scroll bars, and sliders. It also takes care of custom fonts via getTypefaceForFont().

See also:
MainWindow

Constructor & Destructor Documentation

CustomLookAndFeel::CustomLookAndFeel ( )
CustomLookAndFeel::~CustomLookAndFeel ( )

Member Function Documentation

const Typeface::Ptr CustomLookAndFeel::getTypefaceForFont ( const Font &  font)
void CustomLookAndFeel::drawTabButton ( Graphics &  g,
int  w,
int  h,
const Colour &  preferredColour,
int  tabIndex,
const String &  text,
Button &  button,
TabbedButtonBar::Orientation  ,
bool  isMouseOver,
bool  isMouseDown,
bool  isFrontTab 
)
void CustomLookAndFeel::drawTabButtonText ( Graphics &  g,
int  x,
int  y,
int  w,
int  h,
const Colour &  preferredBackgroundColour,
int  tabIndex,
const String &  text,
Button &  button,
TabbedButtonBar::Orientation  o,
bool  isMouseOver,
bool  isMouseDown,
bool  isFrontTab 
)
int CustomLookAndFeel::getTabButtonBestWidth ( int  tabIndex,
const String &  text,
int  tabDepth,
Button &  button 
)
int CustomLookAndFeel::getTabButtonSpaceAroundImage ( )
void CustomLookAndFeel::drawTabAreaBehindFrontButton ( Graphics &  g,
int  w,
int  h,
TabbedButtonBar &  tabBar,
TabbedButtonBar::Orientation  o 
)
int CustomLookAndFeel::getTabButtonOverlap ( int  tabDepth)
void CustomLookAndFeel::drawScrollbarButton ( Graphics &  g,
ScrollBar &  scrollbar,
int  width,
int  height,
int  buttonDirection,
bool  isScrollBarVertical,
bool  isMouseOverButton,
bool  isButtonDown 
)
void CustomLookAndFeel::drawScrollbar ( Graphics &  g,
ScrollBar &  scrollbar,
int  x,
int  y,
int  width,
int  height,
bool  isScrollbarVertical,
int  thumbStartPosition,
int  thumbSize,
bool  isMouseOver,
bool  isMouseDown 
)
void CustomLookAndFeel::drawLinearSliderThumb ( Graphics &  g,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  style,
Slider &  slider 
)
void CustomLookAndFeel::drawLinearSliderBackground ( Graphics &  g,
int  x,
int  y,
int  width,
int  height,
float  ,
float  ,
float  ,
const Slider::SliderStyle  ,
Slider &  slider 
)
int CustomLookAndFeel::getSliderThumbRadius ( Slider &  slider)
void CustomLookAndFeel::drawSliderKnob ( Graphics &  g,
const float  x,
const float  y,
const float  diameter,
const Colour &  colour,
const float  outlineThickness 
) throw ()
void CustomLookAndFeel::drawGlassPointer ( Graphics &  g,
const float  x,
const float  y,
const float  diameter,
const Colour &  colour,
const float  outlineThickness,
const int  direction 
) throw ()
void CustomLookAndFeel::drawComboBox ( Graphics &  g,
int  width,
int  height,
const bool  isButtonDown,
int  buttonX,
int  buttonY,
int  buttonW,
int  buttonH,
ComboBox &  box 
)

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