The original Juce look-and-feel. More...
Inherits LookAndFeel.
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 ImageEffectFilter * | getScrollbarEffect () |
| 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 Button * | createSliderButton (bool isIncrement) |
| virtual ImageEffectFilter * | getSliderEffect () |
| virtual void | drawCornerResizer (Graphics &g, int w, int h, bool isMouseOver, bool isMouseDragging) |
| virtual Button * | createDocumentWindowButton (int buttonType) |
| virtual void | positionDocumentWindowButtons (DocumentWindow &window, int titleBarX, int titleBarY, int titleBarW, int titleBarH, Button *minimiseButton, Button *maximiseButton, Button *closeButton, bool positionTitleBarButtonsOnLeft) |
The original Juce look-and-feel.
| OldSchoolLookAndFeel::OldSchoolLookAndFeel | ( | ) |
Creates the default JUCE look and feel.
| virtual OldSchoolLookAndFeel::~OldSchoolLookAndFeel | ( | ) | [virtual] |
Destructor.
| 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.
| g | the context to draw into | |
| scrollbar | the bar itself | |
| width | the width of the button | |
| height | the height of the button | |
| buttonDirection | the direction of the button, where 0 = up, 1 = right, 2 = down, 3 = left | |
| isScrollbarVertical | true if it's a vertical bar, false if horizontal | |
| isMouseOverButton | whether the mouse is currently over the button (also true if it's held down) | |
| isButtonDown | whether 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.
| g | the context to draw into | |
| scrollbar | the bar itself | |
| x | the x position of the left edge of the thumb area to draw in | |
| y | the y position of the top edge of the thumb area to draw in | |
| width | the width of the thumb area to draw in | |
| height | the height of the thumb area to draw in | |
| isScrollbarVertical | true if it's a vertical bar, false if horizontal | |
| thumbStartPosition | for vertical bars, the y co-ordinate of the top of the thumb, or its x position for horizontal bars | |
| thumbSize | for vertical bars, the height of the thumb, or its width for horizontal bars. This may be 0 if the thumb shouldn't be drawn. | |
| isMouseOver | whether the mouse is over the thumb area, also true if the mouse is currently dragging the thumb | |
| isMouseDown | whether the mouse is currently dragging the scrollbar |
Reimplemented from LookAndFeel.
| virtual ImageEffectFilter* OldSchoolLookAndFeel::getScrollbarEffect | ( | ) | [virtual] |
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.
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.
| virtual ImageEffectFilter* OldSchoolLookAndFeel::getSliderEffect | ( | ) | [virtual] |
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.
1.6.3