|
Gin
|
Button that displays an SVG graphic instead of or alongside text. More...
#include <gin_svgbutton.h>
Public Member Functions | |
| SVGButton (const juce::String &name, const juce::String &rawSVG_, int inset_=0) | |
Public Attributes | |
| juce::String | rawSVG |
| int | inset = 0 |
Button that displays an SVG graphic instead of or alongside text.
SVGButton extends TextButton to support rendering SVG graphics. The SVG is stored as raw XML text and can be drawn by a custom LookAndFeel. The button provides an inset parameter to control padding around the SVG.
Note: The actual SVG rendering must be implemented in your LookAndFeel's drawButtonBackground() or drawButtonText() methods. This class only stores the SVG data and inset value.
Usage:
| juce::String SVGButton::rawSVG |
| int SVGButton::inset = 0 |