LookAndFeel objects define the appearance of all the JUCE widgets, and subclasses can be used to apply different 'skins' to the application. More...
Inherited by OldSchoolLookAndFeel.
Public Member Functions | |
| LookAndFeel () | |
| Creates the default JUCE look and feel. | |
| virtual | ~LookAndFeel () |
| Destructor. | |
| const Colour | findColour (int colourId) const noexcept |
| Looks for a colour that has been registered with the given colour ID number. | |
| void | setColour (int colourId, const Colour &colour) noexcept |
| Registers a colour to be used for a particular purpose. | |
| bool | isColourSpecified (int colourId) const noexcept |
| Returns true if the specified colour ID has been explicitly set using the setColour() method. | |
| virtual const Typeface::Ptr | getTypefaceForFont (const Font &font) |
| void | setDefaultSansSerifTypefaceName (const String &newName) |
| Allows you to change the default sans-serif font. | |
| virtual const MouseCursor | getMouseCursorFor (Component &component) |
| Override this to get the chance to swap a component's mouse cursor for a customised one. | |
| virtual void | drawButtonBackground (Graphics &g, Button &button, const Colour &backgroundColour, bool isMouseOverButton, bool isButtonDown) |
| Draws the lozenge-shaped background for a standard button. | |
| virtual const Font | getFontForTextButton (TextButton &button) |
| virtual void | drawButtonText (Graphics &g, TextButton &button, bool isMouseOverButton, bool isButtonDown) |
| Draws the text for a TextButton. | |
| virtual void | drawToggleButton (Graphics &g, ToggleButton &button, bool isMouseOverButton, bool isButtonDown) |
| Draws the contents of a standard ToggleButton. | |
| virtual void | changeToggleButtonWidthToFitText (ToggleButton &button) |
| virtual void | drawTickBox (Graphics &g, Component &component, float x, float y, float w, float h, bool ticked, bool isEnabled, bool isMouseOverButton, bool isButtonDown) |
| virtual AlertWindow * | createAlertWindow (const String &title, const String &message, const String &button1, const String &button2, const String &button3, AlertWindow::AlertIconType iconType, int numButtons, Component *associatedComponent) |
| virtual void | drawAlertBox (Graphics &g, AlertWindow &alert, const Rectangle< int > &textArea, TextLayout &textLayout) |
| virtual int | getAlertBoxWindowFlags () |
| virtual int | getAlertWindowButtonHeight () |
| virtual const Font | getAlertWindowMessageFont () |
| virtual const Font | getAlertWindowFont () |
| void | setUsingNativeAlertWindows (bool shouldUseNativeAlerts) |
| bool | isUsingNativeAlertWindows () |
| virtual void | drawProgressBar (Graphics &g, ProgressBar &progressBar, int width, int height, double progress, const String &textToShow) |
| Draws a progress bar. | |
| virtual void | drawSpinningWaitAnimation (Graphics &g, const Colour &colour, int x, int y, int w, int h) |
| virtual void | drawScrollbarButton (Graphics &g, ScrollBar &scrollbar, int width, int height, int buttonDirection, bool isScrollbarVertical, bool isMouseOverButton, bool isButtonDown) |
| Draws one of the buttons on a scrollbar. | |
| virtual void | drawScrollbar (Graphics &g, ScrollBar &scrollbar, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown) |
| Draws the thumb area of a scrollbar. | |
| virtual ImageEffectFilter * | getScrollbarEffect () |
| Returns the component effect to use for a scrollbar. | |
| virtual int | getMinimumScrollbarThumbSize (ScrollBar &scrollbar) |
| Returns the minimum length in pixels to use for a scrollbar thumb. | |
| virtual int | getDefaultScrollbarWidth () |
| Returns the default thickness to use for a scrollbar. | |
| virtual int | getScrollbarButtonSize (ScrollBar &scrollbar) |
| Returns the length in pixels to use for a scrollbar button. | |
| virtual const Path | getTickShape (float height) |
| Returns a tick shape for use in yes/no boxes, etc. | |
| virtual const Path | getCrossShape (float height) |
| Returns a cross shape for use in yes/no boxes, etc. | |
| virtual void | drawTreeviewPlusMinusBox (Graphics &g, int x, int y, int w, int h, bool isPlus, bool isMouseOver) |
| Draws the + or - box in a treeview. | |
| virtual void | fillTextEditorBackground (Graphics &g, int width, int height, TextEditor &textEditor) |
| virtual void | drawTextEditorOutline (Graphics &g, int width, int height, TextEditor &textEditor) |
| virtual CaretComponent * | createCaretComponent (Component *keyFocusOwner) |
| virtual const Drawable * | getDefaultFolderImage () |
| virtual const Drawable * | getDefaultDocumentFileImage () |
| virtual void | createFileChooserHeaderText (const String &title, const String &instructions, GlyphArrangement &destArrangement, int width) |
| virtual void | drawFileBrowserRow (Graphics &g, int width, int height, const String &filename, Image *icon, const String &fileSizeDescription, const String &fileTimeDescription, bool isDirectory, bool isItemSelected, int itemIndex, DirectoryContentsDisplayComponent &component) |
| virtual Button * | createFileBrowserGoUpButton () |
| virtual void | layoutFileBrowserComponent (FileBrowserComponent &browserComp, DirectoryContentsDisplayComponent *fileListComponent, FilePreviewComponent *previewComp, ComboBox *currentPathBox, TextEditor *filenameBox, Button *goUpButton) |
| virtual void | drawBubble (Graphics &g, float tipX, float tipY, float boxX, float boxY, float boxW, float boxH) |
| virtual void | drawPopupMenuBackground (Graphics &g, int width, int height) |
| Fills the background of a popup menu component. | |
| virtual void | drawPopupMenuItem (Graphics &g, int width, int height, bool isSeparator, bool isActive, bool isHighlighted, bool isTicked, bool hasSubMenu, const String &text, const String &shortcutKeyText, Image *image, const Colour *const textColour) |
| Draws one of the items in a popup menu. | |
| virtual const Font | getPopupMenuFont () |
| Returns the size and style of font to use in popup menus. | |
| virtual void | drawPopupMenuUpDownArrow (Graphics &g, int width, int height, bool isScrollUpArrow) |
| 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. | |
| virtual int | getMenuWindowFlags () |
| virtual void | drawMenuBarBackground (Graphics &g, int width, int height, bool isMouseOverBar, MenuBarComponent &menuBar) |
| virtual int | getMenuBarItemWidth (MenuBarComponent &menuBar, int itemIndex, const String &itemText) |
| virtual const Font | getMenuBarFont (MenuBarComponent &menuBar, int itemIndex, const String &itemText) |
| virtual void | drawMenuBarItem (Graphics &g, int width, int height, int itemIndex, const String &itemText, bool isMouseOverItem, bool isMenuOpen, bool isMouseOverBar, MenuBarComponent &menuBar) |
| virtual void | drawComboBox (Graphics &g, int width, int height, bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &box) |
| virtual const Font | getComboBoxFont (ComboBox &box) |
| virtual Label * | createComboBoxTextBox (ComboBox &box) |
| virtual void | positionComboBoxText (ComboBox &box, Label &labelToPosition) |
| virtual void | drawLabel (Graphics &g, Label &label) |
| virtual void | drawLinearSlider (Graphics &g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle style, Slider &slider) |
| virtual void | drawLinearSliderBackground (Graphics &g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle style, Slider &slider) |
| virtual void | drawLinearSliderThumb (Graphics &g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle style, Slider &slider) |
| virtual int | getSliderThumbRadius (Slider &slider) |
| virtual void | drawRotarySlider (Graphics &g, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider &slider) |
| virtual Button * | createSliderButton (bool isIncrement) |
| virtual Label * | createSliderTextBox (Slider &slider) |
| virtual ImageEffectFilter * | getSliderEffect () |
| virtual void | getTooltipSize (const String &tipText, int &width, int &height) |
| virtual void | drawTooltip (Graphics &g, const String &text, int width, int height) |
| virtual Button * | createFilenameComponentBrowseButton (const String &text) |
| virtual void | layoutFilenameComponent (FilenameComponent &filenameComp, ComboBox *filenameBox, Button *browseButton) |
| virtual void | drawCornerResizer (Graphics &g, int w, int h, bool isMouseOver, bool isMouseDragging) |
| virtual void | drawResizableFrame (Graphics &g, int w, int h, const BorderSize< int > &borders) |
| virtual void | fillResizableWindowBackground (Graphics &g, int w, int h, const BorderSize< int > &border, ResizableWindow &window) |
| virtual void | drawResizableWindowBorder (Graphics &g, int w, int h, const BorderSize< int > &border, ResizableWindow &window) |
| virtual void | drawDocumentWindowTitleBar (DocumentWindow &window, Graphics &g, int w, int h, int titleSpaceX, int titleSpaceW, const Image *icon, bool drawTitleTextOnLeft) |
| virtual Button * | createDocumentWindowButton (int buttonType) |
| virtual void | positionDocumentWindowButtons (DocumentWindow &window, int titleBarX, int titleBarY, int titleBarW, int titleBarH, Button *minimiseButton, Button *maximiseButton, Button *closeButton, bool positionTitleBarButtonsOnLeft) |
| virtual int | getDefaultMenuBarHeight () |
| virtual DropShadower * | createDropShadowerForComponent (Component *component) |
| virtual void | drawStretchableLayoutResizerBar (Graphics &g, int w, int h, bool isVerticalBar, bool isMouseOver, bool isMouseDragging) |
| virtual void | drawGroupComponentOutline (Graphics &g, int w, int h, const String &text, const Justification &position, GroupComponent &group) |
| virtual void | createTabButtonShape (Path &p, int width, int height, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation orientation, bool isMouseOver, bool isMouseDown, bool isFrontTab) |
| virtual void | fillTabButtonShape (Graphics &g, const Path &path, const Colour &preferredBackgroundColour, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation orientation, bool isMouseOver, bool isMouseDown, bool isFrontTab) |
| virtual void | drawTabButtonText (Graphics &g, int x, int y, int w, int h, const Colour &preferredBackgroundColour, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation orientation, bool isMouseOver, bool isMouseDown, bool isFrontTab) |
| virtual int | getTabButtonOverlap (int tabDepth) |
| virtual int | getTabButtonSpaceAroundImage () |
| virtual int | getTabButtonBestWidth (int tabIndex, const String &text, int tabDepth, Button &button) |
| virtual void | drawTabButton (Graphics &g, int w, int h, const Colour &preferredColour, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation orientation, bool isMouseOver, bool isMouseDown, bool isFrontTab) |
| virtual void | drawTabAreaBehindFrontButton (Graphics &g, int w, int h, TabbedButtonBar &tabBar, TabbedButtonBar::Orientation orientation) |
| virtual Button * | createTabBarExtrasButton () |
| virtual void | drawImageButton (Graphics &g, Image *image, int imageX, int imageY, int imageW, int imageH, const Colour &overlayColour, float imageOpacity, ImageButton &button) |
| virtual void | drawTableHeaderBackground (Graphics &g, TableHeaderComponent &header) |
| virtual void | drawTableHeaderColumn (Graphics &g, const String &columnName, int columnId, int width, int height, bool isMouseOver, bool isMouseDown, int columnFlags) |
| virtual void | paintToolbarBackground (Graphics &g, int width, int height, Toolbar &toolbar) |
| virtual Button * | createToolbarMissingItemsButton (Toolbar &toolbar) |
| virtual void | paintToolbarButtonBackground (Graphics &g, int width, int height, bool isMouseOver, bool isMouseDown, ToolbarItemComponent &component) |
| virtual void | paintToolbarButtonLabel (Graphics &g, int x, int y, int width, int height, const String &text, ToolbarItemComponent &component) |
| virtual void | drawPropertyPanelSectionHeader (Graphics &g, const String &name, bool isOpen, int width, int height) |
| virtual void | drawPropertyComponentBackground (Graphics &g, int width, int height, PropertyComponent &component) |
| virtual void | drawPropertyComponentLabel (Graphics &g, int width, int height, PropertyComponent &component) |
| virtual const Rectangle< int > | getPropertyComponentContentPosition (PropertyComponent &component) |
| virtual void | drawCallOutBoxBackground (CallOutBox &box, Graphics &g, const Path &path) |
| virtual void | drawLevelMeter (Graphics &g, int width, int height, float level) |
| virtual void | drawKeymapChangeButton (Graphics &g, int width, int height, Button &button, const String &keyDescription) |
| virtual void | playAlertSound () |
Static Public Member Functions | |
| static LookAndFeel & | getDefaultLookAndFeel () noexcept |
| Returns the current default look-and-feel for a component to use when it hasn't got one explicitly set. | |
| static void | setDefaultLookAndFeel (LookAndFeel *newDefaultLookAndFeel) noexcept |
| Changes the default look-and-feel. | |
| static void | drawGlassSphere (Graphics &g, float x, float y, float diameter, const Colour &colour, float outlineThickness) noexcept |
| Utility function to draw a shiny, glassy circle (for round LED-type buttons). | |
| static void | drawGlassPointer (Graphics &g, float x, float y, float diameter, const Colour &colour, float outlineThickness, int direction) noexcept |
| static void | drawGlassLozenge (Graphics &g, float x, float y, float width, float height, const Colour &colour, float outlineThickness, float cornerSize, bool flatOnLeft, bool flatOnRight, bool flatOnTop, bool flatOnBottom) noexcept |
| Utility function to draw a shiny, glassy oblong (for text buttons). | |
| static Drawable * | loadDrawableFromData (const void *data, size_t numBytes) |
LookAndFeel objects define the appearance of all the JUCE widgets, and subclasses can be used to apply different 'skins' to the application.
| LookAndFeel::LookAndFeel | ( | ) |
Creates the default JUCE look and feel.
| virtual LookAndFeel::~LookAndFeel | ( | ) | [virtual] |
Destructor.
| static LookAndFeel& LookAndFeel::getDefaultLookAndFeel | ( | ) | [static] |
Returns the current default look-and-feel for a component to use when it hasn't got one explicitly set.
| static void LookAndFeel::setDefaultLookAndFeel | ( | LookAndFeel * | newDefaultLookAndFeel ) | [static] |
Changes the default look-and-feel.
| newDefaultLookAndFeel | the 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. |
| const Colour LookAndFeel::findColour | ( | int | colourId ) | const |
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 relevent 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.
| void LookAndFeel::setColour | ( | int | colourId, |
| const Colour & | colour | ||
| ) |
Registers a colour to be used for a particular purpose.
For more details, see the comments for findColour().
| bool LookAndFeel::isColourSpecified | ( | int | colourId ) | const |
Returns true if the specified colour ID has been explicitly set using the setColour() method.
| virtual const Typeface::Ptr LookAndFeel::getTypefaceForFont | ( | const Font & | font ) | [virtual] |
| void 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 should instead override getTypefaceForFont() to create and return the typeface.
| virtual const MouseCursor LookAndFeel::getMouseCursorFor | ( | Component & | component ) | [virtual] |
Override this to get the chance to swap a component's mouse cursor for a customised one.
| virtual void LookAndFeel::drawButtonBackground | ( | Graphics & | g, |
| Button & | button, | ||
| const Colour & | backgroundColour, | ||
| bool | isMouseOverButton, | ||
| bool | isButtonDown | ||
| ) | [virtual] |
Draws the lozenge-shaped background for a standard button.
Reimplemented in OldSchoolLookAndFeel.
| virtual const Font LookAndFeel::getFontForTextButton | ( | TextButton & | button ) | [virtual] |
| virtual void LookAndFeel::drawButtonText | ( | Graphics & | g, |
| TextButton & | button, | ||
| bool | isMouseOverButton, | ||
| bool | isButtonDown | ||
| ) | [virtual] |
Draws the text for a TextButton.
| virtual void LookAndFeel::drawToggleButton | ( | Graphics & | g, |
| ToggleButton & | button, | ||
| bool | isMouseOverButton, | ||
| bool | isButtonDown | ||
| ) | [virtual] |
Draws the contents of a standard ToggleButton.
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::changeToggleButtonWidthToFitText | ( | ToggleButton & | button ) | [virtual] |
| virtual void LookAndFeel::drawTickBox | ( | Graphics & | g, |
| Component & | component, | ||
| float | x, | ||
| float | y, | ||
| float | w, | ||
| float | h, | ||
| bool | ticked, | ||
| bool | isEnabled, | ||
| bool | isMouseOverButton, | ||
| bool | isButtonDown | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual AlertWindow* LookAndFeel::createAlertWindow | ( | const String & | title, |
| const String & | message, | ||
| const String & | button1, | ||
| const String & | button2, | ||
| const String & | button3, | ||
| AlertWindow::AlertIconType | iconType, | ||
| int | numButtons, | ||
| Component * | associatedComponent | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawAlertBox | ( | Graphics & | g, |
| AlertWindow & | alert, | ||
| const Rectangle< int > & | textArea, | ||
| TextLayout & | textLayout | ||
| ) | [virtual] |
| virtual int LookAndFeel::getAlertBoxWindowFlags | ( | ) | [virtual] |
| virtual int LookAndFeel::getAlertWindowButtonHeight | ( | ) | [virtual] |
| virtual const Font LookAndFeel::getAlertWindowMessageFont | ( | ) | [virtual] |
| virtual const Font LookAndFeel::getAlertWindowFont | ( | ) | [virtual] |
| void LookAndFeel::setUsingNativeAlertWindows | ( | bool | shouldUseNativeAlerts ) |
| bool LookAndFeel::isUsingNativeAlertWindows | ( | ) |
| virtual void LookAndFeel::drawProgressBar | ( | Graphics & | g, |
| ProgressBar & | progressBar, | ||
| int | width, | ||
| int | height, | ||
| double | progress, | ||
| const String & | textToShow | ||
| ) | [virtual] |
Draws a progress bar.
If the progress value is less than 0 or greater than 1.0, this should draw a spinning bar that fills the whole space (i.e. to say that the app is still busy but the progress isn't known). It can use the current time as a basis for playing an animation.
(Used by progress bars in AlertWindow).
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::drawSpinningWaitAnimation | ( | Graphics & | g, |
| const Colour & | colour, | ||
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawScrollbarButton | ( | Graphics & | g, |
| ScrollBar & | scrollbar, | ||
| int | width, | ||
| int | height, | ||
| int | buttonDirection, | ||
| bool | isScrollbarVertical, | ||
| bool | isMouseOverButton, | ||
| bool | isButtonDown | ||
| ) | [virtual] |
Draws one of the buttons on a scrollbar.
| g | the context to draw into |
| scrollbar | the bar itself |
| width | the width of the button |
| height | the height of the button |
| buttonDirection | the direction of the button, where 0 = up, 1 = right, 2 = down, 3 = left |
| isScrollbarVertical | true if it's a vertical bar, false if horizontal |
| isMouseOverButton | whether the mouse is currently over the button (also true if it's held down) |
| isButtonDown | whether the mouse button's held down |
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::drawScrollbar | ( | Graphics & | g, |
| ScrollBar & | scrollbar, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| bool | isScrollbarVertical, | ||
| int | thumbStartPosition, | ||
| int | thumbSize, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown | ||
| ) | [virtual] |
Draws the thumb area of a scrollbar.
| g | the context to draw into |
| scrollbar | the bar itself |
| x | the x position of the left edge of the thumb area to draw in |
| y | the y position of the top edge of the thumb area to draw in |
| width | the width of the thumb area to draw in |
| height | the height of the thumb area to draw in |
| isScrollbarVertical | true if it's a vertical bar, false if horizontal |
| thumbStartPosition | for vertical bars, the y co-ordinate of the top of the thumb, or its x position for horizontal bars |
| thumbSize | for vertical bars, the height of the thumb, or its width for horizontal bars. This may be 0 if the thumb shouldn't be drawn. |
| isMouseOver | whether the mouse is over the thumb area, also true if the mouse is currently dragging the thumb |
| isMouseDown | whether the mouse is currently dragging the scrollbar |
Reimplemented in OldSchoolLookAndFeel.
| virtual ImageEffectFilter* LookAndFeel::getScrollbarEffect | ( | ) | [virtual] |
Returns the component effect to use for a scrollbar.
Reimplemented in OldSchoolLookAndFeel.
| virtual int LookAndFeel::getMinimumScrollbarThumbSize | ( | ScrollBar & | scrollbar ) | [virtual] |
Returns the minimum length in pixels to use for a scrollbar thumb.
| virtual int LookAndFeel::getDefaultScrollbarWidth | ( | ) | [virtual] |
Returns the default thickness to use for a scrollbar.
| virtual int LookAndFeel::getScrollbarButtonSize | ( | ScrollBar & | scrollbar ) | [virtual] |
Returns the length in pixels to use for a scrollbar button.
| virtual const Path LookAndFeel::getTickShape | ( | float | height ) | [virtual] |
Returns a tick shape for use in yes/no boxes, etc.
| virtual const Path LookAndFeel::getCrossShape | ( | float | height ) | [virtual] |
Returns a cross shape for use in yes/no boxes, etc.
| virtual void LookAndFeel::drawTreeviewPlusMinusBox | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| bool | isPlus, | ||
| bool | isMouseOver | ||
| ) | [virtual] |
Draws the + or - box in a treeview.
| virtual void LookAndFeel::fillTextEditorBackground | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| TextEditor & | textEditor | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTextEditorOutline | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| TextEditor & | textEditor | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual CaretComponent* LookAndFeel::createCaretComponent | ( | Component * | keyFocusOwner ) | [virtual] |
| virtual const Drawable* LookAndFeel::getDefaultFolderImage | ( | ) | [virtual] |
| virtual const Drawable* LookAndFeel::getDefaultDocumentFileImage | ( | ) | [virtual] |
| virtual void LookAndFeel::createFileChooserHeaderText | ( | const String & | title, |
| const String & | instructions, | ||
| GlyphArrangement & | destArrangement, | ||
| int | width | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawFileBrowserRow | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| const String & | filename, | ||
| Image * | icon, | ||
| const String & | fileSizeDescription, | ||
| const String & | fileTimeDescription, | ||
| bool | isDirectory, | ||
| bool | isItemSelected, | ||
| int | itemIndex, | ||
| DirectoryContentsDisplayComponent & | component | ||
| ) | [virtual] |
| virtual Button* LookAndFeel::createFileBrowserGoUpButton | ( | ) | [virtual] |
| virtual void LookAndFeel::layoutFileBrowserComponent | ( | FileBrowserComponent & | browserComp, |
| DirectoryContentsDisplayComponent * | fileListComponent, | ||
| FilePreviewComponent * | previewComp, | ||
| ComboBox * | currentPathBox, | ||
| TextEditor * | filenameBox, | ||
| Button * | goUpButton | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawBubble | ( | Graphics & | g, |
| float | tipX, | ||
| float | tipY, | ||
| float | boxX, | ||
| float | boxY, | ||
| float | boxW, | ||
| float | boxH | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawPopupMenuBackground | ( | Graphics & | g, |
| int | width, | ||
| int | height | ||
| ) | [virtual] |
Fills the background of a popup menu component.
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::drawPopupMenuItem | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| bool | isSeparator, | ||
| bool | isActive, | ||
| bool | isHighlighted, | ||
| bool | isTicked, | ||
| bool | hasSubMenu, | ||
| const String & | text, | ||
| const String & | shortcutKeyText, | ||
| Image * | image, | ||
| const Colour *const | textColour | ||
| ) | [virtual] |
Draws one of the items in a popup menu.
| virtual const Font LookAndFeel::getPopupMenuFont | ( | ) | [virtual] |
Returns the size and style of font to use in popup menus.
| virtual void LookAndFeel::drawPopupMenuUpDownArrow | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| bool | isScrollUpArrow | ||
| ) | [virtual] |
| virtual void LookAndFeel::getIdealPopupMenuItemSize | ( | const String & | text, |
| bool | isSeparator, | ||
| int | standardMenuItemHeight, | ||
| int & | idealWidth, | ||
| int & | idealHeight | ||
| ) | [virtual] |
Finds the best size for an item in a popup menu.
| virtual int LookAndFeel::getMenuWindowFlags | ( | ) | [virtual] |
| virtual void LookAndFeel::drawMenuBarBackground | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| bool | isMouseOverBar, | ||
| MenuBarComponent & | menuBar | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual int LookAndFeel::getMenuBarItemWidth | ( | MenuBarComponent & | menuBar, |
| int | itemIndex, | ||
| const String & | itemText | ||
| ) | [virtual] |
| virtual const Font LookAndFeel::getMenuBarFont | ( | MenuBarComponent & | menuBar, |
| int | itemIndex, | ||
| const String & | itemText | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawMenuBarItem | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| int | itemIndex, | ||
| const String & | itemText, | ||
| bool | isMouseOverItem, | ||
| bool | isMenuOpen, | ||
| bool | isMouseOverBar, | ||
| MenuBarComponent & | menuBar | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawComboBox | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| bool | isButtonDown, | ||
| int | buttonX, | ||
| int | buttonY, | ||
| int | buttonW, | ||
| int | buttonH, | ||
| ComboBox & | box | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::positionComboBoxText | ( | ComboBox & | box, |
| Label & | labelToPosition | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawLinearSlider | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| float | sliderPos, | ||
| float | minSliderPos, | ||
| float | maxSliderPos, | ||
| const Slider::SliderStyle | style, | ||
| Slider & | slider | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::drawLinearSliderBackground | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| float | sliderPos, | ||
| float | minSliderPos, | ||
| float | maxSliderPos, | ||
| const Slider::SliderStyle | style, | ||
| Slider & | slider | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawLinearSliderThumb | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| float | sliderPos, | ||
| float | minSliderPos, | ||
| float | maxSliderPos, | ||
| const Slider::SliderStyle | style, | ||
| Slider & | slider | ||
| ) | [virtual] |
| virtual int LookAndFeel::getSliderThumbRadius | ( | Slider & | slider ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::drawRotarySlider | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| float | sliderPosProportional, | ||
| float | rotaryStartAngle, | ||
| float | rotaryEndAngle, | ||
| Slider & | slider | ||
| ) | [virtual] |
| virtual Button* LookAndFeel::createSliderButton | ( | bool | isIncrement ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual ImageEffectFilter* LookAndFeel::getSliderEffect | ( | ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::getTooltipSize | ( | const String & | tipText, |
| int & | width, | ||
| int & | height | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTooltip | ( | Graphics & | g, |
| const String & | text, | ||
| int | width, | ||
| int | height | ||
| ) | [virtual] |
| virtual void LookAndFeel::layoutFilenameComponent | ( | FilenameComponent & | filenameComp, |
| ComboBox * | filenameBox, | ||
| Button * | browseButton | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawCornerResizer | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| bool | isMouseOver, | ||
| bool | isMouseDragging | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::drawResizableFrame | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| const BorderSize< int > & | borders | ||
| ) | [virtual] |
| virtual void LookAndFeel::fillResizableWindowBackground | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| const BorderSize< int > & | border, | ||
| ResizableWindow & | window | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawResizableWindowBorder | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| const BorderSize< int > & | border, | ||
| ResizableWindow & | window | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawDocumentWindowTitleBar | ( | DocumentWindow & | window, |
| Graphics & | g, | ||
| int | w, | ||
| int | h, | ||
| int | titleSpaceX, | ||
| int | titleSpaceW, | ||
| const Image * | icon, | ||
| bool | drawTitleTextOnLeft | ||
| ) | [virtual] |
| virtual Button* LookAndFeel::createDocumentWindowButton | ( | int | buttonType ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual void LookAndFeel::positionDocumentWindowButtons | ( | DocumentWindow & | window, |
| int | titleBarX, | ||
| int | titleBarY, | ||
| int | titleBarW, | ||
| int | titleBarH, | ||
| Button * | minimiseButton, | ||
| Button * | maximiseButton, | ||
| Button * | closeButton, | ||
| bool | positionTitleBarButtonsOnLeft | ||
| ) | [virtual] |
Reimplemented in OldSchoolLookAndFeel.
| virtual int LookAndFeel::getDefaultMenuBarHeight | ( | ) | [virtual] |
| virtual DropShadower* LookAndFeel::createDropShadowerForComponent | ( | Component * | component ) | [virtual] |
| virtual void LookAndFeel::drawStretchableLayoutResizerBar | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| bool | isVerticalBar, | ||
| bool | isMouseOver, | ||
| bool | isMouseDragging | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawGroupComponentOutline | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| const String & | text, | ||
| const Justification & | position, | ||
| GroupComponent & | group | ||
| ) | [virtual] |
| virtual void LookAndFeel::createTabButtonShape | ( | Path & | p, |
| int | width, | ||
| int | height, | ||
| int | tabIndex, | ||
| const String & | text, | ||
| Button & | button, | ||
| TabbedButtonBar::Orientation | orientation, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown, | ||
| bool | isFrontTab | ||
| ) | [virtual] |
| virtual void LookAndFeel::fillTabButtonShape | ( | Graphics & | g, |
| const Path & | path, | ||
| const Colour & | preferredBackgroundColour, | ||
| int | tabIndex, | ||
| const String & | text, | ||
| Button & | button, | ||
| TabbedButtonBar::Orientation | orientation, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown, | ||
| bool | isFrontTab | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTabButtonText | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const Colour & | preferredBackgroundColour, | ||
| int | tabIndex, | ||
| const String & | text, | ||
| Button & | button, | ||
| TabbedButtonBar::Orientation | orientation, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown, | ||
| bool | isFrontTab | ||
| ) | [virtual] |
| virtual int LookAndFeel::getTabButtonOverlap | ( | int | tabDepth ) | [virtual] |
| virtual int LookAndFeel::getTabButtonSpaceAroundImage | ( | ) | [virtual] |
| virtual int LookAndFeel::getTabButtonBestWidth | ( | int | tabIndex, |
| const String & | text, | ||
| int | tabDepth, | ||
| Button & | button | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTabButton | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| const Colour & | preferredColour, | ||
| int | tabIndex, | ||
| const String & | text, | ||
| Button & | button, | ||
| TabbedButtonBar::Orientation | orientation, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown, | ||
| bool | isFrontTab | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTabAreaBehindFrontButton | ( | Graphics & | g, |
| int | w, | ||
| int | h, | ||
| TabbedButtonBar & | tabBar, | ||
| TabbedButtonBar::Orientation | orientation | ||
| ) | [virtual] |
| virtual Button* LookAndFeel::createTabBarExtrasButton | ( | ) | [virtual] |
| virtual void LookAndFeel::drawImageButton | ( | Graphics & | g, |
| Image * | image, | ||
| int | imageX, | ||
| int | imageY, | ||
| int | imageW, | ||
| int | imageH, | ||
| const Colour & | overlayColour, | ||
| float | imageOpacity, | ||
| ImageButton & | button | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTableHeaderBackground | ( | Graphics & | g, |
| TableHeaderComponent & | header | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawTableHeaderColumn | ( | Graphics & | g, |
| const String & | columnName, | ||
| int | columnId, | ||
| int | width, | ||
| int | height, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown, | ||
| int | columnFlags | ||
| ) | [virtual] |
| virtual void LookAndFeel::paintToolbarBackground | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| Toolbar & | toolbar | ||
| ) | [virtual] |
| virtual void LookAndFeel::paintToolbarButtonBackground | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| bool | isMouseOver, | ||
| bool | isMouseDown, | ||
| ToolbarItemComponent & | component | ||
| ) | [virtual] |
| virtual void LookAndFeel::paintToolbarButtonLabel | ( | Graphics & | g, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| const String & | text, | ||
| ToolbarItemComponent & | component | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawPropertyPanelSectionHeader | ( | Graphics & | g, |
| const String & | name, | ||
| bool | isOpen, | ||
| int | width, | ||
| int | height | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawPropertyComponentBackground | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| PropertyComponent & | component | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawPropertyComponentLabel | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| PropertyComponent & | component | ||
| ) | [virtual] |
| virtual const Rectangle<int> LookAndFeel::getPropertyComponentContentPosition | ( | PropertyComponent & | component ) | [virtual] |
| virtual void LookAndFeel::drawCallOutBoxBackground | ( | CallOutBox & | box, |
| Graphics & | g, | ||
| const Path & | path | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawLevelMeter | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| float | level | ||
| ) | [virtual] |
| virtual void LookAndFeel::drawKeymapChangeButton | ( | Graphics & | g, |
| int | width, | ||
| int | height, | ||
| Button & | button, | ||
| const String & | keyDescription | ||
| ) | [virtual] |
| virtual void LookAndFeel::playAlertSound | ( | ) | [virtual] |
| static void LookAndFeel::drawGlassSphere | ( | Graphics & | g, |
| float | x, | ||
| float | y, | ||
| float | diameter, | ||
| const Colour & | colour, | ||
| float | outlineThickness | ||
| ) | [static] |
Utility function to draw a shiny, glassy circle (for round LED-type buttons).
| static void LookAndFeel::drawGlassPointer | ( | Graphics & | g, |
| float | x, | ||
| float | y, | ||
| float | diameter, | ||
| const Colour & | colour, | ||
| float | outlineThickness, | ||
| int | direction | ||
| ) | [static] |
| static void LookAndFeel::drawGlassLozenge | ( | Graphics & | g, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| const Colour & | colour, | ||
| float | outlineThickness, | ||
| float | cornerSize, | ||
| bool | flatOnLeft, | ||
| bool | flatOnRight, | ||
| bool | flatOnTop, | ||
| bool | flatOnBottom | ||
| ) | [static] |
Utility function to draw a shiny, glassy oblong (for text buttons).
| static Drawable* LookAndFeel::loadDrawableFromData | ( | const void * | data, |
| size_t | numBytes | ||
| ) | [static] |