JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
juce::LookAndFeel_V4 Class Reference

The latest JUCE look-and-feel style, as introduced in 2017. More...

#include "juce_LookAndFeel_V4.h"

Inheritance diagram for juce::LookAndFeel_V4:
juce::LookAndFeel_V3 juce::LookAndFeel_V2 juce::LookAndFeel juce::SidePanel::LookAndFeelMethods juce::ExtraLookAndFeelBaseClasses::LassoComponentMethods juce::ExtraLookAndFeelBaseClasses::AudioDeviceSelectorComponentMethods juce::ExtraLookAndFeelBaseClasses::KeyMappingEditorComponentMethods juce::StretchableLayoutResizerBar::LookAndFeelMethods juce::ProgressBar::LookAndFeelMethods juce::ConcertinaPanel::LookAndFeelMethods juce::Toolbar::LookAndFeelMethods juce::CallOutBox::LookAndFeelMethods juce::TableHeaderComponent::LookAndFeelMethods juce::GroupComponent::LookAndFeelMethods juce::FilenameComponent::LookAndFeelMethods juce::PropertyComponent::LookAndFeelMethods juce::TabbedButtonBar::LookAndFeelMethods juce::TooltipWindow::LookAndFeelMethods juce::DocumentWindow::LookAndFeelMethods juce::ResizableWindow::LookAndFeelMethods juce::Slider::LookAndFeelMethods juce::Label::LookAndFeelMethods juce::ComboBox::LookAndFeelMethods juce::PopupMenu::LookAndFeelMethods juce::AlertWindow::LookAndFeelMethods juce::BubbleComponent::LookAndFeelMethods juce::TreeView::LookAndFeelMethods juce::FileBrowserComponent::LookAndFeelMethods juce::TextEditor::LookAndFeelMethods juce::ImageButton::LookAndFeelMethods juce::Button::LookAndFeelMethods juce::ScrollBar::LookAndFeelMethods

Classes

class  ColourScheme
 A struct containing the set of colours to apply to the GUI. More...
 

Public Member Functions

 LookAndFeel_V4 ()
 Creates a LookAndFeel_V4 object with a default colour scheme.
 
 LookAndFeel_V4 (ColourScheme)
 Creates a LookAndFeel_V4 object with a given colour scheme.
 
 ~LookAndFeel_V4 () override
 Destructor.
 
void setColourScheme (ColourScheme)
 
ColourSchemegetCurrentColourScheme () noexcept
 
ButtoncreateDocumentWindowButton (int) override
 
void positionDocumentWindowButtons (DocumentWindow &, int, int, int, int, Button *, Button *, Button *, bool) override
 
void drawDocumentWindowTitleBar (DocumentWindow &, Graphics &, int, int, int, int, const Image *, bool) override
 
Font getTextButtonFont (TextButton &, int buttonHeight) override
 
void drawButtonBackground (Graphics &, Button &, const Colour &backgroundColour, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 
void drawToggleButton (Graphics &, ToggleButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 Draws the contents of a standard ToggleButton.
 
void drawTickBox (Graphics &, Component &, float x, float y, float w, float h, bool ticked, bool isEnabled, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 
void changeToggleButtonWidthToFitText (ToggleButton &) override
 
AlertWindowcreateAlertWindow (const String &title, const String &message, const String &button1, const String &button2, const String &button3, MessageBoxIconType iconType, int numButtons, Component *associatedComponent) override
 
void drawAlertBox (Graphics &, AlertWindow &, const Rectangle< int > &textArea, TextLayout &) override
 
int getAlertWindowButtonHeight () override
 
Font getAlertWindowTitleFont () override
 Override this function to supply a custom font for the alert window title.
 
Font getAlertWindowMessageFont () override
 Override this function to supply a custom font for the alert window message.
 
Font getAlertWindowFont () override
 
void drawProgressBar (Graphics &, ProgressBar &, int width, int height, double progress, const String &) override
 Draws a progress bar.
 
bool isProgressBarOpaque (ProgressBar &) override
 
ProgressBar::Style getDefaultProgressBarStyle (const ProgressBar &) override
 Returns the default style a progress bar should use if one hasn't been set.
 
int getDefaultScrollbarWidth () override
 Returns the default thickness to use for a scrollbar.
 
void drawScrollbar (Graphics &, ScrollBar &, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown) override
 Draws the thumb area of a scrollbar.
 
Path getTickShape (float height) override
 Returns a tick shape for use in yes/no boxes, etc.
 
Path getCrossShape (float height) override
 Returns a cross shape for use in yes/no boxes, etc.
 
void fillTextEditorBackground (Graphics &, int width, int height, TextEditor &) override
 
void drawTextEditorOutline (Graphics &, int width, int height, TextEditor &) override
 
ButtoncreateFileBrowserGoUpButton () override
 
void layoutFileBrowserComponent (FileBrowserComponent &, DirectoryContentsDisplayComponent *, FilePreviewComponent *, ComboBox *currentPathBox, TextEditor *filenameBox, Button *goUpButton) override
 
void drawFileBrowserRow (Graphics &, int width, int height, const File &file, const String &filename, Image *icon, const String &fileSizeDescription, const String &fileTimeDescription, bool isDirectory, bool isItemSelected, int itemIndex, DirectoryContentsDisplayComponent &) override
 
void drawPopupMenuItem (Graphics &, const Rectangle< int > &area, bool isSeparator, bool isActive, bool isHighlighted, bool isTicked, bool hasSubMenu, const String &text, const String &shortcutKeyText, const Drawable *icon, const Colour *textColour) override
 Draws one of the items in a popup menu.
 
void getIdealPopupMenuItemSize (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight) override
 Finds the best size for an item in a popup menu.
 
void drawMenuBarBackground (Graphics &, int width, int height, bool isMouseOverBar, MenuBarComponent &) override
 
void drawMenuBarItem (Graphics &, int width, int height, int itemIndex, const String &itemText, bool isMouseOverItem, bool isMenuOpen, bool isMouseOverBar, MenuBarComponent &) override
 
void drawComboBox (Graphics &, int width, int height, bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &) override
 
Font getComboBoxFont (ComboBox &) override
 
void positionComboBoxText (ComboBox &, Label &) override
 
int getSliderThumbRadius (Slider &) override
 
void drawLinearSlider (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, Slider::SliderStyle, Slider &) override
 
void drawRotarySlider (Graphics &, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider &) override
 
void drawPointer (Graphics &, float x, float y, float diameter, const Colour &, int direction) noexcept
 
LabelcreateSliderTextBox (Slider &) override
 
void drawTooltip (Graphics &, const String &text, int width, int height) override
 
void drawConcertinaPanelHeader (Graphics &, const Rectangle< int > &area, bool isMouseOver, bool isMouseDown, ConcertinaPanel &, Component &panel) override
 
void drawLevelMeter (Graphics &, int, int, float) override
 
void paintToolbarBackground (Graphics &, int width, int height, Toolbar &) override
 
void paintToolbarButtonLabel (Graphics &, int x, int y, int width, int height, const String &text, ToolbarItemComponent &) override
 
void drawPropertyPanelSectionHeader (Graphics &, const String &name, bool isOpen, int width, int height) override
 
void drawPropertyComponentBackground (Graphics &, int width, int height, PropertyComponent &) override
 
void drawPropertyComponentLabel (Graphics &, int width, int height, PropertyComponent &) override
 
Rectangle< intgetPropertyComponentContentPosition (PropertyComponent &) override
 
void drawCallOutBoxBackground (CallOutBox &, Graphics &, const Path &, Image &) override
 
void drawStretchableLayoutResizerBar (Graphics &, int, int, bool, bool, bool) override
 
- Public Member Functions inherited from juce::LookAndFeel_V3
void drawTableHeaderBackground (Graphics &, TableHeaderComponent &) override
 
void drawTreeviewPlusMinusBox (Graphics &, const Rectangle< float > &area, Colour backgroundColour, bool isOpen, bool isMouseOver) override
 
bool areLinesDrawnForTreeView (TreeView &) override
 
int getTreeViewIndentSize (TreeView &) override
 
void drawKeymapChangeButton (Graphics &, int width, int height, Button &button, const String &keyDescription) override
 
void drawPopupMenuBackground (Graphics &, int width, int height) override
 Fills the background of a popup menu component.
 
int getTabButtonOverlap (int tabDepth) override
 
int getTabButtonSpaceAroundImage () override
 
void drawTabButton (TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown) override
 
void drawTabAreaBehindFrontButton (TabbedButtonBar &bar, Graphics &g, int w, int h) override
 
bool areScrollbarButtonsVisible () override
 
void drawLinearSliderBackground (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, Slider::SliderStyle, Slider &) override
 
- Public Member Functions inherited from juce::LookAndFeel_V2
void drawButtonText (Graphics &, TextButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 Draws the text for a TextButton.
 
int getTextButtonWidthToFitText (TextButton &, int buttonHeight) override
 
void drawDrawableButton (Graphics &, DrawableButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 
int getAlertBoxWindowFlags () override
 
Array< intgetWidthsForTextButtons (AlertWindow &, const Array< TextButton * > &) override
 
void drawSpinningWaitAnimation (Graphics &, const Colour &colour, int x, int y, int w, int h) override
 Draws a small image that spins to indicate that something's happening.
 
void drawScrollbarButton (Graphics &, ScrollBar &, int width, int height, int buttonDirection, bool isScrollbarVertical, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 Draws one of the buttons on a scrollbar.
 
ImageEffectFiltergetScrollbarEffect () override
 Returns the component effect to use for a scrollbar.
 
int getMinimumScrollbarThumbSize (ScrollBar &) override
 Returns the minimum length in pixels to use for a scrollbar thumb.
 
int getScrollbarButtonSize (ScrollBar &) override
 Returns the length in pixels to use for a scrollbar button.
 
CaretComponentcreateCaretComponent (Component *keyFocusOwner) override
 
const DrawablegetDefaultFolderImage () override
 
const DrawablegetDefaultDocumentFileImage () override
 
AttributedString createFileChooserHeaderText (const String &title, const String &instructions) override
 
void drawBubble (Graphics &, BubbleComponent &, const Point< float > &tip, const Rectangle< float > &body) override
 Override this method to draw a speech-bubble pointing at a specific location on the screen.
 
void setComponentEffectForBubbleComponent (BubbleComponent &bubbleComponent) override
 Override this method to set effects, such as a drop-shadow, on a BubbleComponent.
 
void drawLasso (Graphics &, Component &) override
 
void drawPopupMenuBackgroundWithOptions (Graphics &, int width, int height, const PopupMenu::Options &) override
 Fills the background of a popup menu component.
 
void drawPopupMenuItemWithOptions (Graphics &, const Rectangle< int > &area, bool isHighlighted, const PopupMenu::Item &item, const PopupMenu::Options &) override
 Draws one of the items in a popup menu.
 
void drawPopupMenuSectionHeader (Graphics &, const Rectangle< int > &area, const String &sectionName) override
 
void drawPopupMenuSectionHeaderWithOptions (Graphics &, const Rectangle< int > &area, const String &sectionName, const PopupMenu::Options &) override
 
Font getPopupMenuFont () override
 Returns the size and style of font to use in popup menus.
 
void drawPopupMenuUpDownArrow (Graphics &, int width, int height, bool isScrollUpArrow) override
 
void drawPopupMenuUpDownArrowWithOptions (Graphics &, int width, int height, bool isScrollUpArrow, const PopupMenu::Options &) override
 
void getIdealPopupMenuItemSizeWithOptions (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight, const PopupMenu::Options &) override
 Finds the best size for an item in a popup menu.
 
int getMenuWindowFlags () override
 
void preparePopupMenuWindow (Component &) override
 
int getMenuBarItemWidth (MenuBarComponent &, int itemIndex, const String &itemText) override
 
Font getMenuBarFont (MenuBarComponent &, int itemIndex, const String &itemText) override
 
int getDefaultMenuBarHeight () override
 
ComponentgetParentComponentForMenuOptions (const PopupMenu::Options &options) override
 
bool shouldPopupMenuScaleWithTargetComponent (const PopupMenu::Options &options) override
 Return true if you want your popup menus to scale with the target component's AffineTransform or scale factor.
 
int getPopupMenuBorderSize () override
 
int getPopupMenuBorderSizeWithOptions (const PopupMenu::Options &) override
 
void drawPopupMenuColumnSeparatorWithOptions (Graphics &g, const Rectangle< int > &bounds, const PopupMenu::Options &) override
 Implement this to draw some custom decoration between the columns of the popup menu.
 
int getPopupMenuColumnSeparatorWidthWithOptions (const PopupMenu::Options &) override
 Return the amount of space that should be left between popup menu columns.
 
LabelcreateComboBoxTextBox (ComboBox &) override
 
PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox &, Label &) override
 
void drawComboBoxTextWhenNothingSelected (Graphics &, ComboBox &, Label &) override
 
void drawLabel (Graphics &, Label &) override
 
Font getLabelFont (Label &) override
 
BorderSize< intgetLabelBorderSize (Label &) override
 
void drawLinearSliderOutline (Graphics &, int x, int y, int width, int height, Slider::SliderStyle, Slider &) override
 
void drawLinearSliderThumb (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, Slider::SliderStyle, Slider &) override
 
ButtoncreateSliderButton (Slider &, bool isIncrement) override
 
ImageEffectFiltergetSliderEffect (Slider &) override
 
Font getSliderPopupFont (Slider &) override
 
int getSliderPopupPlacement (Slider &) override
 
Slider::SliderLayout getSliderLayout (Slider &) override
 
Rectangle< intgetTooltipBounds (const String &tipText, Point< int > screenPos, Rectangle< int > parentArea) override
 returns the bounds for a tooltip at the given screen coordinate, constrained within the given desktop area.
 
ButtoncreateFilenameComponentBrowseButton (const String &text) override
 
void layoutFilenameComponent (FilenameComponent &, ComboBox *filenameBox, Button *browseButton) override
 
void drawCornerResizer (Graphics &, int w, int h, bool isMouseOver, bool isMouseDragging) override
 
void drawResizableFrame (Graphics &, int w, int h, const BorderSize< int > &) override
 
void fillResizableWindowBackground (Graphics &, int w, int h, const BorderSize< int > &, ResizableWindow &) override
 
void drawResizableWindowBorder (Graphics &, int w, int h, const BorderSize< int > &border, ResizableWindow &) override
 
std::unique_ptr< DropShadowercreateDropShadowerForComponent (Component &) override
 Creates a drop-shadower for a given component, if required.
 
std::unique_ptr< FocusOutlinecreateFocusOutlineForComponent (Component &) override
 Creates a focus outline for a given component, if required.
 
void drawGroupComponentOutline (Graphics &, int w, int h, const String &text, const Justification &, GroupComponent &) override
 
int getTabButtonBestWidth (TabBarButton &, int tabDepth) override
 
Rectangle< intgetTabButtonExtraComponentBounds (const TabBarButton &, Rectangle< int > &textArea, Component &extraComp) override
 
Font getTabButtonFont (TabBarButton &, float height) override
 
void drawTabButtonText (TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown) override
 
void drawTabbedButtonBarBackground (TabbedButtonBar &, Graphics &) override
 
void createTabButtonShape (TabBarButton &, Path &, bool isMouseOver, bool isMouseDown) override
 
void fillTabButtonShape (TabBarButton &, Graphics &, const Path &, bool isMouseOver, bool isMouseDown) override
 
ButtoncreateTabBarExtrasButton () override
 
void drawImageButton (Graphics &, Image *, int imageX, int imageY, int imageW, int imageH, const Colour &overlayColour, float imageOpacity, ImageButton &) override
 
void drawTableHeaderColumn (Graphics &, TableHeaderComponent &, const String &columnName, int columnId, int width, int height, bool isMouseOver, bool isMouseDown, int columnFlags) override
 
ButtoncreateToolbarMissingItemsButton (Toolbar &) override
 
void paintToolbarButtonBackground (Graphics &, int width, int height, bool isMouseOver, bool isMouseDown, ToolbarItemComponent &) override
 
int getPropertyPanelSectionHeaderHeight (const String &sectionTitle) override
 
int getCallOutBoxBorderSize (const CallOutBox &) override
 
float getCallOutBoxCornerSize (const CallOutBox &) override
 
Font getSidePanelTitleFont (SidePanel &) override
 
Justification getSidePanelTitleJustification (SidePanel &) override
 
Path getSidePanelDismissButtonShape (SidePanel &) override
 
- Public Member Functions inherited from juce::LookAndFeel
 LookAndFeel ()
 Creates the default JUCE look and feel.
 
 ~LookAndFeel () override
 Destructor.
 
Colour findColour (int colourId) const noexcept
 Looks for a colour that has been registered with the given colour ID number.
 
void setColour (int colourId, Colour colour) noexcept
 Registers a colour to be used for a particular purpose.
 
bool isColourSpecified (int colourId) const noexcept
 Returns true if the specified colour ID has been explicitly set using the setColour() method.
 
virtual Typeface::Ptr getTypefaceForFont (const Font &)
 Returns the typeface that should be used for a given font.
 
void setDefaultSansSerifTypeface (Typeface::Ptr newDefaultTypeface)
 Allows you to supply a default typeface that will be returned as the default sans-serif font.
 
void setDefaultSansSerifTypefaceName (const String &newName)
 Allows you to change the default sans-serif font.
 
void setUsingNativeAlertWindows (bool shouldUseNativeAlerts)
 Sets whether native alert windows (if available) or standard JUCE AlertWindows drawn with AlertWindow::LookAndFeelMethods will be used.
 
bool isUsingNativeAlertWindows ()
 Returns true if native alert windows will be used (if available).
 
virtual MouseCursor getMouseCursorFor (Component &)
 Override this to get the chance to swap a component's mouse cursor for a customised one.
 
virtual std::unique_ptr< LowLevelGraphicsContextcreateGraphicsContext (const Image &imageToRenderOn, Point< int > origin, const RectangleList< int > &initialClip)
 Creates a new graphics context object.
 
virtual void playAlertSound ()
 Plays the system's default 'beep' noise, to alert the user about something very important.
 

Static Public Member Functions

static ColourScheme getDarkColourScheme ()
 
static ColourScheme getMidnightColourScheme ()
 
static ColourScheme getGreyColourScheme ()
 
static ColourScheme getLightColourScheme ()
 
- Static Public Member Functions inherited from juce::LookAndFeel_V3
static void createTabTextLayout (const TabBarButton &button, float length, float depth, Colour colour, TextLayout &)
 
- Static Public Member Functions inherited from juce::LookAndFeel_V2
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 Public Member Functions inherited from juce::LookAndFeel
static LookAndFeelgetDefaultLookAndFeel () 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.
 

Detailed Description

The latest JUCE look-and-feel style, as introduced in 2017.

See also
LookAndFeel, LookAndFeel_V1, LookAndFeel_V2, LookAndFeel_V3

@tags{GUI}

Definition at line 36 of file juce_LookAndFeel_V4.h.

Constructor & Destructor Documentation

◆ LookAndFeel_V4() [1/2]

juce::LookAndFeel_V4::LookAndFeel_V4 ( )

Creates a LookAndFeel_V4 object with a default colour scheme.

Definition at line 61 of file juce_LookAndFeel_V4.cpp.

◆ LookAndFeel_V4() [2/2]

juce::LookAndFeel_V4::LookAndFeel_V4 ( ColourScheme  scheme)

Creates a LookAndFeel_V4 object with a given colour scheme.

Definition at line 66 of file juce_LookAndFeel_V4.cpp.

◆ ~LookAndFeel_V4()

juce::LookAndFeel_V4::~LookAndFeel_V4 ( )
override

Destructor.

Definition at line 71 of file juce_LookAndFeel_V4.cpp.

Member Function Documentation

◆ changeToggleButtonWidthToFitText()

void juce::LookAndFeel_V4::changeToggleButtonWidthToFitText ( ToggleButton button)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 373 of file juce_LookAndFeel_V4.cpp.

◆ createAlertWindow()

AlertWindow * juce::LookAndFeel_V4::createAlertWindow ( const String title,
const String message,
const String button1,
const String button2,
const String button3,
MessageBoxIconType  iconType,
int  numButtons,
Component associatedComponent 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 384 of file juce_LookAndFeel_V4.cpp.

◆ createDocumentWindowButton()

Button * juce::LookAndFeel_V4::createDocumentWindowButton ( int  buttonType)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 153 of file juce_LookAndFeel_V4.cpp.

◆ createFileBrowserGoUpButton()

Button * juce::LookAndFeel_V4::createFileBrowserGoUpButton ( )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 713 of file juce_LookAndFeel_V4.cpp.

◆ createSliderTextBox()

Label * juce::LookAndFeel_V4::createSliderTextBox ( Slider slider)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1131 of file juce_LookAndFeel_V4.cpp.

◆ drawAlertBox()

void juce::LookAndFeel_V4::drawAlertBox ( Graphics g,
AlertWindow alert,
const Rectangle< int > &  textArea,
TextLayout textLayout 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 405 of file juce_LookAndFeel_V4.cpp.

◆ drawButtonBackground()

void juce::LookAndFeel_V4::drawButtonBackground ( Graphics g,
Button button,
const Colour backgroundColour,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 281 of file juce_LookAndFeel_V4.cpp.

◆ drawCallOutBoxBackground()

void juce::LookAndFeel_V4::drawCallOutBoxBackground ( CallOutBox box,
Graphics g,
const Path path,
Image cachedImage 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1300 of file juce_LookAndFeel_V4.cpp.

◆ drawComboBox()

void juce::LookAndFeel_V4::drawComboBox ( Graphics g,
int  width,
int  height,
bool  isButtonDown,
int  buttonX,
int  buttonY,
int  buttonW,
int  buttonH,
ComboBox box 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 920 of file juce_LookAndFeel_V4.cpp.

◆ drawConcertinaPanelHeader()

void juce::LookAndFeel_V4::drawConcertinaPanelHeader ( Graphics g,
const Rectangle< int > &  area,
bool  isMouseOver,
bool  isMouseDown,
ConcertinaPanel concertina,
Component panel 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 1161 of file juce_LookAndFeel_V4.cpp.

◆ drawDocumentWindowTitleBar()

void juce::LookAndFeel_V4::drawDocumentWindowTitleBar ( DocumentWindow window,
Graphics g,
int  w,
int  h,
int  titleSpaceX,
int  titleSpaceW,
const Image icon,
bool  drawTitleTextOnLeft 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 226 of file juce_LookAndFeel_V4.cpp.

◆ drawFileBrowserRow()

void juce::LookAndFeel_V4::drawFileBrowserRow ( Graphics g,
int  width,
int  height,
const File file,
const String filename,
Image icon,
const String fileSizeDescription,
const String fileTimeDescription,
bool  isDirectory,
bool  isItemSelected,
int  itemIndex,
DirectoryContentsDisplayComponent dcc 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 759 of file juce_LookAndFeel_V4.cpp.

◆ drawLevelMeter()

void juce::LookAndFeel_V4::drawLevelMeter ( Graphics g,
int  width,
int  height,
float  level 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1179 of file juce_LookAndFeel_V4.cpp.

◆ drawLinearSlider()

void juce::LookAndFeel_V4::drawLinearSlider ( Graphics g,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
Slider::SliderStyle  style,
Slider slider 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 963 of file juce_LookAndFeel_V4.cpp.

◆ drawMenuBarBackground()

void juce::LookAndFeel_V4::drawMenuBarBackground ( Graphics g,
int  width,
int  height,
bool  isMouseOverBar,
MenuBarComponent menuBar 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 880 of file juce_LookAndFeel_V4.cpp.

◆ drawMenuBarItem()

void juce::LookAndFeel_V4::drawMenuBarItem ( Graphics g,
int  width,
int  height,
int  itemIndex,
const String itemText,
bool  isMouseOverItem,
bool  isMenuOpen,
bool  isMouseOverBar,
MenuBarComponent menuBar 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 895 of file juce_LookAndFeel_V4.cpp.

◆ drawPointer()

void juce::LookAndFeel_V4::drawPointer ( Graphics g,
float  x,
float  y,
float  diameter,
const Colour colour,
int  direction 
)
noexcept

Definition at line 1114 of file juce_LookAndFeel_V4.cpp.

◆ drawPopupMenuItem()

void juce::LookAndFeel_V4::drawPopupMenuItem ( Graphics ,
const Rectangle< int > &  area,
bool  isSeparator,
bool  isActive,
bool  isHighlighted,
bool  isTicked,
bool  hasSubMenu,
const String text,
const String shortcutKeyText,
const Drawable icon,
const Colour textColour 
)
overridevirtual

Draws one of the items in a popup menu.

Reimplemented from juce::LookAndFeel_V2.

Definition at line 772 of file juce_LookAndFeel_V4.cpp.

◆ drawProgressBar()

void juce::LookAndFeel_V4::drawProgressBar ( Graphics ,
ProgressBar ,
int  width,
int  height,
double  progress,
const String textToShow 
)
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).

See also
getResolvedStyle

Reimplemented from juce::LookAndFeel_V2.

Definition at line 484 of file juce_LookAndFeel_V4.cpp.

◆ drawPropertyComponentBackground()

void juce::LookAndFeel_V4::drawPropertyComponentBackground ( Graphics g,
int  width,
int  height,
PropertyComponent component 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1266 of file juce_LookAndFeel_V4.cpp.

◆ drawPropertyComponentLabel()

void juce::LookAndFeel_V4::drawPropertyComponentLabel ( Graphics g,
int  width,
int  height,
PropertyComponent component 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1272 of file juce_LookAndFeel_V4.cpp.

◆ drawPropertyPanelSectionHeader()

void juce::LookAndFeel_V4::drawPropertyPanelSectionHeader ( Graphics g,
const String name,
bool  isOpen,
int  width,
int  height 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1249 of file juce_LookAndFeel_V4.cpp.

◆ drawRotarySlider()

void juce::LookAndFeel_V4::drawRotarySlider ( Graphics g,
int  x,
int  y,
int  width,
int  height,
float  sliderPosProportional,
float  rotaryStartAngle,
float  rotaryEndAngle,
Slider slider 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1064 of file juce_LookAndFeel_V4.cpp.

◆ drawScrollbar()

void juce::LookAndFeel_V4::drawScrollbar ( Graphics g,
ScrollBar scrollbar,
int  x,
int  y,
int  width,
int  height,
bool  isScrollbarVertical,
int  thumbStartPosition,
int  thumbSize,
bool  isMouseOver,
bool  isMouseDown 
)
overridevirtual

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 coordinate 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 juce::LookAndFeel_V3.

Definition at line 634 of file juce_LookAndFeel_V4.cpp.

◆ drawStretchableLayoutResizerBar()

void juce::LookAndFeel_V4::drawStretchableLayoutResizerBar ( Graphics g,
int  ,
int  ,
bool  ,
bool  isMouseOver,
bool  isMouseDragging 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 1322 of file juce_LookAndFeel_V4.cpp.

◆ drawTextEditorOutline()

void juce::LookAndFeel_V4::drawTextEditorOutline ( Graphics g,
int  width,
int  height,
TextEditor textEditor 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V3.

Definition at line 692 of file juce_LookAndFeel_V4.cpp.

◆ drawTickBox()

void juce::LookAndFeel_V4::drawTickBox ( Graphics g,
Component component,
float  x,
float  y,
float  w,
float  h,
bool  ticked,
bool  isEnabled,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 353 of file juce_LookAndFeel_V4.cpp.

◆ drawToggleButton()

void juce::LookAndFeel_V4::drawToggleButton ( Graphics ,
ToggleButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtual

Draws the contents of a standard ToggleButton.

Reimplemented from juce::LookAndFeel_V2.

Definition at line 328 of file juce_LookAndFeel_V4.cpp.

◆ drawTooltip()

void juce::LookAndFeel_V4::drawTooltip ( Graphics g,
const String text,
int  width,
int  height 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1145 of file juce_LookAndFeel_V4.cpp.

◆ fillTextEditorBackground()

void juce::LookAndFeel_V4::fillTextEditorBackground ( Graphics g,
int  width,
int  height,
TextEditor textEditor 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 676 of file juce_LookAndFeel_V4.cpp.

◆ getAlertWindowButtonHeight()

int juce::LookAndFeel_V4::getAlertWindowButtonHeight ( )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 478 of file juce_LookAndFeel_V4.cpp.

◆ getAlertWindowFont()

Font juce::LookAndFeel_V4::getAlertWindowFont ( )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 481 of file juce_LookAndFeel_V4.cpp.

◆ getAlertWindowMessageFont()

Font juce::LookAndFeel_V4::getAlertWindowMessageFont ( )
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.

See also
getAlertWindowTitleFont

Reimplemented from juce::LookAndFeel_V2.

Definition at line 480 of file juce_LookAndFeel_V4.cpp.

◆ getAlertWindowTitleFont()

Font juce::LookAndFeel_V4::getAlertWindowTitleFont ( )
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.

See also
getAlertWindowMessageFont.

Reimplemented from juce::LookAndFeel_V2.

Definition at line 479 of file juce_LookAndFeel_V4.cpp.

◆ getComboBoxFont()

Font juce::LookAndFeel_V4::getComboBoxFont ( ComboBox box)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 942 of file juce_LookAndFeel_V4.cpp.

◆ getCrossShape()

Path juce::LookAndFeel_V4::getCrossShape ( float  height)
overridevirtual

Returns a cross shape for use in yes/no boxes, etc.

Reimplemented from juce::LookAndFeel_V3.

Definition at line 662 of file juce_LookAndFeel_V4.cpp.

◆ getCurrentColourScheme()

ColourScheme & juce::LookAndFeel_V4::getCurrentColourScheme ( )
noexcept

Definition at line 101 of file juce_LookAndFeel_V4.h.

◆ getDarkColourScheme()

LookAndFeel_V4::ColourScheme juce::LookAndFeel_V4::getDarkColourScheme ( )
static

Definition at line 80 of file juce_LookAndFeel_V4.cpp.

◆ getDefaultProgressBarStyle()

ProgressBar::Style juce::LookAndFeel_V4::getDefaultProgressBarStyle ( const ProgressBar )
overridevirtual

Returns the default style a progress bar should use if one hasn't been set.

See also
setStyle, getResolvedStyle

Reimplemented from juce::LookAndFeel_V2.

Definition at line 500 of file juce_LookAndFeel_V4.cpp.

◆ getDefaultScrollbarWidth()

int juce::LookAndFeel_V4::getDefaultScrollbarWidth ( )
overridevirtual

Returns the default thickness to use for a scrollbar.

Reimplemented from juce::LookAndFeel_V2.

Definition at line 629 of file juce_LookAndFeel_V4.cpp.

◆ getGreyColourScheme()

LookAndFeel_V4::ColourScheme juce::LookAndFeel_V4::getGreyColourScheme ( )
static

Definition at line 94 of file juce_LookAndFeel_V4.cpp.

◆ getIdealPopupMenuItemSize()

void juce::LookAndFeel_V4::getIdealPopupMenuItemSize ( const String text,
bool  isSeparator,
int  standardMenuItemHeight,
int idealWidth,
int idealHeight 
)
overridevirtual

Finds the best size for an item in a popup menu.

Reimplemented from juce::LookAndFeel_V2.

Definition at line 860 of file juce_LookAndFeel_V4.cpp.

◆ getLightColourScheme()

LookAndFeel_V4::ColourScheme juce::LookAndFeel_V4::getLightColourScheme ( )
static

Definition at line 101 of file juce_LookAndFeel_V4.cpp.

◆ getMidnightColourScheme()

LookAndFeel_V4::ColourScheme juce::LookAndFeel_V4::getMidnightColourScheme ( )
static

Definition at line 87 of file juce_LookAndFeel_V4.cpp.

◆ getPropertyComponentContentPosition()

Rectangle< int > juce::LookAndFeel_V4::getPropertyComponentContentPosition ( PropertyComponent component)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1293 of file juce_LookAndFeel_V4.cpp.

◆ getSliderThumbRadius()

int juce::LookAndFeel_V4::getSliderThumbRadius ( Slider slider)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 957 of file juce_LookAndFeel_V4.cpp.

◆ getTextButtonFont()

Font juce::LookAndFeel_V4::getTextButtonFont ( TextButton ,
int  buttonHeight 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 276 of file juce_LookAndFeel_V4.cpp.

◆ getTickShape()

Path juce::LookAndFeel_V4::getTickShape ( float  height)
overridevirtual

Returns a tick shape for use in yes/no boxes, etc.

Reimplemented from juce::LookAndFeel_V3.

Definition at line 650 of file juce_LookAndFeel_V4.cpp.

◆ isProgressBarOpaque()

bool juce::LookAndFeel_V4::isProgressBarOpaque ( ProgressBar )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 144 of file juce_LookAndFeel_V4.h.

◆ layoutFileBrowserComponent()

void juce::LookAndFeel_V4::layoutFileBrowserComponent ( FileBrowserComponent browserComp,
DirectoryContentsDisplayComponent fileListComponent,
FilePreviewComponent previewComp,
ComboBox currentPathBox,
TextEditor filenameBox,
Button goUpButton 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 729 of file juce_LookAndFeel_V4.cpp.

◆ paintToolbarBackground()

void juce::LookAndFeel_V4::paintToolbarBackground ( Graphics g,
int  width,
int  height,
Toolbar toolbar 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1218 of file juce_LookAndFeel_V4.cpp.

◆ paintToolbarButtonLabel()

void juce::LookAndFeel_V4::paintToolbarButtonLabel ( Graphics g,
int  x,
int  y,
int  width,
int  height,
const String text,
ToolbarItemComponent component 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 1230 of file juce_LookAndFeel_V4.cpp.

◆ positionComboBoxText()

void juce::LookAndFeel_V4::positionComboBoxText ( ComboBox box,
Label label 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 947 of file juce_LookAndFeel_V4.cpp.

◆ positionDocumentWindowButtons()

void juce::LookAndFeel_V4::positionDocumentWindowButtons ( DocumentWindow ,
int  titleBarX,
int  titleBarY,
int  titleBarW,
int  titleBarH,
Button minimiseButton,
Button maximiseButton,
Button closeButton,
bool  positionTitleBarButtonsOnLeft 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Definition at line 194 of file juce_LookAndFeel_V4.cpp.

◆ setColourScheme()

void juce::LookAndFeel_V4::setColourScheme ( ColourScheme  newColourScheme)

Definition at line 74 of file juce_LookAndFeel_V4.cpp.


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