JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
OldSchoolLookAndFeel Class Reference

The original Juce look-and-feel. More...

Inherits LookAndFeel.

List of all members.

Public Member Functions

 OldSchoolLookAndFeel ()
 Creates the default JUCE look and feel.
virtual ~OldSchoolLookAndFeel ()
 Destructor.
virtual void drawButtonBackground (Graphics &g, Button &button, const Colour &backgroundColour, bool isMouseOverButton, bool isButtonDown)
 Draws the lozenge-shaped background for a standard button.
virtual void drawToggleButton (Graphics &g, ToggleButton &button, bool isMouseOverButton, bool isButtonDown)
 Draws the contents of a standard ToggleButton.
virtual void drawTickBox (Graphics &g, Component &component, float x, float y, float w, float h, bool ticked, bool isEnabled, bool isMouseOverButton, bool isButtonDown)
virtual void drawProgressBar (Graphics &g, ProgressBar &progressBar, int width, int height, double progress, const String &textToShow)
 Draws a progress bar.
virtual void drawScrollbarButton (Graphics &g, ScrollBar &scrollbar, int width, int height, int buttonDirection, bool isScrollbarVertical, bool isMouseOverButton, bool isButtonDown)
 Draws one of the buttons on a scrollbar.
virtual void drawScrollbar (Graphics &g, ScrollBar &scrollbar, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown)
 Draws the thumb area of a scrollbar.
virtual ImageEffectFiltergetScrollbarEffect ()
 Returns the component effect to use for a scrollbar.
virtual void drawTextEditorOutline (Graphics &g, int width, int height, TextEditor &textEditor)
virtual void drawPopupMenuBackground (Graphics &g, int width, int height)
 Fills the background of a popup menu component.
virtual void drawMenuBarBackground (Graphics &g, int width, int height, bool isMouseOverBar, MenuBarComponent &menuBar)
virtual void drawComboBox (Graphics &g, int width, int height, bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &box)
virtual const Font getComboBoxFont (ComboBox &box)
virtual void drawLinearSlider (Graphics &g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle style, Slider &slider)
virtual int getSliderThumbRadius (Slider &slider)
virtual ButtoncreateSliderButton (bool isIncrement)
virtual ImageEffectFiltergetSliderEffect ()
virtual void drawCornerResizer (Graphics &g, int w, int h, bool isMouseOver, bool isMouseDragging)
virtual ButtoncreateDocumentWindowButton (int buttonType)
virtual void positionDocumentWindowButtons (DocumentWindow &window, int titleBarX, int titleBarY, int titleBarW, int titleBarH, Button *minimiseButton, Button *maximiseButton, Button *closeButton, bool positionTitleBarButtonsOnLeft)

Detailed Description

The original Juce look-and-feel.


Constructor & Destructor Documentation

Creates the default JUCE look and feel.

Destructor.


Member Function Documentation

virtual void OldSchoolLookAndFeel::drawButtonBackground ( Graphics g,
Button button,
const Colour backgroundColour,
bool  isMouseOverButton,
bool  isButtonDown 
) [virtual]

Draws the lozenge-shaped background for a standard button.

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawToggleButton ( Graphics g,
ToggleButton button,
bool  isMouseOverButton,
bool  isButtonDown 
) [virtual]

Draws the contents of a standard ToggleButton.

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawTickBox ( Graphics g,
Component component,
float  x,
float  y,
float  w,
float  h,
bool  ticked,
bool  isEnabled,
bool  isMouseOverButton,
bool  isButtonDown 
) [virtual]

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawProgressBar ( Graphics g,
ProgressBar progressBar,
int  width,
int  height,
double  progress,
const String textToShow 
) [virtual]

Draws a progress bar.

If the progress value is less than 0 or greater than 1.0, this should draw a spinning bar that fills the whole space (i.e. to say that the app is still busy but the progress isn't known). It can use the current time as a basis for playing an animation.

(Used by progress bars in AlertWindow).

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawScrollbarButton ( Graphics g,
ScrollBar scrollbar,
int  width,
int  height,
int  buttonDirection,
bool  isScrollbarVertical,
bool  isMouseOverButton,
bool  isButtonDown 
) [virtual]

Draws one of the buttons on a scrollbar.

Parameters:
gthe context to draw into
scrollbarthe bar itself
widththe width of the button
heightthe height of the button
buttonDirectionthe direction of the button, where 0 = up, 1 = right, 2 = down, 3 = left
isScrollbarVerticaltrue if it's a vertical bar, false if horizontal
isMouseOverButtonwhether the mouse is currently over the button (also true if it's held down)
isButtonDownwhether the mouse button's held down

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawScrollbar ( Graphics g,
ScrollBar scrollbar,
int  x,
int  y,
int  width,
int  height,
bool  isScrollbarVertical,
int  thumbStartPosition,
int  thumbSize,
bool  isMouseOver,
bool  isMouseDown 
) [virtual]

Draws the thumb area of a scrollbar.

Parameters:
gthe context to draw into
scrollbarthe bar itself
xthe x position of the left edge of the thumb area to draw in
ythe y position of the top edge of the thumb area to draw in
widththe width of the thumb area to draw in
heightthe height of the thumb area to draw in
isScrollbarVerticaltrue if it's a vertical bar, false if horizontal
thumbStartPositionfor vertical bars, the y co-ordinate of the top of the thumb, or its x position for horizontal bars
thumbSizefor vertical bars, the height of the thumb, or its width for horizontal bars. This may be 0 if the thumb shouldn't be drawn.
isMouseOverwhether the mouse is over the thumb area, also true if the mouse is currently dragging the thumb
isMouseDownwhether the mouse is currently dragging the scrollbar

Reimplemented from LookAndFeel.

Returns the component effect to use for a scrollbar.

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawTextEditorOutline ( Graphics g,
int  width,
int  height,
TextEditor textEditor 
) [virtual]

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawPopupMenuBackground ( Graphics g,
int  width,
int  height 
) [virtual]

Fills the background of a popup menu component.

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawMenuBarBackground ( Graphics g,
int  width,
int  height,
bool  isMouseOverBar,
MenuBarComponent menuBar 
) [virtual]

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawComboBox ( Graphics g,
int  width,
int  height,
bool  isButtonDown,
int  buttonX,
int  buttonY,
int  buttonW,
int  buttonH,
ComboBox box 
) [virtual]

Reimplemented from LookAndFeel.

virtual const Font OldSchoolLookAndFeel::getComboBoxFont ( ComboBox box) [virtual]

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawLinearSlider ( Graphics g,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  style,
Slider slider 
) [virtual]

Reimplemented from LookAndFeel.

virtual int OldSchoolLookAndFeel::getSliderThumbRadius ( Slider slider) [virtual]

Reimplemented from LookAndFeel.

virtual Button* OldSchoolLookAndFeel::createSliderButton ( bool  isIncrement) [virtual]

Reimplemented from LookAndFeel.

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::drawCornerResizer ( Graphics g,
int  w,
int  h,
bool  isMouseOver,
bool  isMouseDragging 
) [virtual]

Reimplemented from LookAndFeel.

virtual Button* OldSchoolLookAndFeel::createDocumentWindowButton ( int  buttonType) [virtual]

Reimplemented from LookAndFeel.

virtual void OldSchoolLookAndFeel::positionDocumentWindowButtons ( DocumentWindow window,
int  titleBarX,
int  titleBarY,
int  titleBarW,
int  titleBarH,
Button minimiseButton,
Button maximiseButton,
Button closeButton,
bool  positionTitleBarButtonsOnLeft 
) [virtual]

Reimplemented from LookAndFeel.


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