JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
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:

Public Member Functions

virtual ~LookAndFeelMethods ()=default
 
virtual void changeToggleButtonWidthToFitText (ToggleButton &)=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 drawDrawableButton (Graphics &, DrawableButton &, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)=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 Font getTextButtonFont (TextButton &, int buttonHeight)=0
 
virtual int getTextButtonWidthToFitText (TextButton &, int buttonHeight)=0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~LookAndFeelMethods()

virtual juce::Button::LookAndFeelMethods::~LookAndFeelMethods ( )
virtualdefault

Member Function Documentation

◆ changeToggleButtonWidthToFitText()

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

◆ drawButtonBackground()

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

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

◆ drawDrawableButton()

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

Implemented in juce::LookAndFeel_V2.

◆ 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 virtual

◆ 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_V4, juce::LookAndFeel_V2, and juce::LookAndFeel_V1.

◆ getTextButtonFont()

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

◆ getTextButtonWidthToFitText()

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

Implemented in juce::LookAndFeel_V2.


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