Inherited by OldSchoolLookAndFeel.
Public Member Functions | |
| LookAndFeel () | |
| Creates the default JUCE look and feel. | |
| virtual | ~LookAndFeel () |
| Destructor. | |
| const Colour | findColour (const int colourId) const throw () |
| Looks for a colour that has been registered with the given colour ID number. | |
| void | setColour (const int colourId, const Colour &colour) throw () |
| Registers a colour to be used for a particular purpose. | |
| bool | isColourSpecified (const int colourId) const throw () |
| 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 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, int x, int y, int w, int h, const bool ticked, const bool isEnabled, const bool isMouseOverButton, const 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 &textArea, TextLayout &textLayout) |
| virtual int | getAlertBoxWindowFlags () |
| virtual int | getAlertWindowButtonHeight () |
| virtual const Font | getAlertWindowFont () |
| 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 (const float height) |
| Returns a tick shape for use in yes/no boxes, etc. | |
| virtual const Path | getCrossShape (const 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 Image * | getDefaultFolderImage () |
| virtual Image * | 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, const bool isDirectory, const bool isItemSelected, const int itemIndex) |
| 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, const bool isSeparator, const bool isActive, const bool isHighlighted, const bool isTicked, const 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, const 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, const 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, const float rotaryStartAngle, const float rotaryEndAngle, Slider &slider) |
| virtual Button * | createSliderButton (const 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 &borders) |
| virtual void | fillResizableWindowBackground (Graphics &g, int w, int h, const BorderSize &border, ResizableWindow &window) |
| virtual void | drawResizableWindowBorder (Graphics &g, int w, int h, const BorderSize &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, const bool isMouseOver, const bool isMouseDown, const bool isFrontTab) |
| virtual void | fillTabButtonShape (Graphics &g, const Path &path, const Colour &preferredBackgroundColour, int tabIndex, const String &text, Button &button, TabbedButtonBar::Orientation orientation, const bool isMouseOver, const bool isMouseDown, const 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, const bool isMouseOver, const bool isMouseDown, const 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, const bool isMouseOver, const bool isMouseDown, const 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 | getPropertyComponentContentPosition (PropertyComponent &component) |
| virtual void | drawLevelMeter (Graphics &g, int width, int height, float level) |
| virtual void | playAlertSound () |
Static Public Member Functions | |
| static LookAndFeel & | getDefaultLookAndFeel () throw () |
| 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) throw () |
| Changes the default look-and-feel. | |
| static void | drawGlassSphere (Graphics &g, const float x, const float y, const float diameter, const Colour &colour, const float outlineThickness) throw () |
| Utility function to draw a shiny, glassy circle (for round LED-type buttons). | |
| static void | drawGlassPointer (Graphics &g, const float x, const float y, const float diameter, const Colour &colour, const float outlineThickness, const int direction) throw () |
| static void | drawGlassLozenge (Graphics &g, const float x, const float y, const float width, const float height, const Colour &colour, const float outlineThickness, const float cornerSize, const bool flatOnLeft, const bool flatOnRight, const bool flatOnTop, const bool flatOnBottom) throw () |
| Utility function to draw a shiny, glassy oblong (for text buttons). | |
Protected Member Functions | |
| virtual int | drawTickBox (Graphics &, int, int, int, int, bool, const bool, const bool, const bool) |
| virtual int | drawProgressBar (Graphics &, int, int, int, int, float) |
| virtual int | drawProgressBar (Graphics &, ProgressBar &, int, int, int, int, float) |
| virtual void | getTabButtonBestWidth (int, const String &, int) |
| virtual int | drawTreeviewPlusMinusBox (Graphics &, int, int, int, int, bool) |
Friends | |
| void JUCE_PUBLIC_FUNCTION | shutdownJuce_GUI () |
| Clears up any static data being used by Juce's GUI classes. | |
| LookAndFeel::LookAndFeel | ( | ) |
Creates the default JUCE look and feel.
| virtual LookAndFeel::~LookAndFeel | ( | ) | [virtual] |
Destructor.
| static LookAndFeel& LookAndFeel::getDefaultLookAndFeel | ( | ) | throw () [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 | ) | throw () [static] |
Changes the default look-and-feel.
| newDefaultLookAndFeel | the new look-and-feel object to use - if this is set to 0, 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 | ( | const int | colourId | ) | const throw () |
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 | ( | const int | colourId, | |
| const Colour & | colour | |||
| ) | throw () |
Registers a colour to be used for a particular purpose.
For more details, see the comments for findColour().
| bool LookAndFeel::isColourSpecified | ( | const int | colourId | ) | const throw () |
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 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] |
| virtual void LookAndFeel::changeToggleButtonWidthToFitText | ( | ToggleButton & | button | ) | [virtual] |
| virtual void LookAndFeel::drawTickBox | ( | Graphics & | g, | |
| Component & | component, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const bool | ticked, | |||
| const bool | isEnabled, | |||
| const bool | isMouseOverButton, | |||
| const 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 & | textArea, | |||
| TextLayout & | textLayout | |||
| ) | [virtual] |
| virtual int LookAndFeel::getAlertBoxWindowFlags | ( | ) | [virtual] |
| virtual int LookAndFeel::getAlertWindowButtonHeight | ( | ) | [virtual] |
| virtual const Font LookAndFeel::getAlertWindowFont | ( | ) | [virtual] |
| 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] |
| 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 | ( | const float | height | ) | [virtual] |
Returns a tick shape for use in yes/no boxes, etc.
| virtual const Path LookAndFeel::getCrossShape | ( | const 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 Image* LookAndFeel::getDefaultFolderImage | ( | ) | [virtual] |
| virtual Image* 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, | |||
| const bool | isDirectory, | |||
| const bool | isItemSelected, | |||
| const int | itemIndex | |||
| ) | [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] |
| virtual void LookAndFeel::drawPopupMenuItem | ( | Graphics & | g, | |
| int | width, | |||
| int | height, | |||
| const bool | isSeparator, | |||
| const bool | isActive, | |||
| const bool | isHighlighted, | |||
| const bool | isTicked, | |||
| const 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, | |
| const 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, | |||
| const 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, | |||
| const float | rotaryStartAngle, | |||
| const float | rotaryEndAngle, | |||
| Slider & | slider | |||
| ) | [virtual] |
| virtual Button* LookAndFeel::createSliderButton | ( | const 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 & | borders | |||
| ) | [virtual] |
| virtual void LookAndFeel::fillResizableWindowBackground | ( | Graphics & | g, | |
| int | w, | |||
| int | h, | |||
| const BorderSize & | border, | |||
| ResizableWindow & | window | |||
| ) | [virtual] |
| virtual void LookAndFeel::drawResizableWindowBorder | ( | Graphics & | g, | |
| int | w, | |||
| int | h, | |||
| const BorderSize & | 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, | |||
| const bool | isMouseOver, | |||
| const bool | isMouseDown, | |||
| const 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, | |||
| const bool | isMouseOver, | |||
| const bool | isMouseDown, | |||
| const 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, | |||
| const bool | isMouseOver, | |||
| const bool | isMouseDown, | |||
| const 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, | |||
| const bool | isMouseOver, | |||
| const bool | isMouseDown, | |||
| const 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 LookAndFeel::getPropertyComponentContentPosition | ( | PropertyComponent & | component | ) | [virtual] |
| virtual void LookAndFeel::drawLevelMeter | ( | Graphics & | g, | |
| int | width, | |||
| int | height, | |||
| float | level | |||
| ) | [virtual] |
| virtual void LookAndFeel::playAlertSound | ( | ) | [virtual] |
| static void LookAndFeel::drawGlassSphere | ( | Graphics & | g, | |
| const float | x, | |||
| const float | y, | |||
| const float | diameter, | |||
| const Colour & | colour, | |||
| const float | outlineThickness | |||
| ) | throw () [static] |
Utility function to draw a shiny, glassy circle (for round LED-type buttons).
| static void LookAndFeel::drawGlassPointer | ( | Graphics & | g, | |
| const float | x, | |||
| const float | y, | |||
| const float | diameter, | |||
| const Colour & | colour, | |||
| const float | outlineThickness, | |||
| const int | direction | |||
| ) | throw () [static] |
| static void LookAndFeel::drawGlassLozenge | ( | Graphics & | g, | |
| const float | x, | |||
| const float | y, | |||
| const float | width, | |||
| const float | height, | |||
| const Colour & | colour, | |||
| const float | outlineThickness, | |||
| const float | cornerSize, | |||
| const bool | flatOnLeft, | |||
| const bool | flatOnRight, | |||
| const bool | flatOnTop, | |||
| const bool | flatOnBottom | |||
| ) | throw () [static] |
Utility function to draw a shiny, glassy oblong (for text buttons).
| virtual int LookAndFeel::drawTickBox | ( | Graphics & | , | |
| int | , | |||
| int | , | |||
| int | , | |||
| int | , | |||
| bool | , | |||
| const | bool, | |||
| const | bool, | |||
| const | bool | |||
| ) | [protected, virtual] |
| virtual int LookAndFeel::drawProgressBar | ( | Graphics & | , | |
| int | , | |||
| int | , | |||
| int | , | |||
| int | , | |||
| float | ||||
| ) | [protected, virtual] |
| virtual int LookAndFeel::drawProgressBar | ( | Graphics & | , | |
| ProgressBar & | , | |||
| int | , | |||
| int | , | |||
| int | , | |||
| int | , | |||
| float | ||||
| ) | [protected, virtual] |
| virtual void LookAndFeel::getTabButtonBestWidth | ( | int | , | |
| const String & | , | |||
| int | ||||
| ) | [protected, virtual] |
| virtual int LookAndFeel::drawTreeviewPlusMinusBox | ( | Graphics & | , | |
| int | , | |||
| int | , | |||
| int | , | |||
| int | , | |||
| bool | ||||
| ) | [protected, virtual] |
| void JUCE_PUBLIC_FUNCTION shutdownJuce_GUI | ( | ) | [friend] |
Clears up any static data being used by Juce's GUI classes.
If you're embedding Juce into an application that uses its own event-loop rather than using the START_JUCE_APPLICATION macro, call this function in your shutdown code to clean up any juce objects that might be lying around.
1.5.9