JUCE
|
This LookAndFeel subclass implements the juce style from around 2008-12. More...
#include <juce_LookAndFeel_V2.h>
Static Public Member Functions | |
static void | drawBevel (Graphics &, int x, int y, int width, int height, int bevelThickness, const Colour &topLeftColour=Colours::white, const Colour &bottomRightColour=Colours::black, bool useGradient=true, bool sharpEdgeOnOutside=true) |
Draws a 3D raised (or indented) bevel using two colours. | |
static void | drawGlassSphere (Graphics &, float x, float y, float diameter, const Colour &, float outlineThickness) noexcept |
Utility function to draw a shiny, glassy circle (for round LED-type buttons). | |
static void | drawGlassPointer (Graphics &, float x, float y, float diameter, const Colour &, float outlineThickness, int direction) noexcept |
static void | drawGlassLozenge (Graphics &, float x, float y, float width, float height, const Colour &, float outlineThickness, float cornerSize, bool flatOnLeft, bool flatOnRight, bool flatOnTop, bool flatOnBottom) noexcept |
Utility function to draw a shiny, glassy oblong (for text buttons). | |
![]() | |
static LookAndFeel & | getDefaultLookAndFeel () noexcept |
Returns the current default look-and-feel for a component to use when it hasn't got one explicitly set. | |
static void | setDefaultLookAndFeel (LookAndFeel *newDefaultLookAndFeel) noexcept |
Changes the default look-and-feel. | |
This LookAndFeel subclass implements the juce style from around 2008-12.
LookAndFeel_V2::LookAndFeel_V2 | ( | ) |
|
override |
|
overridevirtual |
Implements Button::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements Button::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Draws the text for a TextButton.
Implements Button::LookAndFeelMethods.
|
overridevirtual |
Implements Button::LookAndFeelMethods.
|
overridevirtual |
Draws the contents of a standard ToggleButton.
Implements Button::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements Button::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements Button::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements Button::LookAndFeelMethods.
|
overridevirtual |
Implements AlertWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements AlertWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements AlertWindow::LookAndFeelMethods.
|
overridevirtual |
Implements AlertWindow::LookAndFeelMethods.
|
overridevirtual |
Implements AlertWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Override this function to supply a custom font for the alert window title.
This default implementation will use a boldened and slightly larger version of the alert window message font.
Implements AlertWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Override this function to supply a custom font for the alert window message.
This default implementation will use the default font with height set to 15.0f.
Implements AlertWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements AlertWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
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.
To determine which style of progress-bar to draw call getResolvedStyle().
(Used by progress bars in AlertWindow).
Implements ProgressBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Draws a small image that spins to indicate that something's happening.
This method should use the current time to animate itself, so just keep repainting it every so often.
Implements LookAndFeel.
|
overridevirtual |
Implements ProgressBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Returns the default style a progress bar should use if one hasn't been set.
Implements ProgressBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements ScrollBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
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 |
Implements ScrollBar::LookAndFeelMethods.
|
overridevirtual |
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 coordinate 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 |
Implements ScrollBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Returns the component effect to use for a scrollbar.
Implements ScrollBar::LookAndFeelMethods.
Returns the minimum length in pixels to use for a scrollbar thumb.
Implements ScrollBar::LookAndFeelMethods.
|
overridevirtual |
Returns the default thickness to use for a scrollbar.
Implements ScrollBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Returns the length in pixels to use for a scrollbar button.
Implements ScrollBar::LookAndFeelMethods.
Returns a tick shape for use in yes/no boxes, etc.
Implements LookAndFeel.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
Returns a cross shape for use in yes/no boxes, etc.
Implements LookAndFeel.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements TreeView::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
Implements TreeView::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
Implements TreeView::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Implements TextEditor::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements TextEditor::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements TextEditor::LookAndFeelMethods.
Implements FileBrowserComponent::LookAndFeelMethods.
Implements FileBrowserComponent::LookAndFeelMethods.
|
overridevirtual |
Implements FileBrowserComponent::LookAndFeelMethods.
|
overridevirtual |
Implements FileBrowserComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements FileBrowserComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements FileBrowserComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Override this method to draw a speech-bubble pointing at a specific location on the screen.
Implements BubbleComponent::LookAndFeelMethods.
|
overridevirtual |
Override this method to set effects, such as a drop-shadow, on a BubbleComponent.
This will be called whenever a BubbleComponent is constructed or its look-and-feel changes.
If you need to trigger this callback to update an effect, call sendLookAndFeelChange() on the component.
Implements BubbleComponent::LookAndFeelMethods.
Fills the background of a popup menu component.
Reimplemented from PopupMenu::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Fills the background of a popup menu component.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Draws one of the items in a popup menu.
Reimplemented from PopupMenu::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Draws one of the items in a popup menu.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Reimplemented from PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Returns the size and style of font to use in popup menus.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Reimplemented from PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Finds the best size for an item in a popup menu.
Reimplemented from PopupMenu::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Finds the best size for an item in a popup menu.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4, and LookAndFeel_V3.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Return true if you want your popup menus to scale with the target component's AffineTransform or scale factor.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Reimplemented from PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implement this to draw some custom decoration between the columns of the popup menu.
getPopupMenuColumnSeparatorWidthWithOptions
must return a positive value in order to display the separator.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Return the amount of space that should be left between popup menu columns.
Implements PopupMenu::LookAndFeelMethods.
|
overridevirtual |
Implements ComboBox::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4, and LookAndFeel_V3.
Implements ComboBox::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Implements ComboBox::LookAndFeelMethods.
Implements ComboBox::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements ComboBox::LookAndFeelMethods.
|
overridevirtual |
Implements ComboBox::LookAndFeelMethods.
Implements Label::LookAndFeelMethods.
Implements Label::LookAndFeelMethods.
|
overridevirtual |
Implements Label::LookAndFeelMethods.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Implements Slider::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Implements Slider::LookAndFeelMethods.
Implements Slider::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
Implements Slider::LookAndFeelMethods.
Implements Slider::LookAndFeelMethods.
|
overridevirtual |
Implements Slider::LookAndFeelMethods.
|
overridevirtual |
returns the bounds for a tooltip at the given screen coordinate, constrained within the given desktop area.
Implements TooltipWindow::LookAndFeelMethods.
|
overridevirtual |
Implements TooltipWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Implements FilenameComponent::LookAndFeelMethods.
|
overridevirtual |
Implements FilenameComponent::LookAndFeelMethods.
|
overridevirtual |
Implements ConcertinaPanel::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements ResizableWindow::LookAndFeelMethods.
|
overridevirtual |
Implements ResizableWindow::LookAndFeelMethods.
|
overridevirtual |
Implements ResizableWindow::LookAndFeelMethods.
|
overridevirtual |
Implements ResizableWindow::LookAndFeelMethods.
|
overridevirtual |
Implements DocumentWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Implements DocumentWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements DocumentWindow::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Creates a drop-shadower for a given component, if required.
Implements LookAndFeel.
|
overridevirtual |
Creates a focus outline for a given component, if required.
Implements LookAndFeel.
|
overridevirtual |
Implements StretchableLayoutResizerBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3, and LookAndFeel_V4.
|
overridevirtual |
Implements GroupComponent::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
Implements TabbedButtonBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements TabbedButtonBar::LookAndFeelMethods.
|
overridevirtual |
Implements ImageButton::LookAndFeelMethods.
|
overridevirtual |
Implements TableHeaderComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V3.
|
overridevirtual |
Implements TableHeaderComponent::LookAndFeelMethods.
|
overridevirtual |
Implements Toolbar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
Implements Toolbar::LookAndFeelMethods.
|
overridevirtual |
Implements Toolbar::LookAndFeelMethods.
|
overridevirtual |
Implements Toolbar::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements PropertyComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements PropertyComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements PropertyComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements PropertyComponent::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements PropertyComponent::LookAndFeelMethods.
|
overridevirtual |
Implements CallOutBox::LookAndFeelMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements CallOutBox::LookAndFeelMethods.
|
overridevirtual |
Implements CallOutBox::LookAndFeelMethods.
|
overridevirtual |
Implements ExtraLookAndFeelBaseClasses::AudioDeviceSelectorComponentMethods.
Reimplemented in LookAndFeel_V4.
|
overridevirtual |
Implements ExtraLookAndFeelBaseClasses::KeyMappingEditorComponentMethods.
Reimplemented in LookAndFeel_V3.
Implements SidePanel::LookAndFeelMethods.
|
overridevirtual |
Implements SidePanel::LookAndFeelMethods.
Implements SidePanel::LookAndFeelMethods.
|
static |
Draws a 3D raised (or indented) bevel using two colours.
The bevel is drawn inside the given rectangle, and greater bevel thicknesses extend inwards.
The top-left colour is used for the top- and left-hand edges of the bevel; the bottom-right colour is used for the bottom- and right-hand edges.
If useGradient is true, then the bevel fades out to make it look more curved and less angular. If sharpEdgeOnOutside is true, the outside of the bevel is sharp, and it fades towards the centre; if sharpEdgeOnOutside is false, then the centre edges are sharp and it fades towards the outside.
|
staticnoexcept |
Utility function to draw a shiny, glassy circle (for round LED-type buttons).
|
staticnoexcept |
|
staticnoexcept |
Utility function to draw a shiny, glassy oblong (for text buttons).