JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::LookAndFeel_V3 Class Reference

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

#include <juce_LookAndFeel_V3.h>

Inheritance diagram for juce::LookAndFeel_V3:
Collaboration diagram for juce::LookAndFeel_V3:

Public Member Functions

 LookAndFeel_V3 ()
 
 ~LookAndFeel_V3 () override
 
bool areLinesDrawnForTreeView (TreeView &) override
 
bool areScrollbarButtonsVisible () 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
 
CaretComponentcreateCaretComponent (Component *keyFocusOwner) override
 
LabelcreateComboBoxTextBox (ComboBox &) override
 
ButtoncreateDocumentWindowButton (int buttonType) override
 
std::unique_ptr< DropShadowercreateDropShadowerForComponent (Component &) override
 Creates a drop-shadower for a given component, if required. More...
 
ButtoncreateFileBrowserGoUpButton () override
 
AttributedString createFileChooserHeaderText (const String &title, const String &instructions) override
 
ButtoncreateFilenameComponentBrowseButton (const String &text) override
 
std::unique_ptr< FocusOutlinecreateFocusOutlineForComponent (Component &) override
 Creates a focus outline for a given component, if required. More...
 
virtual std::unique_ptr< LowLevelGraphicsContextcreateGraphicsContext (const Image &imageToRenderOn, Point< int > origin, const RectangleList< int > &initialClip)
 Creates a new graphics context object. More...
 
ButtoncreateSliderButton (Slider &, bool isIncrement) override
 
LabelcreateSliderTextBox (Slider &) override
 
ButtoncreateTabBarExtrasButton () override
 
void createTabButtonShape (TabBarButton &, Path &, bool isMouseOver, bool isMouseDown) override
 
ButtoncreateToolbarMissingItemsButton (Toolbar &) override
 
void drawAlertBox (Graphics &, AlertWindow &, const Rectangle< int > &textArea, TextLayout &) override
 
void drawBubble (Graphics &, BubbleComponent &, const Point< float > &tip, const Rectangle< float > &body) override
 
void drawButtonBackground (Graphics &, Button &, const Colour &backgroundColour, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 
void drawButtonText (Graphics &, TextButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 Draws the text for a TextButton. More...
 
void drawCallOutBoxBackground (CallOutBox &, Graphics &, const Path &path, Image &cachedImage) override
 
void drawComboBox (Graphics &, int width, int height, bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &box) override
 
void drawComboBoxTextWhenNothingSelected (Graphics &, ComboBox &, Label &) override
 
void drawConcertinaPanelHeader (Graphics &, const Rectangle< int > &area, bool isMouseOver, bool isMouseDown, ConcertinaPanel &, Component &) override
 
void drawCornerResizer (Graphics &, int w, int h, bool isMouseOver, bool isMouseDragging) override
 
void drawDocumentWindowTitleBar (DocumentWindow &, Graphics &, int w, int h, int titleSpaceX, int titleSpaceW, const Image *icon, bool drawTitleTextOnLeft) override
 
void drawDrawableButton (Graphics &, DrawableButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) 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 drawGroupComponentOutline (Graphics &, int w, int h, const String &text, const Justification &, GroupComponent &) override
 
void drawImageButton (Graphics &, Image *, int imageX, int imageY, int imageW, int imageH, const Colour &overlayColour, float imageOpacity, ImageButton &) override
 
void drawKeymapChangeButton (Graphics &, int width, int height, Button &button, const String &keyDescription) override
 
void drawLabel (Graphics &, Label &) override
 
void drawLasso (Graphics &, Component &) override
 
void drawLevelMeter (Graphics &, int width, int height, float level) override
 
void drawLinearSlider (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &) override
 
void drawLinearSliderBackground (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &) override
 
void drawLinearSliderThumb (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &) override
 
void drawMenuBarBackground (Graphics &, int width, int height, bool, MenuBarComponent &) override
 
void drawMenuBarItem (Graphics &, int width, int height, int itemIndex, const String &itemText, bool isMouseOverItem, bool isMenuOpen, bool isMouseOverBar, MenuBarComponent &) override
 
void drawPopupMenuBackground (Graphics &, int width, int height) override
 Fills the background of a popup menu component. More...
 
void drawPopupMenuBackgroundWithOptions (Graphics &, int width, int height, const PopupMenu::Options &) override
 Fills the background of a popup menu component. More...
 
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. More...
 
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. More...
 
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. More...
 
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
 
void drawPopupMenuUpDownArrow (Graphics &, int width, int height, bool isScrollUpArrow) override
 
void drawPopupMenuUpDownArrowWithOptions (Graphics &, int width, int height, bool isScrollUpArrow, const PopupMenu::Options &) override
 
void drawProgressBar (Graphics &, ProgressBar &, int width, int height, double progress, const String &textToShow) override
 Draws a progress bar. More...
 
void drawPropertyComponentBackground (Graphics &, int width, int height, PropertyComponent &) override
 
void drawPropertyComponentLabel (Graphics &, int width, int height, PropertyComponent &) override
 
void drawPropertyPanelSectionHeader (Graphics &, const String &name, bool isOpen, int width, int height) override
 
void drawResizableFrame (Graphics &, int w, int h, const BorderSize< int > &) override
 
void drawResizableWindowBorder (Graphics &, int w, int h, const BorderSize< int > &border, ResizableWindow &) override
 
void drawRotarySlider (Graphics &, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider &) override
 
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. More...
 
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. More...
 
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. More...
 
void drawStretchableLayoutResizerBar (Graphics &, int w, int h, bool isVerticalBar, bool isMouseOver, bool isMouseDragging) override
 
void drawTabAreaBehindFrontButton (TabbedButtonBar &bar, Graphics &g, int w, int h) override
 
void drawTabbedButtonBarBackground (TabbedButtonBar &, Graphics &) override
 
void drawTabButton (TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown) override
 
void drawTabButtonText (TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown) override
 
void drawTableHeaderBackground (Graphics &, TableHeaderComponent &) override
 
void drawTableHeaderColumn (Graphics &, TableHeaderComponent &, const String &columnName, int columnId, int width, int height, bool isMouseOver, bool isMouseDown, int columnFlags) override
 
void drawTextEditorOutline (Graphics &, int width, int height, TextEditor &) override
 
void drawTickBox (Graphics &, Component &, float x, float y, float w, float h, bool ticked, bool isEnabled, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 
void drawToggleButton (Graphics &, ToggleButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
 Draws the contents of a standard ToggleButton. More...
 
void drawTooltip (Graphics &, const String &text, int width, int height) override
 
void drawTreeviewPlusMinusBox (Graphics &, const Rectangle< float > &area, Colour backgroundColour, bool isOpen, bool isMouseOver) override
 
void fillResizableWindowBackground (Graphics &, int w, int h, const BorderSize< int > &, ResizableWindow &) override
 
void fillTabButtonShape (TabBarButton &, Graphics &, const Path &, bool isMouseOver, bool isMouseDown) override
 
void fillTextEditorBackground (Graphics &, int width, int height, TextEditor &) override
 
Colour findColour (int colourId) const noexcept
 Looks for a colour that has been registered with the given colour ID number. More...
 
int getAlertBoxWindowFlags () override
 
int getAlertWindowButtonHeight () override
 
Font getAlertWindowFont () override
 
Font getAlertWindowMessageFont () override
 Override this function to supply a custom font for the alert window message. More...
 
Font getAlertWindowTitleFont () override
 Override this function to supply a custom font for the alert window title. More...
 
int getCallOutBoxBorderSize (const CallOutBox &) override
 
float getCallOutBoxCornerSize (const CallOutBox &) override
 
Font getComboBoxFont (ComboBox &) override
 
Path getCrossShape (float height) override
 Returns a cross shape for use in yes/no boxes, etc. More...
 
const DrawablegetDefaultDocumentFileImage () override
 
const DrawablegetDefaultFolderImage () override
 
int getDefaultMenuBarHeight () override
 
int getDefaultScrollbarWidth () override
 Returns the default thickness to use for a scrollbar. More...
 
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. More...
 
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. More...
 
BorderSize< intgetLabelBorderSize (Label &) override
 
Font getLabelFont (Label &) override
 
Font getMenuBarFont (MenuBarComponent &, int itemIndex, const String &itemText) override
 
int getMenuBarItemWidth (MenuBarComponent &, int itemIndex, const String &itemText) override
 
int getMenuWindowFlags () override
 
int getMinimumScrollbarThumbSize (ScrollBar &) override
 Returns the minimum length in pixels to use for a scrollbar thumb. More...
 
virtual MouseCursor getMouseCursorFor (Component &)
 Override this to get the chance to swap a component's mouse cursor for a customised one. More...
 
PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox &, Label &) override
 
ComponentgetParentComponentForMenuOptions (const PopupMenu::Options &options) override
 
int getPopupMenuBorderSize () override
 
int getPopupMenuBorderSizeWithOptions (const PopupMenu::Options &) override
 
int getPopupMenuColumnSeparatorWidthWithOptions (const PopupMenu::Options &) override
 Return the amount of space that should be left between popup menu columns. More...
 
Font getPopupMenuFont () override
 Returns the size and style of font to use in popup menus. More...
 
Rectangle< intgetPropertyComponentContentPosition (PropertyComponent &) override
 
int getPropertyPanelSectionHeaderHeight (const String &sectionTitle) override
 
int getScrollbarButtonSize (ScrollBar &) override
 Returns the length in pixels to use for a scrollbar button. More...
 
ImageEffectFiltergetScrollbarEffect () override
 Returns the component effect to use for a scrollbar. More...
 
Path getSidePanelDismissButtonShape (SidePanel &) override
 
Font getSidePanelTitleFont (SidePanel &) override
 
Justification getSidePanelTitleJustification (SidePanel &) override
 
ImageEffectFiltergetSliderEffect (Slider &) override
 
Slider::SliderLayout getSliderLayout (Slider &) override
 
Font getSliderPopupFont (Slider &) override
 
int getSliderPopupPlacement (Slider &) override
 
int getSliderThumbRadius (Slider &) override
 
int getTabButtonBestWidth (TabBarButton &, int tabDepth) override
 
Rectangle< intgetTabButtonExtraComponentBounds (const TabBarButton &, Rectangle< int > &textArea, Component &extraComp) override
 
Font getTabButtonFont (TabBarButton &, float height) override
 
int getTabButtonOverlap (int tabDepth) override
 
int getTabButtonSpaceAroundImage () override
 
Font getTextButtonFont (TextButton &, int buttonHeight) override
 
int getTextButtonWidthToFitText (TextButton &, int buttonHeight) override
 
Path getTickShape (float height) override
 Returns a tick shape for use in yes/no boxes, etc. More...
 
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. More...
 
int getTreeViewIndentSize (TreeView &) override
 
virtual Typeface::Ptr getTypefaceForFont (const Font &)
 Returns the typeface that should be used for a given font. More...
 
Array< intgetWidthsForTextButtons (AlertWindow &, const Array< TextButton * > &) override
 
bool isColourSpecified (int colourId) const noexcept
 Returns true if the specified colour ID has been explicitly set using the setColour() method. More...
 
bool isProgressBarOpaque (ProgressBar &) override
 
bool isUsingNativeAlertWindows ()
 Returns true if native alert windows will be used (if available). More...
 
void layoutFileBrowserComponent (FileBrowserComponent &, DirectoryContentsDisplayComponent *, FilePreviewComponent *, ComboBox *currentPathBox, TextEditor *filenameBox, Button *goUpButton) override
 
void layoutFilenameComponent (FilenameComponent &, ComboBox *filenameBox, Button *browseButton) override
 
void paintToolbarBackground (Graphics &, int width, int height, Toolbar &) override
 
void paintToolbarButtonBackground (Graphics &, int width, int height, bool isMouseOver, bool isMouseDown, ToolbarItemComponent &) override
 
void paintToolbarButtonLabel (Graphics &, int x, int y, int width, int height, const String &text, ToolbarItemComponent &) override
 
virtual void playAlertSound ()
 Plays the system's default 'beep' noise, to alert the user about something very important. More...
 
void positionComboBoxText (ComboBox &, Label &) override
 
void positionDocumentWindowButtons (DocumentWindow &, int titleBarX, int titleBarY, int titleBarW, int titleBarH, Button *minimiseButton, Button *maximiseButton, Button *closeButton, bool positionTitleBarButtonsOnLeft) override
 
void preparePopupMenuWindow (Component &) override
 
void setColour (int colourId, Colour colour) noexcept
 Registers a colour to be used for a particular purpose. More...
 
void setDefaultSansSerifTypeface (Typeface::Ptr newDefaultTypeface)
 Allows you to supply a default typeface that will be returned as the default sans-serif font. More...
 
void setDefaultSansSerifTypefaceName (const String &newName)
 Allows you to change the default sans-serif font. More...
 
void setUsingNativeAlertWindows (bool shouldUseNativeAlerts)
 Sets whether native alert windows (if available) or standard JUCE AlertWindows drawn with AlertWindow::LookAndFeelMethods will be used. More...
 
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. More...
 

Static Public Member Functions

static void createTabTextLayout (const TabBarButton &button, float length, float depth, Colour colour, TextLayout &)
 
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. More...
 
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). More...
 
static void drawGlassPointer (Graphics &, float x, float y, float diameter, const Colour &, float outlineThickness, int direction) noexcept
 
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). More...
 
static LookAndFeelgetDefaultLookAndFeel () noexcept
 Returns the current default look-and-feel for a component to use when it hasn't got one explicitly set. More...
 
static void setDefaultLookAndFeel (LookAndFeel *newDefaultLookAndFeel) noexcept
 Changes the default look-and-feel. More...
 

Private Member Functions

void drawShinyButtonShape (Graphics &, float x, float y, float w, float h, float maxCornerSize, const Colour &, float strokeWidth, bool flatOnLeft, bool flatOnRight, bool flatOnTop, bool flatOnBottom) noexcept
 

Private Attributes

Image backgroundTexture
 
Colour backgroundTextureBaseColour
 
SortedSet< ColourSettingcolours
 
String defaultFixed
 
String defaultSans
 
String defaultSerif
 
Typeface::Ptr defaultTypeface
 
std::unique_ptr< DrawabledocumentImage
 
std::unique_ptr< DrawablefolderImage
 
bool useNativeAlertWindows = false
 

Detailed Description

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

See also
LookAndFeel, LookAndFeel_V1, LookAndFeel_V2

@tags{GUI}

Constructor & Destructor Documentation

◆ LookAndFeel_V3()

juce::LookAndFeel_V3::LookAndFeel_V3 ( )

◆ ~LookAndFeel_V3()

juce::LookAndFeel_V3::~LookAndFeel_V3 ( )
override

Member Function Documentation

◆ areLinesDrawnForTreeView()

bool juce::LookAndFeel_V3::areLinesDrawnForTreeView ( TreeView )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ areScrollbarButtonsVisible()

bool juce::LookAndFeel_V3::areScrollbarButtonsVisible ( )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ changeToggleButtonWidthToFitText()

void juce::LookAndFeel_V2::changeToggleButtonWidthToFitText ( ToggleButton )
overridevirtualinherited

◆ createAlertWindow()

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

◆ createCaretComponent()

CaretComponent* juce::LookAndFeel_V2::createCaretComponent ( Component keyFocusOwner)
overridevirtualinherited

◆ createComboBoxTextBox()

Label* juce::LookAndFeel_V2::createComboBoxTextBox ( ComboBox )
overridevirtualinherited

◆ createDocumentWindowButton()

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

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ createDropShadowerForComponent()

std::unique_ptr<DropShadower> juce::LookAndFeel_V2::createDropShadowerForComponent ( Component )
overridevirtualinherited

Creates a drop-shadower for a given component, if required.

See also
DropShadower

Implements juce::LookAndFeel.

◆ createFileBrowserGoUpButton()

Button* juce::LookAndFeel_V2::createFileBrowserGoUpButton ( )
overridevirtualinherited

◆ createFileChooserHeaderText()

AttributedString juce::LookAndFeel_V2::createFileChooserHeaderText ( const String title,
const String instructions 
)
overridevirtualinherited

◆ createFilenameComponentBrowseButton()

Button* juce::LookAndFeel_V2::createFilenameComponentBrowseButton ( const String text)
overridevirtualinherited

◆ createFocusOutlineForComponent()

std::unique_ptr<FocusOutline> juce::LookAndFeel_V2::createFocusOutlineForComponent ( Component )
overridevirtualinherited

Creates a focus outline for a given component, if required.

See also
FocusOutline

Implements juce::LookAndFeel.

◆ createGraphicsContext()

virtual std::unique_ptr<LowLevelGraphicsContext> juce::LookAndFeel::createGraphicsContext ( const Image imageToRenderOn,
Point< int origin,
const RectangleList< int > &  initialClip 
)
virtualinherited

Creates a new graphics context object.

◆ createSliderButton()

Button* juce::LookAndFeel_V2::createSliderButton ( Slider ,
bool  isIncrement 
)
overridevirtualinherited

◆ createSliderTextBox()

Label* juce::LookAndFeel_V2::createSliderTextBox ( Slider )
overridevirtualinherited

◆ createTabBarExtrasButton()

Button* juce::LookAndFeel_V2::createTabBarExtrasButton ( )
overridevirtualinherited

◆ createTabButtonShape()

void juce::LookAndFeel_V2::createTabButtonShape ( TabBarButton ,
Path ,
bool  isMouseOver,
bool  isMouseDown 
)
overridevirtualinherited

◆ createTabTextLayout()

static void juce::LookAndFeel_V3::createTabTextLayout ( const TabBarButton button,
float  length,
float  depth,
Colour  colour,
TextLayout  
)
static

◆ createToolbarMissingItemsButton()

Button* juce::LookAndFeel_V2::createToolbarMissingItemsButton ( Toolbar )
overridevirtualinherited

◆ drawAlertBox()

void juce::LookAndFeel_V2::drawAlertBox ( Graphics ,
AlertWindow ,
const Rectangle< int > &  textArea,
TextLayout  
)
overridevirtualinherited

◆ drawBevel()

static void juce::LookAndFeel_V2::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 
)
staticinherited

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.

◆ drawBubble()

void juce::LookAndFeel_V2::drawBubble ( Graphics ,
BubbleComponent ,
const Point< float > &  tip,
const Rectangle< float > &  body 
)
overridevirtualinherited

◆ drawButtonBackground()

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

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawButtonText()

void juce::LookAndFeel_V2::drawButtonText ( Graphics ,
TextButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtualinherited

Draws the text for a TextButton.

Implements juce::Button::LookAndFeelMethods.

◆ drawCallOutBoxBackground()

void juce::LookAndFeel_V2::drawCallOutBoxBackground ( CallOutBox ,
Graphics ,
const Path path,
Image cachedImage 
)
overridevirtualinherited

◆ drawComboBox()

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

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawComboBoxTextWhenNothingSelected()

void juce::LookAndFeel_V2::drawComboBoxTextWhenNothingSelected ( Graphics ,
ComboBox ,
Label  
)
overridevirtualinherited

◆ drawConcertinaPanelHeader()

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

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawCornerResizer()

void juce::LookAndFeel_V2::drawCornerResizer ( Graphics ,
int  w,
int  h,
bool  isMouseOver,
bool  isMouseDragging 
)
overridevirtualinherited

◆ drawDocumentWindowTitleBar()

void juce::LookAndFeel_V2::drawDocumentWindowTitleBar ( DocumentWindow ,
Graphics ,
int  w,
int  h,
int  titleSpaceX,
int  titleSpaceW,
const Image icon,
bool  drawTitleTextOnLeft 
)
overridevirtualinherited

◆ drawDrawableButton()

void juce::LookAndFeel_V2::drawDrawableButton ( Graphics ,
DrawableButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtualinherited

◆ drawFileBrowserRow()

void juce::LookAndFeel_V2::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  
)
overridevirtualinherited

◆ drawGlassLozenge()

static void juce::LookAndFeel_V2::drawGlassLozenge ( Graphics ,
float  x,
float  y,
float  width,
float  height,
const Colour ,
float  outlineThickness,
float  cornerSize,
bool  flatOnLeft,
bool  flatOnRight,
bool  flatOnTop,
bool  flatOnBottom 
)
staticnoexceptinherited

Utility function to draw a shiny, glassy oblong (for text buttons).

◆ drawGlassPointer()

static void juce::LookAndFeel_V2::drawGlassPointer ( Graphics ,
float  x,
float  y,
float  diameter,
const Colour ,
float  outlineThickness,
int  direction 
)
staticnoexceptinherited

◆ drawGlassSphere()

static void juce::LookAndFeel_V2::drawGlassSphere ( Graphics ,
float  x,
float  y,
float  diameter,
const Colour ,
float  outlineThickness 
)
staticnoexceptinherited

Utility function to draw a shiny, glassy circle (for round LED-type buttons).

◆ drawGroupComponentOutline()

void juce::LookAndFeel_V2::drawGroupComponentOutline ( Graphics ,
int  w,
int  h,
const String text,
const Justification ,
GroupComponent  
)
overridevirtualinherited

◆ drawImageButton()

void juce::LookAndFeel_V2::drawImageButton ( Graphics ,
Image ,
int  imageX,
int  imageY,
int  imageW,
int  imageH,
const Colour overlayColour,
float  imageOpacity,
ImageButton  
)
overridevirtualinherited

◆ drawKeymapChangeButton()

void juce::LookAndFeel_V3::drawKeymapChangeButton ( Graphics ,
int  width,
int  height,
Button button,
const String keyDescription 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ drawLabel()

void juce::LookAndFeel_V2::drawLabel ( Graphics ,
Label  
)
overridevirtualinherited

◆ drawLasso()

void juce::LookAndFeel_V2::drawLasso ( Graphics ,
Component  
)
overridevirtualinherited

◆ drawLevelMeter()

void juce::LookAndFeel_V2::drawLevelMeter ( Graphics ,
int  width,
int  height,
float  level 
)
overridevirtualinherited

◆ drawLinearSlider()

void juce::LookAndFeel_V3::drawLinearSlider ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  ,
Slider  
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawLinearSliderBackground()

void juce::LookAndFeel_V3::drawLinearSliderBackground ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  ,
Slider  
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ drawLinearSliderThumb()

void juce::LookAndFeel_V2::drawLinearSliderThumb ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  ,
Slider  
)
overridevirtualinherited

◆ drawMenuBarBackground()

void juce::LookAndFeel_V3::drawMenuBarBackground ( Graphics ,
int  width,
int  height,
bool  ,
MenuBarComponent  
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawMenuBarItem()

void juce::LookAndFeel_V2::drawMenuBarItem ( Graphics ,
int  width,
int  height,
int  itemIndex,
const String itemText,
bool  isMouseOverItem,
bool  isMenuOpen,
bool  isMouseOverBar,
MenuBarComponent  
)
overridevirtualinherited

◆ drawPopupMenuBackground()

void juce::LookAndFeel_V3::drawPopupMenuBackground ( Graphics ,
int  width,
int  height 
)
overridevirtual

Fills the background of a popup menu component.

Reimplemented from juce::LookAndFeel_V2.

◆ drawPopupMenuBackgroundWithOptions()

void juce::LookAndFeel_V2::drawPopupMenuBackgroundWithOptions ( Graphics ,
int  width,
int  height,
const PopupMenu::Options  
)
overridevirtualinherited

Fills the background of a popup menu component.

Implements juce::PopupMenu::LookAndFeelMethods.

◆ drawPopupMenuColumnSeparatorWithOptions()

void juce::LookAndFeel_V2::drawPopupMenuColumnSeparatorWithOptions ( Graphics g,
const Rectangle< int > &  bounds,
const PopupMenu::Options  
)
overridevirtualinherited

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 juce::PopupMenu::LookAndFeelMethods.

◆ drawPopupMenuItem()

void juce::LookAndFeel_V2::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 
)
overridevirtualinherited

Draws one of the items in a popup menu.

Reimplemented from juce::PopupMenu::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ drawPopupMenuItemWithOptions()

void juce::LookAndFeel_V2::drawPopupMenuItemWithOptions ( Graphics ,
const Rectangle< int > &  area,
bool  isHighlighted,
const PopupMenu::Item item,
const PopupMenu::Options  
)
overridevirtualinherited

Draws one of the items in a popup menu.

Implements juce::PopupMenu::LookAndFeelMethods.

◆ drawPopupMenuSectionHeader()

void juce::LookAndFeel_V2::drawPopupMenuSectionHeader ( Graphics ,
const Rectangle< int > &  area,
const String sectionName 
)
overridevirtualinherited

◆ drawPopupMenuSectionHeaderWithOptions()

void juce::LookAndFeel_V2::drawPopupMenuSectionHeaderWithOptions ( Graphics ,
const Rectangle< int > &  area,
const String sectionName,
const PopupMenu::Options  
)
overridevirtualinherited

◆ drawPopupMenuUpDownArrow()

void juce::LookAndFeel_V2::drawPopupMenuUpDownArrow ( Graphics ,
int  width,
int  height,
bool  isScrollUpArrow 
)
overridevirtualinherited

◆ drawPopupMenuUpDownArrowWithOptions()

void juce::LookAndFeel_V2::drawPopupMenuUpDownArrowWithOptions ( Graphics ,
int  width,
int  height,
bool  isScrollUpArrow,
const PopupMenu::Options  
)
overridevirtualinherited

◆ drawProgressBar()

void juce::LookAndFeel_V2::drawProgressBar ( Graphics ,
ProgressBar ,
int  width,
int  height,
double  progress,
const String textToShow 
)
overridevirtualinherited

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).

Implements juce::ProgressBar::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ drawPropertyComponentBackground()

void juce::LookAndFeel_V2::drawPropertyComponentBackground ( Graphics ,
int  width,
int  height,
PropertyComponent  
)
overridevirtualinherited

◆ drawPropertyComponentLabel()

void juce::LookAndFeel_V2::drawPropertyComponentLabel ( Graphics ,
int  width,
int  height,
PropertyComponent  
)
overridevirtualinherited

◆ drawPropertyPanelSectionHeader()

void juce::LookAndFeel_V2::drawPropertyPanelSectionHeader ( Graphics ,
const String name,
bool  isOpen,
int  width,
int  height 
)
overridevirtualinherited

◆ drawResizableFrame()

void juce::LookAndFeel_V2::drawResizableFrame ( Graphics ,
int  w,
int  h,
const BorderSize< int > &   
)
overridevirtualinherited

◆ drawResizableWindowBorder()

void juce::LookAndFeel_V2::drawResizableWindowBorder ( Graphics ,
int  w,
int  h,
const BorderSize< int > &  border,
ResizableWindow  
)
overridevirtualinherited

◆ drawRotarySlider()

void juce::LookAndFeel_V2::drawRotarySlider ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPosProportional,
float  rotaryStartAngle,
float  rotaryEndAngle,
Slider  
)
overridevirtualinherited

◆ drawScrollbar()

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

Reimplemented in juce::LookAndFeel_V4.

◆ drawScrollbarButton()

void juce::LookAndFeel_V2::drawScrollbarButton ( Graphics g,
ScrollBar scrollbar,
int  width,
int  height,
int  buttonDirection,
bool  isScrollbarVertical,
bool  isMouseOverButton,
bool  isButtonDown 
)
overridevirtualinherited

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

Implements juce::ScrollBar::LookAndFeelMethods.

◆ drawShinyButtonShape()

void juce::LookAndFeel_V2::drawShinyButtonShape ( Graphics ,
float  x,
float  y,
float  w,
float  h,
float  maxCornerSize,
const Colour ,
float  strokeWidth,
bool  flatOnLeft,
bool  flatOnRight,
bool  flatOnTop,
bool  flatOnBottom 
)
privatenoexceptinherited

◆ drawSpinningWaitAnimation()

void juce::LookAndFeel_V2::drawSpinningWaitAnimation ( Graphics ,
const Colour colour,
int  x,
int  y,
int  w,
int  h 
)
overridevirtualinherited

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 juce::LookAndFeel.

◆ drawStretchableLayoutResizerBar()

void juce::LookAndFeel_V3::drawStretchableLayoutResizerBar ( Graphics ,
int  w,
int  h,
bool  isVerticalBar,
bool  isMouseOver,
bool  isMouseDragging 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawTabAreaBehindFrontButton()

void juce::LookAndFeel_V3::drawTabAreaBehindFrontButton ( TabbedButtonBar bar,
Graphics g,
int  w,
int  h 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ drawTabbedButtonBarBackground()

void juce::LookAndFeel_V2::drawTabbedButtonBarBackground ( TabbedButtonBar ,
Graphics  
)
overridevirtualinherited

◆ drawTabButton()

void juce::LookAndFeel_V3::drawTabButton ( TabBarButton ,
Graphics ,
bool  isMouseOver,
bool  isMouseDown 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ drawTabButtonText()

void juce::LookAndFeel_V2::drawTabButtonText ( TabBarButton ,
Graphics ,
bool  isMouseOver,
bool  isMouseDown 
)
overridevirtualinherited

◆ drawTableHeaderBackground()

void juce::LookAndFeel_V3::drawTableHeaderBackground ( Graphics ,
TableHeaderComponent  
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ drawTableHeaderColumn()

void juce::LookAndFeel_V2::drawTableHeaderColumn ( Graphics ,
TableHeaderComponent ,
const String columnName,
int  columnId,
int  width,
int  height,
bool  isMouseOver,
bool  isMouseDown,
int  columnFlags 
)
overridevirtualinherited

◆ drawTextEditorOutline()

void juce::LookAndFeel_V3::drawTextEditorOutline ( Graphics ,
int  width,
int  height,
TextEditor  
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ drawTickBox()

void juce::LookAndFeel_V2::drawTickBox ( Graphics ,
Component ,
float  x,
float  y,
float  w,
float  h,
bool  ticked,
bool  isEnabled,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtualinherited

◆ drawToggleButton()

void juce::LookAndFeel_V2::drawToggleButton ( Graphics ,
ToggleButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
overridevirtualinherited

Draws the contents of a standard ToggleButton.

Implements juce::Button::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ drawTooltip()

void juce::LookAndFeel_V2::drawTooltip ( Graphics ,
const String text,
int  width,
int  height 
)
overridevirtualinherited

◆ drawTreeviewPlusMinusBox()

void juce::LookAndFeel_V3::drawTreeviewPlusMinusBox ( Graphics ,
const Rectangle< float > &  area,
Colour  backgroundColour,
bool  isOpen,
bool  isMouseOver 
)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ fillResizableWindowBackground()

void juce::LookAndFeel_V2::fillResizableWindowBackground ( Graphics ,
int  w,
int  h,
const BorderSize< int > &  ,
ResizableWindow  
)
overridevirtualinherited

◆ fillTabButtonShape()

void juce::LookAndFeel_V2::fillTabButtonShape ( TabBarButton ,
Graphics ,
const Path ,
bool  isMouseOver,
bool  isMouseDown 
)
overridevirtualinherited

◆ fillTextEditorBackground()

void juce::LookAndFeel_V2::fillTextEditorBackground ( Graphics ,
int  width,
int  height,
TextEditor  
)
overridevirtualinherited

◆ findColour()

Colour juce::LookAndFeel::findColour ( int  colourId) const
noexceptinherited

Looks for a colour that has been registered with the given colour ID number.

If a colour has been set for this ID number using setColour(), then it is returned. If none has been set, it will just return Colours::black.

The colour IDs for various purposes are stored as enums in the components that they are relevant to - for an example, see Slider::ColourIds, Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc.

If you're looking up a colour for use in drawing a component, it's usually best not to call this directly, but to use the Component::findColour() method instead. That will first check whether a suitable colour has been registered directly with the component, and will fall-back on calling the component's LookAndFeel's findColour() method if none is found.

See also
setColour, Component::findColour, Component::setColour

◆ getAlertBoxWindowFlags()

int juce::LookAndFeel_V2::getAlertBoxWindowFlags ( )
overridevirtualinherited

◆ getAlertWindowButtonHeight()

int juce::LookAndFeel_V2::getAlertWindowButtonHeight ( )
overridevirtualinherited

◆ getAlertWindowFont()

Font juce::LookAndFeel_V2::getAlertWindowFont ( )
overridevirtualinherited

◆ getAlertWindowMessageFont()

Font juce::LookAndFeel_V2::getAlertWindowMessageFont ( )
overridevirtualinherited

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

Implements juce::AlertWindow::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ getAlertWindowTitleFont()

Font juce::LookAndFeel_V2::getAlertWindowTitleFont ( )
overridevirtualinherited

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.

Implements juce::AlertWindow::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ getCallOutBoxBorderSize()

int juce::LookAndFeel_V2::getCallOutBoxBorderSize ( const CallOutBox )
overridevirtualinherited

◆ getCallOutBoxCornerSize()

float juce::LookAndFeel_V2::getCallOutBoxCornerSize ( const CallOutBox )
overridevirtualinherited

◆ getComboBoxFont()

Font juce::LookAndFeel_V2::getComboBoxFont ( ComboBox )
overridevirtualinherited

◆ getCrossShape()

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

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

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ getDefaultDocumentFileImage()

const Drawable* juce::LookAndFeel_V2::getDefaultDocumentFileImage ( )
overridevirtualinherited

◆ getDefaultFolderImage()

const Drawable* juce::LookAndFeel_V2::getDefaultFolderImage ( )
overridevirtualinherited

◆ getDefaultLookAndFeel()

static LookAndFeel& juce::LookAndFeel::getDefaultLookAndFeel ( )
staticnoexceptinherited

Returns the current default look-and-feel for a component to use when it hasn't got one explicitly set.

See also
setDefaultLookAndFeel

◆ getDefaultMenuBarHeight()

int juce::LookAndFeel_V2::getDefaultMenuBarHeight ( )
overridevirtualinherited

◆ getDefaultScrollbarWidth()

int juce::LookAndFeel_V2::getDefaultScrollbarWidth ( )
overridevirtualinherited

Returns the default thickness to use for a scrollbar.

Implements juce::ScrollBar::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ getIdealPopupMenuItemSize()

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

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

Reimplemented from juce::PopupMenu::LookAndFeelMethods.

Reimplemented in juce::LookAndFeel_V4.

◆ getIdealPopupMenuItemSizeWithOptions()

void juce::LookAndFeel_V2::getIdealPopupMenuItemSizeWithOptions ( const String text,
bool  isSeparator,
int  standardMenuItemHeight,
int idealWidth,
int idealHeight,
const PopupMenu::Options  
)
overridevirtualinherited

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

Implements juce::PopupMenu::LookAndFeelMethods.

◆ getLabelBorderSize()

BorderSize<int> juce::LookAndFeel_V2::getLabelBorderSize ( Label )
overridevirtualinherited

◆ getLabelFont()

Font juce::LookAndFeel_V2::getLabelFont ( Label )
overridevirtualinherited

◆ getMenuBarFont()

Font juce::LookAndFeel_V2::getMenuBarFont ( MenuBarComponent ,
int  itemIndex,
const String itemText 
)
overridevirtualinherited

◆ getMenuBarItemWidth()

int juce::LookAndFeel_V2::getMenuBarItemWidth ( MenuBarComponent ,
int  itemIndex,
const String itemText 
)
overridevirtualinherited

◆ getMenuWindowFlags()

int juce::LookAndFeel_V2::getMenuWindowFlags ( )
overridevirtualinherited

◆ getMinimumScrollbarThumbSize()

int juce::LookAndFeel_V2::getMinimumScrollbarThumbSize ( ScrollBar )
overridevirtualinherited

Returns the minimum length in pixels to use for a scrollbar thumb.

Implements juce::ScrollBar::LookAndFeelMethods.

◆ getMouseCursorFor()

virtual MouseCursor juce::LookAndFeel::getMouseCursorFor ( Component )
virtualinherited

Override this to get the chance to swap a component's mouse cursor for a customised one.

See also
MouseCursor

◆ getOptionsForComboBoxPopupMenu()

PopupMenu::Options juce::LookAndFeel_V2::getOptionsForComboBoxPopupMenu ( ComboBox ,
Label  
)
overridevirtualinherited

◆ getParentComponentForMenuOptions()

Component* juce::LookAndFeel_V2::getParentComponentForMenuOptions ( const PopupMenu::Options options)
overridevirtualinherited

◆ getPopupMenuBorderSize()

int juce::LookAndFeel_V2::getPopupMenuBorderSize ( )
overridevirtualinherited

◆ getPopupMenuBorderSizeWithOptions()

int juce::LookAndFeel_V2::getPopupMenuBorderSizeWithOptions ( const PopupMenu::Options )
overridevirtualinherited

◆ getPopupMenuColumnSeparatorWidthWithOptions()

int juce::LookAndFeel_V2::getPopupMenuColumnSeparatorWidthWithOptions ( const PopupMenu::Options )
overridevirtualinherited

Return the amount of space that should be left between popup menu columns.

Implements juce::PopupMenu::LookAndFeelMethods.

◆ getPopupMenuFont()

Font juce::LookAndFeel_V2::getPopupMenuFont ( )
overridevirtualinherited

Returns the size and style of font to use in popup menus.

Implements juce::PopupMenu::LookAndFeelMethods.

◆ getPropertyComponentContentPosition()

Rectangle<int> juce::LookAndFeel_V2::getPropertyComponentContentPosition ( PropertyComponent )
overridevirtualinherited

◆ getPropertyPanelSectionHeaderHeight()

int juce::LookAndFeel_V2::getPropertyPanelSectionHeaderHeight ( const String sectionTitle)
overridevirtualinherited

◆ getScrollbarButtonSize()

int juce::LookAndFeel_V2::getScrollbarButtonSize ( ScrollBar )
overridevirtualinherited

Returns the length in pixels to use for a scrollbar button.

Implements juce::ScrollBar::LookAndFeelMethods.

◆ getScrollbarEffect()

ImageEffectFilter* juce::LookAndFeel_V2::getScrollbarEffect ( )
overridevirtualinherited

Returns the component effect to use for a scrollbar.

Implements juce::ScrollBar::LookAndFeelMethods.

◆ getSidePanelDismissButtonShape()

Path juce::LookAndFeel_V2::getSidePanelDismissButtonShape ( SidePanel )
overridevirtualinherited

◆ getSidePanelTitleFont()

Font juce::LookAndFeel_V2::getSidePanelTitleFont ( SidePanel )
overridevirtualinherited

◆ getSidePanelTitleJustification()

Justification juce::LookAndFeel_V2::getSidePanelTitleJustification ( SidePanel )
overridevirtualinherited

◆ getSliderEffect()

ImageEffectFilter* juce::LookAndFeel_V2::getSliderEffect ( Slider )
overridevirtualinherited

◆ getSliderLayout()

Slider::SliderLayout juce::LookAndFeel_V2::getSliderLayout ( Slider )
overridevirtualinherited

◆ getSliderPopupFont()

Font juce::LookAndFeel_V2::getSliderPopupFont ( Slider )
overridevirtualinherited

◆ getSliderPopupPlacement()

int juce::LookAndFeel_V2::getSliderPopupPlacement ( Slider )
overridevirtualinherited

◆ getSliderThumbRadius()

int juce::LookAndFeel_V2::getSliderThumbRadius ( Slider )
overridevirtualinherited

◆ getTabButtonBestWidth()

int juce::LookAndFeel_V2::getTabButtonBestWidth ( TabBarButton ,
int  tabDepth 
)
overridevirtualinherited

◆ getTabButtonExtraComponentBounds()

Rectangle<int> juce::LookAndFeel_V2::getTabButtonExtraComponentBounds ( const TabBarButton ,
Rectangle< int > &  textArea,
Component extraComp 
)
overridevirtualinherited

◆ getTabButtonFont()

Font juce::LookAndFeel_V2::getTabButtonFont ( TabBarButton ,
float  height 
)
overridevirtualinherited

◆ getTabButtonOverlap()

int juce::LookAndFeel_V3::getTabButtonOverlap ( int  tabDepth)
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ getTabButtonSpaceAroundImage()

int juce::LookAndFeel_V3::getTabButtonSpaceAroundImage ( )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ getTextButtonFont()

Font juce::LookAndFeel_V2::getTextButtonFont ( TextButton ,
int  buttonHeight 
)
overridevirtualinherited

◆ getTextButtonWidthToFitText()

int juce::LookAndFeel_V2::getTextButtonWidthToFitText ( TextButton ,
int  buttonHeight 
)
overridevirtualinherited

◆ getTickShape()

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

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

Reimplemented from juce::LookAndFeel_V2.

Reimplemented in juce::LookAndFeel_V4.

◆ getTooltipBounds()

Rectangle<int> juce::LookAndFeel_V2::getTooltipBounds ( const String tipText,
Point< int screenPos,
Rectangle< int parentArea 
)
overridevirtualinherited

returns the bounds for a tooltip at the given screen coordinate, constrained within the given desktop area.

Implements juce::TooltipWindow::LookAndFeelMethods.

◆ getTreeViewIndentSize()

int juce::LookAndFeel_V3::getTreeViewIndentSize ( TreeView )
overridevirtual

Reimplemented from juce::LookAndFeel_V2.

◆ getTypefaceForFont()

virtual Typeface::Ptr juce::LookAndFeel::getTypefaceForFont ( const Font )
virtualinherited

Returns the typeface that should be used for a given font.

The default implementation just does what you'd expect it to, but you can override this if you want to intercept fonts and use your own custom typeface object.

See also
setDefaultTypeface

◆ getWidthsForTextButtons()

Array<int> juce::LookAndFeel_V2::getWidthsForTextButtons ( AlertWindow ,
const Array< TextButton * > &   
)
overridevirtualinherited

◆ isColourSpecified()

bool juce::LookAndFeel::isColourSpecified ( int  colourId) const
noexceptinherited

Returns true if the specified colour ID has been explicitly set using the setColour() method.

◆ isProgressBarOpaque()

bool juce::LookAndFeel_V2::isProgressBarOpaque ( ProgressBar )
overridevirtualinherited

◆ isUsingNativeAlertWindows()

bool juce::LookAndFeel::isUsingNativeAlertWindows ( )
inherited

Returns true if native alert windows will be used (if available).

The default setting for this is false.

See also
setUsingNativeAlertWindows

◆ layoutFileBrowserComponent()

void juce::LookAndFeel_V2::layoutFileBrowserComponent ( FileBrowserComponent ,
DirectoryContentsDisplayComponent ,
FilePreviewComponent ,
ComboBox currentPathBox,
TextEditor filenameBox,
Button goUpButton 
)
overridevirtualinherited

◆ layoutFilenameComponent()

void juce::LookAndFeel_V2::layoutFilenameComponent ( FilenameComponent ,
ComboBox filenameBox,
Button browseButton 
)
overridevirtualinherited

◆ paintToolbarBackground()

void juce::LookAndFeel_V2::paintToolbarBackground ( Graphics ,
int  width,
int  height,
Toolbar  
)
overridevirtualinherited

◆ paintToolbarButtonBackground()

void juce::LookAndFeel_V2::paintToolbarButtonBackground ( Graphics ,
int  width,
int  height,
bool  isMouseOver,
bool  isMouseDown,
ToolbarItemComponent  
)
overridevirtualinherited

◆ paintToolbarButtonLabel()

void juce::LookAndFeel_V2::paintToolbarButtonLabel ( Graphics ,
int  x,
int  y,
int  width,
int  height,
const String text,
ToolbarItemComponent  
)
overridevirtualinherited

◆ playAlertSound()

virtual void juce::LookAndFeel::playAlertSound ( )
virtualinherited

Plays the system's default 'beep' noise, to alert the user about something very important.

This is only supported on some platforms.

◆ positionComboBoxText()

void juce::LookAndFeel_V2::positionComboBoxText ( ComboBox ,
Label  
)
overridevirtualinherited

◆ positionDocumentWindowButtons()

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

◆ preparePopupMenuWindow()

void juce::LookAndFeel_V2::preparePopupMenuWindow ( Component )
overridevirtualinherited

◆ setColour()

void juce::LookAndFeel::setColour ( int  colourId,
Colour  colour 
)
noexceptinherited

Registers a colour to be used for a particular purpose.

For more details, see the comments for findColour().

See also
findColour, Component::findColour, Component::setColour

◆ setDefaultLookAndFeel()

static void juce::LookAndFeel::setDefaultLookAndFeel ( LookAndFeel newDefaultLookAndFeel)
staticnoexceptinherited

Changes the default look-and-feel.

Parameters
newDefaultLookAndFeelthe new look-and-feel object to use - if this is set to null, it will revert to using the default one. The object passed-in must be deleted by the caller when it's no longer needed.
See also
getDefaultLookAndFeel

◆ setDefaultSansSerifTypeface()

void juce::LookAndFeel::setDefaultSansSerifTypeface ( Typeface::Ptr  newDefaultTypeface)
inherited

Allows you to supply a default typeface that will be returned as the default sans-serif font.

Instead of a typeface object, you can specify a typeface by name using the setDefaultSansSerifTypefaceName() method.

You can perform more complex typeface substitutions by overloading getTypefaceForFont() but this lets you easily set a global typeface.

◆ setDefaultSansSerifTypefaceName()

void juce::LookAndFeel::setDefaultSansSerifTypefaceName ( const String newName)
inherited

Allows you to change the default sans-serif font.

If you need to supply your own Typeface object for any of the default fonts, rather than just supplying the name (e.g. if you want to use an embedded font), then you can instead call setDefaultSansSerifTypeface() with an object to use.

◆ setUsingNativeAlertWindows()

void juce::LookAndFeel::setUsingNativeAlertWindows ( bool  shouldUseNativeAlerts)
inherited

Sets whether native alert windows (if available) or standard JUCE AlertWindows drawn with AlertWindow::LookAndFeelMethods will be used.

See also
isUsingNativeAlertWindows

◆ shouldPopupMenuScaleWithTargetComponent()

bool juce::LookAndFeel_V2::shouldPopupMenuScaleWithTargetComponent ( const PopupMenu::Options options)
overridevirtualinherited

Return true if you want your popup menus to scale with the target component's AffineTransform or scale factor.

Implements juce::PopupMenu::LookAndFeelMethods.

Member Data Documentation

◆ backgroundTexture

Image juce::LookAndFeel_V3::backgroundTexture
private

◆ backgroundTextureBaseColour

Colour juce::LookAndFeel_V3::backgroundTextureBaseColour
private

◆ colours

SortedSet<ColourSetting> juce::LookAndFeel::colours
privateinherited

◆ defaultFixed

String juce::LookAndFeel::defaultFixed
privateinherited

◆ defaultSans

String juce::LookAndFeel::defaultSans
privateinherited

◆ defaultSerif

String juce::LookAndFeel::defaultSerif
privateinherited

◆ defaultTypeface

Typeface::Ptr juce::LookAndFeel::defaultTypeface
privateinherited

◆ documentImage

std::unique_ptr<Drawable> juce::LookAndFeel_V2::documentImage
privateinherited

◆ folderImage

std::unique_ptr<Drawable> juce::LookAndFeel_V2::folderImage
privateinherited

◆ useNativeAlertWindows

bool juce::LookAndFeel::useNativeAlertWindows = false
privateinherited

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