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

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::Button::LookAndFeelMethods Struct Referenceabstract

This abstract base class is implemented by LookAndFeel classes to provide button-drawing functionality. More...

#include "juce_Button.h"

Inheritance diagram for juce::Button::LookAndFeelMethods:
juce::LookAndFeel juce::LookAndFeel_V2 juce::LookAndFeel_V1 juce::LookAndFeel_V3 juce::LookAndFeel_V4

Public Member Functions

virtual void drawButtonBackground (Graphics &, Button &, const Colour &backgroundColour, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 
virtual Font getTextButtonFont (TextButton &, int buttonHeight)=0
 
virtual int getTextButtonWidthToFitText (TextButton &, int buttonHeight)=0
 
virtual void drawButtonText (Graphics &, TextButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 Draws the text for a TextButton.
 
virtual void drawToggleButton (Graphics &, ToggleButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 Draws the contents of a standard ToggleButton.
 
virtual void changeToggleButtonWidthToFitText (ToggleButton &)=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 drawDrawableButton (Graphics &, DrawableButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=0
 

Detailed Description

This abstract base class is implemented by LookAndFeel classes to provide button-drawing functionality.

Definition at line 391 of file juce_Button.h.

Member Function Documentation

◆ drawButtonText()

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

Draws the text for a TextButton.

Implemented in juce::LookAndFeel_V2.

◆ drawToggleButton()

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

Draws the contents of a standard ToggleButton.

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


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