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 Class Referenceabstract

LookAndFeel objects define the appearance of all the JUCE widgets, and subclasses can be used to apply different 'skins' to the application. More...

#include <juce_LookAndFeel.h>

Inheritance diagram for juce::LookAndFeel:
Collaboration diagram for juce::LookAndFeel:

Classes

struct  ColourSetting
 

Public Member Functions

 LookAndFeel ()
 Creates the default JUCE look and feel. More...
 
 ~LookAndFeel () override
 Destructor. More...
 
virtual bool areLinesDrawnForTreeView (TreeView &)=0
 
virtual bool areScrollbarButtonsVisible ()=0
 
virtual void changeToggleButtonWidthToFitText (ToggleButton &)=0
 
virtual AlertWindowcreateAlertWindow (const String &title, const String &message, const String &button1, const String &button2, const String &button3, MessageBoxIconType iconType, int numButtons, Component *associatedComponent)=0
 
virtual CaretComponentcreateCaretComponent (Component *keyFocusOwner)=0
 
virtual LabelcreateComboBoxTextBox (ComboBox &)=0
 
virtual ButtoncreateDocumentWindowButton (int buttonType)=0
 
virtual std::unique_ptr< DropShadowercreateDropShadowerForComponent (Component &)=0
 Creates a drop-shadower for a given component, if required. More...
 
virtual ButtoncreateFileBrowserGoUpButton ()=0
 
virtual AttributedString createFileChooserHeaderText (const String &title, const String &instructions)=0
 
virtual ButtoncreateFilenameComponentBrowseButton (const String &text)=0
 
virtual std::unique_ptr< FocusOutlinecreateFocusOutlineForComponent (Component &)=0
 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...
 
virtual ButtoncreateSliderButton (Slider &, bool isIncrement)=0
 
virtual LabelcreateSliderTextBox (Slider &)=0
 
virtual ButtoncreateTabBarExtrasButton ()=0
 
virtual void createTabButtonShape (TabBarButton &, Path &path, bool isMouseOver, bool isMouseDown)=0
 
virtual ButtoncreateToolbarMissingItemsButton (Toolbar &)=0
 
virtual void drawAlertBox (Graphics &, AlertWindow &, const Rectangle< int > &textArea, TextLayout &)=0
 
virtual void drawBubble (Graphics &, BubbleComponent &, const Point< float > &positionOfTip, const Rectangle< float > &body)=0
 
virtual void drawButtonBackground (Graphics &, Button &, const Colour &backgroundColour, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 
virtual void drawButtonText (Graphics &, TextButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 Draws the text for a TextButton. More...
 
virtual void drawCallOutBoxBackground (CallOutBox &, Graphics &, const Path &, Image &)=0
 
virtual void drawComboBox (Graphics &, int width, int height, bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &)=0
 
virtual void drawComboBoxTextWhenNothingSelected (Graphics &, ComboBox &, Label &)=0
 
virtual void drawConcertinaPanelHeader (Graphics &, const Rectangle< int > &area, bool isMouseOver, bool isMouseDown, ConcertinaPanel &, Component &)=0
 
virtual void drawCornerResizer (Graphics &, int w, int h, bool isMouseOver, bool isMouseDragging)=0
 
virtual void drawDocumentWindowTitleBar (DocumentWindow &, Graphics &, int w, int h, int titleSpaceX, int titleSpaceW, const Image *icon, bool drawTitleTextOnLeft)=0
 
virtual void drawDrawableButton (Graphics &, DrawableButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 
virtual void drawFileBrowserRow (Graphics &, int width, int height, const File &file, const String &filename, Image *optionalIcon, const String &fileSizeDescription, const String &fileTimeDescription, bool isDirectory, bool isItemSelected, int itemIndex, DirectoryContentsDisplayComponent &)=0
 
virtual void drawGroupComponentOutline (Graphics &, int w, int h, const String &text, const Justification &, GroupComponent &)=0
 
virtual void drawImageButton (Graphics &, Image *, int imageX, int imageY, int imageW, int imageH, const Colour &overlayColour, float imageOpacity, ImageButton &)=0
 
virtual void drawKeymapChangeButton (Graphics &, int width, int height, Button &, const String &keyDescription)=0
 
virtual void drawLabel (Graphics &, Label &)=0
 
virtual void drawLasso (Graphics &, Component &lassoComp)=0
 
virtual void drawLevelMeter (Graphics &, int width, int height, float level)=0
 
virtual void drawLinearSlider (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &)=0
 
virtual void drawLinearSliderBackground (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle style, Slider &)=0
 
virtual void drawLinearSliderThumb (Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &)=0
 
virtual void drawMenuBarBackground (Graphics &, int width, int height, bool isMouseOverBar, MenuBarComponent &)=0
 
virtual void drawMenuBarItem (Graphics &, int width, int height, int itemIndex, const String &itemText, bool isMouseOverItem, bool isMenuOpen, bool isMouseOverBar, MenuBarComponent &)=0
 
virtual void drawPopupMenuBackground (Graphics &, int width, int height)
 Fills the background of a popup menu component. More...
 
virtual void drawPopupMenuBackgroundWithOptions (Graphics &, int width, int height, const Options &)=0
 Fills the background of a popup menu component. More...
 
virtual void drawPopupMenuColumnSeparatorWithOptions (Graphics &g, const Rectangle< int > &bounds, const Options &)=0
 Implement this to draw some custom decoration between the columns of the popup menu. More...
 
virtual 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)
 Draws one of the items in a popup menu. More...
 
virtual void drawPopupMenuItemWithOptions (Graphics &, const Rectangle< int > &area, bool isHighlighted, const Item &item, const Options &)=0
 Draws one of the items in a popup menu. More...
 
virtual void drawPopupMenuSectionHeader (Graphics &, const Rectangle< int > &, const String &)
 
virtual void drawPopupMenuSectionHeaderWithOptions (Graphics &, const Rectangle< int > &area, const String &sectionName, const Options &)=0
 
virtual void drawPopupMenuUpDownArrow (Graphics &, int width, int height, bool isScrollUpArrow)
 
virtual void drawPopupMenuUpDownArrowWithOptions (Graphics &, int width, int height, bool isScrollUpArrow, const Options &)=0
 
virtual void drawProgressBar (Graphics &, ProgressBar &, int width, int height, double progress, const String &textToShow)=0
 Draws a progress bar. More...
 
virtual void drawPropertyComponentBackground (Graphics &, int width, int height, PropertyComponent &)=0
 
virtual void drawPropertyComponentLabel (Graphics &, int width, int height, PropertyComponent &)=0
 
virtual void drawPropertyPanelSectionHeader (Graphics &, const String &name, bool isOpen, int width, int height)=0
 
virtual void drawResizableFrame (Graphics &, int w, int h, const BorderSize< int > &)=0
 
virtual void drawResizableWindowBorder (Graphics &, int w, int h, const BorderSize< int > &border, ResizableWindow &)=0
 
virtual void drawRotarySlider (Graphics &, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider &)=0
 
virtual void drawScrollbar (Graphics &g, ScrollBar &scrollbar, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown)=0
 Draws the thumb area of a scrollbar. More...
 
virtual void drawScrollbarButton (Graphics &g, ScrollBar &scrollbar, int width, int height, int buttonDirection, bool isScrollbarVertical, bool isMouseOverButton, bool isButtonDown)=0
 Draws one of the buttons on a scrollbar. More...
 
virtual void drawSpinningWaitAnimation (Graphics &, const Colour &colour, int x, int y, int w, int h)=0
 Draws a small image that spins to indicate that something's happening. More...
 
virtual void drawStretchableLayoutResizerBar (Graphics &, int w, int h, bool isVerticalBar, bool isMouseOver, bool isMouseDragging)=0
 
virtual void drawTabAreaBehindFrontButton (TabbedButtonBar &, Graphics &, int w, int h)=0
 
virtual void drawTabbedButtonBarBackground (TabbedButtonBar &, Graphics &)=0
 
virtual void drawTabButton (TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown)=0
 
virtual void drawTabButtonText (TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown)=0
 
virtual void drawTableHeaderBackground (Graphics &, TableHeaderComponent &)=0
 
virtual void drawTableHeaderColumn (Graphics &, TableHeaderComponent &, const String &columnName, int columnId, int width, int height, bool isMouseOver, bool isMouseDown, int columnFlags)=0
 
virtual void drawTextEditorOutline (Graphics &, int width, int height, TextEditor &)=0
 
virtual void drawTickBox (Graphics &, Component &, float x, float y, float w, float h, bool ticked, bool isEnabled, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 
virtual void drawToggleButton (Graphics &, ToggleButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 Draws the contents of a standard ToggleButton. More...
 
virtual void drawTooltip (Graphics &, const String &text, int width, int height)=0
 
virtual void drawTreeviewPlusMinusBox (Graphics &, const Rectangle< float > &area, Colour backgroundColour, bool isItemOpen, bool isMouseOver)=0
 
virtual void fillResizableWindowBackground (Graphics &, int w, int h, const BorderSize< int > &, ResizableWindow &)=0
 
virtual void fillTabButtonShape (TabBarButton &, Graphics &, const Path &path, bool isMouseOver, bool isMouseDown)=0
 
virtual void fillTextEditorBackground (Graphics &, int width, int height, TextEditor &)=0
 
Colour findColour (int colourId) const noexcept
 Looks for a colour that has been registered with the given colour ID number. More...
 
virtual int getAlertBoxWindowFlags ()=0
 
virtual int getAlertWindowButtonHeight ()=0
 
virtual Font getAlertWindowFont ()=0
 
virtual Font getAlertWindowMessageFont ()=0
 
virtual Font getAlertWindowTitleFont ()=0
 
virtual int getCallOutBoxBorderSize (const CallOutBox &)=0
 
virtual float getCallOutBoxCornerSize (const CallOutBox &)=0
 
virtual Font getComboBoxFont (ComboBox &)=0
 
virtual Path getCrossShape (float height)=0
 Returns a cross shape for use in yes/no boxes, etc. More...
 
virtual const DrawablegetDefaultDocumentFileImage ()=0
 
virtual const DrawablegetDefaultFolderImage ()=0
 
virtual int getDefaultMenuBarHeight ()=0
 
virtual int getDefaultScrollbarWidth ()=0
 Returns the default thickness to use for a scrollbar. More...
 
virtual void getIdealPopupMenuItemSize (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight)
 Finds the best size for an item in a popup menu. More...
 
virtual void getIdealPopupMenuItemSizeWithOptions (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight, const Options &)=0
 Finds the best size for an item in a popup menu. More...
 
virtual BorderSize< intgetLabelBorderSize (Label &)=0
 
virtual Font getLabelFont (Label &)=0
 
virtual Font getMenuBarFont (MenuBarComponent &, int itemIndex, const String &itemText)=0
 
virtual int getMenuBarItemWidth (MenuBarComponent &, int itemIndex, const String &itemText)=0
 
virtual int getMenuWindowFlags ()=0
 
virtual int getMinimumScrollbarThumbSize (ScrollBar &)=0
 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...
 
virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox &, Label &)=0
 
virtual ComponentgetParentComponentForMenuOptions (const Options &options)=0
 
virtual int getPopupMenuBorderSize ()
 
virtual int getPopupMenuBorderSizeWithOptions (const Options &)=0
 
virtual int getPopupMenuColumnSeparatorWidthWithOptions (const Options &)=0
 Return the amount of space that should be left between popup menu columns. More...
 
virtual Font getPopupMenuFont ()=0
 Returns the size and style of font to use in popup menus. More...
 
virtual Rectangle< intgetPropertyComponentContentPosition (PropertyComponent &)=0
 
virtual int getPropertyPanelSectionHeaderHeight (const String &sectionTitle)=0
 
virtual int getScrollbarButtonSize (ScrollBar &)=0
 Returns the length in pixels to use for a scrollbar button. More...
 
virtual ImageEffectFiltergetScrollbarEffect ()=0
 Returns the component effect to use for a scrollbar. More...
 
virtual Path getSidePanelDismissButtonShape (SidePanel &)=0
 
virtual Font getSidePanelTitleFont (SidePanel &)=0
 
virtual Justification getSidePanelTitleJustification (SidePanel &)=0
 
virtual ImageEffectFiltergetSliderEffect (Slider &)=0
 
virtual SliderLayout getSliderLayout (Slider &)=0
 
virtual Font getSliderPopupFont (Slider &)=0
 
virtual int getSliderPopupPlacement (Slider &)=0
 
virtual int getSliderThumbRadius (Slider &)=0
 
virtual int getTabButtonBestWidth (TabBarButton &, int tabDepth)=0
 
virtual Rectangle< intgetTabButtonExtraComponentBounds (const TabBarButton &, Rectangle< int > &textArea, Component &extraComp)=0
 
virtual Font getTabButtonFont (TabBarButton &, float height)=0
 
virtual int getTabButtonOverlap (int tabDepth)=0
 
virtual int getTabButtonSpaceAroundImage ()=0
 
virtual Font getTextButtonFont (TextButton &, int buttonHeight)=0
 
virtual int getTextButtonWidthToFitText (TextButton &, int buttonHeight)=0
 
virtual Path getTickShape (float height)=0
 Returns a tick shape for use in yes/no boxes, etc. More...
 
virtual Rectangle< intgetTooltipBounds (const String &tipText, Point< int > screenPos, Rectangle< int > parentArea)=0
 returns the bounds for a tooltip at the given screen coordinate, constrained within the given desktop area. More...
 
virtual int getTreeViewIndentSize (TreeView &)=0
 
virtual Typeface::Ptr getTypefaceForFont (const Font &)
 Returns the typeface that should be used for a given font. More...
 
virtual Array< intgetWidthsForTextButtons (AlertWindow &, const Array< TextButton * > &)=0
 
bool isColourSpecified (int colourId) const noexcept
 Returns true if the specified colour ID has been explicitly set using the setColour() method. More...
 
virtual bool isProgressBarOpaque (ProgressBar &)=0
 
bool isUsingNativeAlertWindows ()
 Returns true if native alert windows will be used (if available). More...
 
virtual void layoutFileBrowserComponent (FileBrowserComponent &browserComp, DirectoryContentsDisplayComponent *fileListComponent, FilePreviewComponent *previewComp, ComboBox *currentPathBox, TextEditor *filenameBox, Button *goUpButton)=0
 
virtual void layoutFilenameComponent (FilenameComponent &, ComboBox *filenameBox, Button *browseButton)=0
 
virtual void paintToolbarBackground (Graphics &, int width, int height, Toolbar &)=0
 
virtual void paintToolbarButtonBackground (Graphics &, int width, int height, bool isMouseOver, bool isMouseDown, ToolbarItemComponent &)=0
 
virtual void paintToolbarButtonLabel (Graphics &, int x, int y, int width, int height, const String &text, ToolbarItemComponent &)=0
 
virtual void playAlertSound ()
 Plays the system's default 'beep' noise, to alert the user about something very important. More...
 
virtual void positionComboBoxText (ComboBox &, Label &labelToPosition)=0
 
virtual void positionDocumentWindowButtons (DocumentWindow &, int titleBarX, int titleBarY, int titleBarW, int titleBarH, Button *minimiseButton, Button *maximiseButton, Button *closeButton, bool positionTitleBarButtonsOnLeft)=0
 
virtual void preparePopupMenuWindow (Component &newWindow)=0
 
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...
 
virtual bool shouldPopupMenuScaleWithTargetComponent (const Options &options)=0
 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 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 Attributes

SortedSet< ColourSettingcolours
 
String defaultFixed
 
String defaultSans
 
String defaultSerif
 
Typeface::Ptr defaultTypeface
 
bool useNativeAlertWindows = false
 

Detailed Description

LookAndFeel objects define the appearance of all the JUCE widgets, and subclasses can be used to apply different 'skins' to the application.

This class is an abstract base-class - for actual look-and-feels that you can instantiate, see LookAndFeel_V1, LookAndFeel_V2 and LookAndFeel_V3.

See also
LookAndFeel_V1, LookAndFeel_V2, LookAndFeel_V3

@tags{GUI}

Constructor & Destructor Documentation

◆ LookAndFeel()

juce::LookAndFeel::LookAndFeel ( )

Creates the default JUCE look and feel.

◆ ~LookAndFeel()

juce::LookAndFeel::~LookAndFeel ( )
override

Destructor.

Member Function Documentation

◆ areLinesDrawnForTreeView()

virtual bool juce::TreeView::LookAndFeelMethods::areLinesDrawnForTreeView ( TreeView )
pure virtualinherited

◆ areScrollbarButtonsVisible()

virtual bool juce::ScrollBar::LookAndFeelMethods::areScrollbarButtonsVisible ( )
pure virtualinherited

◆ changeToggleButtonWidthToFitText()

virtual void juce::Button::LookAndFeelMethods::changeToggleButtonWidthToFitText ( ToggleButton )
pure virtualinherited

◆ createAlertWindow()

virtual AlertWindow* juce::AlertWindow::LookAndFeelMethods::createAlertWindow ( const String title,
const String message,
const String button1,
const String button2,
const String button3,
MessageBoxIconType  iconType,
int  numButtons,
Component associatedComponent 
)
pure virtualinherited

◆ createCaretComponent()

virtual CaretComponent* juce::TextEditor::LookAndFeelMethods::createCaretComponent ( Component keyFocusOwner)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ createComboBoxTextBox()

virtual Label* juce::ComboBox::LookAndFeelMethods::createComboBoxTextBox ( ComboBox )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ createDocumentWindowButton()

virtual Button* juce::DocumentWindow::LookAndFeelMethods::createDocumentWindowButton ( int  buttonType)
pure virtualinherited

◆ createDropShadowerForComponent()

virtual std::unique_ptr<DropShadower> juce::LookAndFeel::createDropShadowerForComponent ( Component )
pure virtual

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

See also
DropShadower

Implemented in juce::LookAndFeel_V2.

◆ createFileBrowserGoUpButton()

virtual Button* juce::FileBrowserComponent::LookAndFeelMethods::createFileBrowserGoUpButton ( )
pure virtualinherited

◆ createFileChooserHeaderText()

virtual AttributedString juce::FileBrowserComponent::LookAndFeelMethods::createFileChooserHeaderText ( const String title,
const String instructions 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ createFilenameComponentBrowseButton()

virtual Button* juce::FilenameComponent::LookAndFeelMethods::createFilenameComponentBrowseButton ( const String text)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ createFocusOutlineForComponent()

virtual std::unique_ptr<FocusOutline> juce::LookAndFeel::createFocusOutlineForComponent ( Component )
pure virtual

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

See also
FocusOutline

Implemented in juce::LookAndFeel_V2.

◆ createGraphicsContext()

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

Creates a new graphics context object.

◆ createSliderButton()

virtual Button* juce::Slider::LookAndFeelMethods::createSliderButton ( Slider ,
bool  isIncrement 
)
pure virtualinherited

◆ createSliderTextBox()

virtual Label* juce::Slider::LookAndFeelMethods::createSliderTextBox ( Slider )
pure virtualinherited

◆ createTabBarExtrasButton()

virtual Button* juce::TabbedButtonBar::LookAndFeelMethods::createTabBarExtrasButton ( )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ createTabButtonShape()

virtual void juce::TabbedButtonBar::LookAndFeelMethods::createTabButtonShape ( TabBarButton ,
Path path,
bool  isMouseOver,
bool  isMouseDown 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ createToolbarMissingItemsButton()

virtual Button* juce::Toolbar::LookAndFeelMethods::createToolbarMissingItemsButton ( Toolbar )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawAlertBox()

virtual void juce::AlertWindow::LookAndFeelMethods::drawAlertBox ( Graphics ,
AlertWindow ,
const Rectangle< int > &  textArea,
TextLayout  
)
pure virtualinherited

◆ drawBubble()

virtual void juce::BubbleComponent::LookAndFeelMethods::drawBubble ( Graphics ,
BubbleComponent ,
const Point< float > &  positionOfTip,
const Rectangle< float > &  body 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawButtonBackground()

virtual void juce::Button::LookAndFeelMethods::drawButtonBackground ( Graphics ,
Button ,
const Colour backgroundColour,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
pure virtualinherited

◆ drawButtonText()

virtual void juce::Button::LookAndFeelMethods::drawButtonText ( Graphics ,
TextButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
pure virtualinherited

Draws the text for a TextButton.

Implemented in juce::LookAndFeel_V2.

◆ drawCallOutBoxBackground()

virtual void juce::CallOutBox::LookAndFeelMethods::drawCallOutBoxBackground ( CallOutBox ,
Graphics ,
const Path ,
Image  
)
pure virtualinherited

◆ drawComboBox()

virtual void juce::ComboBox::LookAndFeelMethods::drawComboBox ( Graphics ,
int  width,
int  height,
bool  isButtonDown,
int  buttonX,
int  buttonY,
int  buttonW,
int  buttonH,
ComboBox  
)
pure virtualinherited

◆ drawComboBoxTextWhenNothingSelected()

virtual void juce::ComboBox::LookAndFeelMethods::drawComboBoxTextWhenNothingSelected ( Graphics ,
ComboBox ,
Label  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawConcertinaPanelHeader()

virtual void juce::ConcertinaPanel::LookAndFeelMethods::drawConcertinaPanelHeader ( Graphics ,
const Rectangle< int > &  area,
bool  isMouseOver,
bool  isMouseDown,
ConcertinaPanel ,
Component  
)
pure virtualinherited

◆ drawCornerResizer()

virtual void juce::ResizableWindow::LookAndFeelMethods::drawCornerResizer ( Graphics ,
int  w,
int  h,
bool  isMouseOver,
bool  isMouseDragging 
)
pure virtualinherited

◆ drawDocumentWindowTitleBar()

virtual void juce::DocumentWindow::LookAndFeelMethods::drawDocumentWindowTitleBar ( DocumentWindow ,
Graphics ,
int  w,
int  h,
int  titleSpaceX,
int  titleSpaceW,
const Image icon,
bool  drawTitleTextOnLeft 
)
pure virtualinherited

◆ drawDrawableButton()

virtual void juce::Button::LookAndFeelMethods::drawDrawableButton ( Graphics ,
DrawableButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawFileBrowserRow()

virtual void juce::FileBrowserComponent::LookAndFeelMethods::drawFileBrowserRow ( Graphics ,
int  width,
int  height,
const File file,
const String filename,
Image optionalIcon,
const String fileSizeDescription,
const String fileTimeDescription,
bool  isDirectory,
bool  isItemSelected,
int  itemIndex,
DirectoryContentsDisplayComponent  
)
pure virtualinherited

◆ drawGroupComponentOutline()

virtual void juce::GroupComponent::LookAndFeelMethods::drawGroupComponentOutline ( Graphics ,
int  w,
int  h,
const String text,
const Justification ,
GroupComponent  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawImageButton()

virtual void juce::ImageButton::LookAndFeelMethods::drawImageButton ( Graphics ,
Image ,
int  imageX,
int  imageY,
int  imageW,
int  imageH,
const Colour overlayColour,
float  imageOpacity,
ImageButton  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawKeymapChangeButton()

virtual void juce::ExtraLookAndFeelBaseClasses::KeyMappingEditorComponentMethods::drawKeymapChangeButton ( Graphics ,
int  width,
int  height,
Button ,
const String keyDescription 
)
pure virtualinherited

◆ drawLabel()

virtual void juce::Label::LookAndFeelMethods::drawLabel ( Graphics ,
Label  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawLasso()

virtual void juce::ExtraLookAndFeelBaseClasses::LassoComponentMethods::drawLasso ( Graphics ,
Component lassoComp 
)
pure virtualinherited

◆ drawLevelMeter()

virtual void juce::ExtraLookAndFeelBaseClasses::AudioDeviceSelectorComponentMethods::drawLevelMeter ( Graphics ,
int  width,
int  height,
float  level 
)
pure virtualinherited

◆ drawLinearSlider()

virtual void juce::Slider::LookAndFeelMethods::drawLinearSlider ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  ,
Slider  
)
pure virtualinherited

◆ drawLinearSliderBackground()

virtual void juce::Slider::LookAndFeelMethods::drawLinearSliderBackground ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  style,
Slider  
)
pure virtualinherited

◆ drawLinearSliderThumb()

virtual void juce::Slider::LookAndFeelMethods::drawLinearSliderThumb ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPos,
float  minSliderPos,
float  maxSliderPos,
const Slider::SliderStyle  ,
Slider  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawMenuBarBackground()

virtual void juce::PopupMenu::LookAndFeelMethods::drawMenuBarBackground ( Graphics ,
int  width,
int  height,
bool  isMouseOverBar,
MenuBarComponent  
)
pure virtualinherited

◆ drawMenuBarItem()

virtual void juce::PopupMenu::LookAndFeelMethods::drawMenuBarItem ( Graphics ,
int  width,
int  height,
int  itemIndex,
const String itemText,
bool  isMouseOverItem,
bool  isMenuOpen,
bool  isMouseOverBar,
MenuBarComponent  
)
pure virtualinherited

◆ drawPopupMenuBackground()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuBackground ( Graphics ,
int  width,
int  height 
)
virtualinherited

Fills the background of a popup menu component.

Reimplemented in juce::LookAndFeel_V2, juce::LookAndFeel_V1, and juce::LookAndFeel_V3.

◆ drawPopupMenuBackgroundWithOptions()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuBackgroundWithOptions ( Graphics ,
int  width,
int  height,
const Options  
)
pure virtualinherited

Fills the background of a popup menu component.

Implemented in juce::LookAndFeel_V2.

◆ drawPopupMenuColumnSeparatorWithOptions()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuColumnSeparatorWithOptions ( Graphics g,
const Rectangle< int > &  bounds,
const Options  
)
pure virtualinherited

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.

Implemented in juce::LookAndFeel_V2.

◆ drawPopupMenuItem()

virtual void juce::PopupMenu::LookAndFeelMethods::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 
)
virtualinherited

Draws one of the items in a popup menu.

Reimplemented in juce::LookAndFeel_V4, and juce::LookAndFeel_V2.

◆ drawPopupMenuItemWithOptions()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuItemWithOptions ( Graphics ,
const Rectangle< int > &  area,
bool  isHighlighted,
const Item item,
const Options  
)
pure virtualinherited

Draws one of the items in a popup menu.

Implemented in juce::LookAndFeel_V2.

◆ drawPopupMenuSectionHeader()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuSectionHeader ( Graphics ,
const Rectangle< int > &  ,
const String  
)
virtualinherited

Reimplemented in juce::LookAndFeel_V2.

◆ drawPopupMenuSectionHeaderWithOptions()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuSectionHeaderWithOptions ( Graphics ,
const Rectangle< int > &  area,
const String sectionName,
const Options  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawPopupMenuUpDownArrow()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuUpDownArrow ( Graphics ,
int  width,
int  height,
bool  isScrollUpArrow 
)
virtualinherited

Reimplemented in juce::LookAndFeel_V2.

◆ drawPopupMenuUpDownArrowWithOptions()

virtual void juce::PopupMenu::LookAndFeelMethods::drawPopupMenuUpDownArrowWithOptions ( Graphics ,
int  width,
int  height,
bool  isScrollUpArrow,
const Options  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawProgressBar()

virtual void juce::ProgressBar::LookAndFeelMethods::drawProgressBar ( Graphics ,
ProgressBar ,
int  width,
int  height,
double  progress,
const String textToShow 
)
pure virtualinherited

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

Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, and juce::LookAndFeel_V1.

◆ drawPropertyComponentBackground()

virtual void juce::PropertyComponent::LookAndFeelMethods::drawPropertyComponentBackground ( Graphics ,
int  width,
int  height,
PropertyComponent  
)
pure virtualinherited

◆ drawPropertyComponentLabel()

virtual void juce::PropertyComponent::LookAndFeelMethods::drawPropertyComponentLabel ( Graphics ,
int  width,
int  height,
PropertyComponent  
)
pure virtualinherited

◆ drawPropertyPanelSectionHeader()

virtual void juce::PropertyComponent::LookAndFeelMethods::drawPropertyPanelSectionHeader ( Graphics ,
const String name,
bool  isOpen,
int  width,
int  height 
)
pure virtualinherited

◆ drawResizableFrame()

virtual void juce::ResizableWindow::LookAndFeelMethods::drawResizableFrame ( Graphics ,
int  w,
int  h,
const BorderSize< int > &   
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawResizableWindowBorder()

virtual void juce::ResizableWindow::LookAndFeelMethods::drawResizableWindowBorder ( Graphics ,
int  w,
int  h,
const BorderSize< int > &  border,
ResizableWindow  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawRotarySlider()

virtual void juce::Slider::LookAndFeelMethods::drawRotarySlider ( Graphics ,
int  x,
int  y,
int  width,
int  height,
float  sliderPosProportional,
float  rotaryStartAngle,
float  rotaryEndAngle,
Slider  
)
pure virtualinherited

◆ drawScrollbar()

virtual void juce::ScrollBar::LookAndFeelMethods::drawScrollbar ( Graphics g,
ScrollBar scrollbar,
int  x,
int  y,
int  width,
int  height,
bool  isScrollbarVertical,
int  thumbStartPosition,
int  thumbSize,
bool  isMouseOver,
bool  isMouseDown 
)
pure virtualinherited

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

Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, juce::LookAndFeel_V3, and juce::LookAndFeel_V1.

◆ drawScrollbarButton()

virtual void juce::ScrollBar::LookAndFeelMethods::drawScrollbarButton ( Graphics g,
ScrollBar scrollbar,
int  width,
int  height,
int  buttonDirection,
bool  isScrollbarVertical,
bool  isMouseOverButton,
bool  isButtonDown 
)
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2, and juce::LookAndFeel_V1.

◆ drawSpinningWaitAnimation()

virtual void juce::LookAndFeel::drawSpinningWaitAnimation ( Graphics ,
const Colour colour,
int  x,
int  y,
int  w,
int  h 
)
pure virtual

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.

Implemented in juce::LookAndFeel_V2.

◆ drawStretchableLayoutResizerBar()

virtual void juce::StretchableLayoutResizerBar::LookAndFeelMethods::drawStretchableLayoutResizerBar ( Graphics ,
int  w,
int  h,
bool  isVerticalBar,
bool  isMouseOver,
bool  isMouseDragging 
)
pure virtualinherited

◆ drawTabAreaBehindFrontButton()

virtual void juce::TabbedButtonBar::LookAndFeelMethods::drawTabAreaBehindFrontButton ( TabbedButtonBar ,
Graphics ,
int  w,
int  h 
)
pure virtualinherited

◆ drawTabbedButtonBarBackground()

virtual void juce::TabbedButtonBar::LookAndFeelMethods::drawTabbedButtonBarBackground ( TabbedButtonBar ,
Graphics  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawTabButton()

virtual void juce::TabbedButtonBar::LookAndFeelMethods::drawTabButton ( TabBarButton ,
Graphics ,
bool  isMouseOver,
bool  isMouseDown 
)
pure virtualinherited

◆ drawTabButtonText()

virtual void juce::TabbedButtonBar::LookAndFeelMethods::drawTabButtonText ( TabBarButton ,
Graphics ,
bool  isMouseOver,
bool  isMouseDown 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawTableHeaderBackground()

virtual void juce::TableHeaderComponent::LookAndFeelMethods::drawTableHeaderBackground ( Graphics ,
TableHeaderComponent  
)
pure virtualinherited

◆ drawTableHeaderColumn()

virtual void juce::TableHeaderComponent::LookAndFeelMethods::drawTableHeaderColumn ( Graphics ,
TableHeaderComponent ,
const String columnName,
int  columnId,
int  width,
int  height,
bool  isMouseOver,
bool  isMouseDown,
int  columnFlags 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ drawTextEditorOutline()

virtual void juce::TextEditor::LookAndFeelMethods::drawTextEditorOutline ( Graphics ,
int  width,
int  height,
TextEditor  
)
pure virtualinherited

◆ drawTickBox()

virtual void juce::Button::LookAndFeelMethods::drawTickBox ( Graphics ,
Component ,
float  x,
float  y,
float  w,
float  h,
bool  ticked,
bool  isEnabled,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
pure virtualinherited

◆ drawToggleButton()

virtual void juce::Button::LookAndFeelMethods::drawToggleButton ( Graphics ,
ToggleButton ,
bool  shouldDrawButtonAsHighlighted,
bool  shouldDrawButtonAsDown 
)
pure virtualinherited

Draws the contents of a standard ToggleButton.

Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, and juce::LookAndFeel_V1.

◆ drawTooltip()

virtual void juce::TooltipWindow::LookAndFeelMethods::drawTooltip ( Graphics ,
const String text,
int  width,
int  height 
)
pure virtualinherited

◆ drawTreeviewPlusMinusBox()

virtual void juce::TreeView::LookAndFeelMethods::drawTreeviewPlusMinusBox ( Graphics ,
const Rectangle< float > &  area,
Colour  backgroundColour,
bool  isItemOpen,
bool  isMouseOver 
)
pure virtualinherited

◆ fillResizableWindowBackground()

virtual void juce::ResizableWindow::LookAndFeelMethods::fillResizableWindowBackground ( Graphics ,
int  w,
int  h,
const BorderSize< int > &  ,
ResizableWindow  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ fillTabButtonShape()

virtual void juce::TabbedButtonBar::LookAndFeelMethods::fillTabButtonShape ( TabBarButton ,
Graphics ,
const Path path,
bool  isMouseOver,
bool  isMouseDown 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ fillTextEditorBackground()

virtual void juce::TextEditor::LookAndFeelMethods::fillTextEditorBackground ( Graphics ,
int  width,
int  height,
TextEditor  
)
pure virtualinherited

◆ findColour()

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

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

virtual int juce::AlertWindow::LookAndFeelMethods::getAlertBoxWindowFlags ( )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getAlertWindowButtonHeight()

virtual int juce::AlertWindow::LookAndFeelMethods::getAlertWindowButtonHeight ( )
pure virtualinherited

◆ getAlertWindowFont()

virtual Font juce::AlertWindow::LookAndFeelMethods::getAlertWindowFont ( )
pure virtualinherited

◆ getAlertWindowMessageFont()

virtual Font juce::AlertWindow::LookAndFeelMethods::getAlertWindowMessageFont ( )
pure virtualinherited

◆ getAlertWindowTitleFont()

virtual Font juce::AlertWindow::LookAndFeelMethods::getAlertWindowTitleFont ( )
pure virtualinherited

◆ getCallOutBoxBorderSize()

virtual int juce::CallOutBox::LookAndFeelMethods::getCallOutBoxBorderSize ( const CallOutBox )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getCallOutBoxCornerSize()

virtual float juce::CallOutBox::LookAndFeelMethods::getCallOutBoxCornerSize ( const CallOutBox )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getComboBoxFont()

virtual Font juce::ComboBox::LookAndFeelMethods::getComboBoxFont ( ComboBox )
pure virtualinherited

◆ getCrossShape()

virtual Path juce::LookAndFeel::getCrossShape ( float  height)
pure virtual

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

Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, and juce::LookAndFeel_V3.

◆ getDefaultDocumentFileImage()

virtual const Drawable* juce::FileBrowserComponent::LookAndFeelMethods::getDefaultDocumentFileImage ( )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getDefaultFolderImage()

virtual const Drawable* juce::FileBrowserComponent::LookAndFeelMethods::getDefaultFolderImage ( )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getDefaultLookAndFeel()

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

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

See also
setDefaultLookAndFeel

◆ getDefaultMenuBarHeight()

virtual int juce::PopupMenu::LookAndFeelMethods::getDefaultMenuBarHeight ( )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getDefaultScrollbarWidth()

virtual int juce::ScrollBar::LookAndFeelMethods::getDefaultScrollbarWidth ( )
pure virtualinherited

Returns the default thickness to use for a scrollbar.

Implemented in juce::LookAndFeel_V4, and juce::LookAndFeel_V2.

◆ getIdealPopupMenuItemSize()

virtual void juce::PopupMenu::LookAndFeelMethods::getIdealPopupMenuItemSize ( const String text,
bool  isSeparator,
int  standardMenuItemHeight,
int idealWidth,
int idealHeight 
)
virtualinherited

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

Reimplemented in juce::LookAndFeel_V2, and juce::LookAndFeel_V4.

◆ getIdealPopupMenuItemSizeWithOptions()

virtual void juce::PopupMenu::LookAndFeelMethods::getIdealPopupMenuItemSizeWithOptions ( const String text,
bool  isSeparator,
int  standardMenuItemHeight,
int idealWidth,
int idealHeight,
const Options  
)
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

◆ getLabelBorderSize()

virtual BorderSize<int> juce::Label::LookAndFeelMethods::getLabelBorderSize ( Label )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getLabelFont()

virtual Font juce::Label::LookAndFeelMethods::getLabelFont ( Label )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getMenuBarFont()

virtual Font juce::PopupMenu::LookAndFeelMethods::getMenuBarFont ( MenuBarComponent ,
int  itemIndex,
const String itemText 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getMenuBarItemWidth()

virtual int juce::PopupMenu::LookAndFeelMethods::getMenuBarItemWidth ( MenuBarComponent ,
int  itemIndex,
const String itemText 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getMenuWindowFlags()

virtual int juce::PopupMenu::LookAndFeelMethods::getMenuWindowFlags ( )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getMinimumScrollbarThumbSize()

virtual int juce::ScrollBar::LookAndFeelMethods::getMinimumScrollbarThumbSize ( ScrollBar )
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

◆ getMouseCursorFor()

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

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

See also
MouseCursor

◆ getOptionsForComboBoxPopupMenu()

virtual PopupMenu::Options juce::ComboBox::LookAndFeelMethods::getOptionsForComboBoxPopupMenu ( ComboBox ,
Label  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getParentComponentForMenuOptions()

virtual Component* juce::PopupMenu::LookAndFeelMethods::getParentComponentForMenuOptions ( const Options options)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getPopupMenuBorderSize()

virtual int juce::PopupMenu::LookAndFeelMethods::getPopupMenuBorderSize ( )
virtualinherited

Reimplemented in juce::LookAndFeel_V2.

◆ getPopupMenuBorderSizeWithOptions()

virtual int juce::PopupMenu::LookAndFeelMethods::getPopupMenuBorderSizeWithOptions ( const Options )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getPopupMenuColumnSeparatorWidthWithOptions()

virtual int juce::PopupMenu::LookAndFeelMethods::getPopupMenuColumnSeparatorWidthWithOptions ( const Options )
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

◆ getPopupMenuFont()

virtual Font juce::PopupMenu::LookAndFeelMethods::getPopupMenuFont ( )
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

◆ getPropertyComponentContentPosition()

virtual Rectangle<int> juce::PropertyComponent::LookAndFeelMethods::getPropertyComponentContentPosition ( PropertyComponent )
pure virtualinherited

◆ getPropertyPanelSectionHeaderHeight()

virtual int juce::PropertyComponent::LookAndFeelMethods::getPropertyPanelSectionHeaderHeight ( const String sectionTitle)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getScrollbarButtonSize()

virtual int juce::ScrollBar::LookAndFeelMethods::getScrollbarButtonSize ( ScrollBar )
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

◆ getScrollbarEffect()

virtual ImageEffectFilter* juce::ScrollBar::LookAndFeelMethods::getScrollbarEffect ( )
pure virtualinherited

Returns the component effect to use for a scrollbar.

Implemented in juce::LookAndFeel_V2, and juce::LookAndFeel_V1.

◆ getSidePanelDismissButtonShape()

virtual Path juce::SidePanel::LookAndFeelMethods::getSidePanelDismissButtonShape ( SidePanel )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getSidePanelTitleFont()

virtual Font juce::SidePanel::LookAndFeelMethods::getSidePanelTitleFont ( SidePanel )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getSidePanelTitleJustification()

virtual Justification juce::SidePanel::LookAndFeelMethods::getSidePanelTitleJustification ( SidePanel )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getSliderEffect()

virtual ImageEffectFilter* juce::Slider::LookAndFeelMethods::getSliderEffect ( Slider )
pure virtualinherited

◆ getSliderLayout()

virtual SliderLayout juce::Slider::LookAndFeelMethods::getSliderLayout ( Slider )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getSliderPopupFont()

virtual Font juce::Slider::LookAndFeelMethods::getSliderPopupFont ( Slider )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getSliderPopupPlacement()

virtual int juce::Slider::LookAndFeelMethods::getSliderPopupPlacement ( Slider )
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getSliderThumbRadius()

virtual int juce::Slider::LookAndFeelMethods::getSliderThumbRadius ( Slider )
pure virtualinherited

◆ getTabButtonBestWidth()

virtual int juce::TabbedButtonBar::LookAndFeelMethods::getTabButtonBestWidth ( TabBarButton ,
int  tabDepth 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getTabButtonExtraComponentBounds()

virtual Rectangle<int> juce::TabbedButtonBar::LookAndFeelMethods::getTabButtonExtraComponentBounds ( const TabBarButton ,
Rectangle< int > &  textArea,
Component extraComp 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getTabButtonFont()

virtual Font juce::TabbedButtonBar::LookAndFeelMethods::getTabButtonFont ( TabBarButton ,
float  height 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getTabButtonOverlap()

virtual int juce::TabbedButtonBar::LookAndFeelMethods::getTabButtonOverlap ( int  tabDepth)
pure virtualinherited

◆ getTabButtonSpaceAroundImage()

virtual int juce::TabbedButtonBar::LookAndFeelMethods::getTabButtonSpaceAroundImage ( )
pure virtualinherited

◆ getTextButtonFont()

virtual Font juce::Button::LookAndFeelMethods::getTextButtonFont ( TextButton ,
int  buttonHeight 
)
pure virtualinherited

◆ getTextButtonWidthToFitText()

virtual int juce::Button::LookAndFeelMethods::getTextButtonWidthToFitText ( TextButton ,
int  buttonHeight 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ getTickShape()

virtual Path juce::LookAndFeel::getTickShape ( float  height)
pure virtual

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

Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, and juce::LookAndFeel_V3.

◆ getTooltipBounds()

virtual Rectangle<int> juce::TooltipWindow::LookAndFeelMethods::getTooltipBounds ( const String tipText,
Point< int screenPos,
Rectangle< int parentArea 
)
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

◆ getTreeViewIndentSize()

virtual int juce::TreeView::LookAndFeelMethods::getTreeViewIndentSize ( TreeView )
pure virtualinherited

◆ getTypefaceForFont()

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

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

virtual Array<int> juce::AlertWindow::LookAndFeelMethods::getWidthsForTextButtons ( AlertWindow ,
const Array< TextButton * > &   
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ isColourSpecified()

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

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

◆ isProgressBarOpaque()

virtual bool juce::ProgressBar::LookAndFeelMethods::isProgressBarOpaque ( ProgressBar )
pure virtualinherited

◆ isUsingNativeAlertWindows()

bool juce::LookAndFeel::isUsingNativeAlertWindows ( )

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

The default setting for this is false.

See also
setUsingNativeAlertWindows

◆ layoutFileBrowserComponent()

virtual void juce::FileBrowserComponent::LookAndFeelMethods::layoutFileBrowserComponent ( FileBrowserComponent browserComp,
DirectoryContentsDisplayComponent fileListComponent,
FilePreviewComponent previewComp,
ComboBox currentPathBox,
TextEditor filenameBox,
Button goUpButton 
)
pure virtualinherited

◆ layoutFilenameComponent()

virtual void juce::FilenameComponent::LookAndFeelMethods::layoutFilenameComponent ( FilenameComponent ,
ComboBox filenameBox,
Button browseButton 
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ paintToolbarBackground()

virtual void juce::Toolbar::LookAndFeelMethods::paintToolbarBackground ( Graphics ,
int  width,
int  height,
Toolbar  
)
pure virtualinherited

◆ paintToolbarButtonBackground()

virtual void juce::Toolbar::LookAndFeelMethods::paintToolbarButtonBackground ( Graphics ,
int  width,
int  height,
bool  isMouseOver,
bool  isMouseDown,
ToolbarItemComponent  
)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ paintToolbarButtonLabel()

virtual void juce::Toolbar::LookAndFeelMethods::paintToolbarButtonLabel ( Graphics ,
int  x,
int  y,
int  width,
int  height,
const String text,
ToolbarItemComponent  
)
pure virtualinherited

◆ playAlertSound()

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

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

This is only supported on some platforms.

◆ positionComboBoxText()

virtual void juce::ComboBox::LookAndFeelMethods::positionComboBoxText ( ComboBox ,
Label labelToPosition 
)
pure virtualinherited

◆ positionDocumentWindowButtons()

virtual void juce::DocumentWindow::LookAndFeelMethods::positionDocumentWindowButtons ( DocumentWindow ,
int  titleBarX,
int  titleBarY,
int  titleBarW,
int  titleBarH,
Button minimiseButton,
Button maximiseButton,
Button closeButton,
bool  positionTitleBarButtonsOnLeft 
)
pure virtualinherited

◆ preparePopupMenuWindow()

virtual void juce::PopupMenu::LookAndFeelMethods::preparePopupMenuWindow ( Component newWindow)
pure virtualinherited

Implemented in juce::LookAndFeel_V2.

◆ setColour()

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

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

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)

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)

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)

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

See also
isUsingNativeAlertWindows

◆ shouldPopupMenuScaleWithTargetComponent()

virtual bool juce::PopupMenu::LookAndFeelMethods::shouldPopupMenuScaleWithTargetComponent ( const Options options)
pure virtualinherited

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

Implemented in juce::LookAndFeel_V2.

Member Data Documentation

◆ colours

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

◆ defaultFixed

String juce::LookAndFeel::defaultFixed
private

◆ defaultSans

String juce::LookAndFeel::defaultSans
private

◆ defaultSerif

String juce::LookAndFeel::defaultSerif
private

◆ defaultTypeface

Typeface::Ptr juce::LookAndFeel::defaultTypeface
private

◆ useNativeAlertWindows

bool juce::LookAndFeel::useNativeAlertWindows = false
private

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