|
Krotos Modules 3
|
A component with images, a header and a description used for info popup messages. More...
#include <ImagePopup.h>
Classes | |
| struct | LookAndFeelMethods |
Public Types | |
| enum | ColourIds { headerTextColourId = 0x1004280 , descriptionTextColourId = 0x1004281 , outlineColourId = 0x1001820 } |
Public Member Functions | |
| ImagePopup (const String &headerText, const int &numOfHeaderLines, const String &descriptionText, Image *primaryImage, const String &buttonText, Justification justification=Justification::centredLeft, float headerFontSize=18.6f, float descriptionFontSize=15.2f) | |
| ~ImagePopup () | |
| void | resized () override |
| void | paint (Graphics &g) override |
| ImageComponent & | getPrimaryImage () |
| Label & | getHeaderLabel () |
| Label & | getDescriptionLabel () |
| Button & | getButton () |
| void | setHeaderText (const String &text) |
| void | setDescriptionText (const String &text) |
| void | setLayout (float imageSize, int headerMargin, Rectangle< int > headerSize, Rectangle< int > descriptionSize, Rectangle< int > buttonBounds) |
Private Attributes | |
| float | m_headerFontSize |
| float | m_descriptionFontSize |
| const int | m_numberOfHeaderLines {1} |
| float | m_primaryImagePropotion {0.575f} |
| int | m_headerDescriptionMargin {12} |
| Rectangle< int > | m_headerSize {18, 16, 16, 38} |
| Rectangle< int > | m_descriptionMargins {18, 66, 18, 45} |
| Rectangle< int > | m_buttonBounds {12, 12, 72, 22} |
| ImageComponent | m_image |
| Label | m_header |
| Label | m_description |
| TextButton | m_button |
| std::unique_ptr< DrawableButton > | m_closePopupButton |
| std::unique_ptr< Drawable > | m_closeBtnDrawableDefault |
| std::unique_ptr< Drawable > | m_closeBtnDrawableHover |
| std::unique_ptr< Drawable > | m_closeBtnDrawableSelected |
| Justification | m_justification {Justification::centredLeft} |
| Rectangle< int > | m_imageBounds |
| Krotos_LookAndFeel::LinkButtonLAF | m_buttonLAF |
A component with images, a header and a description used for info popup messages.
A set of colour IDs to use to change the colour of various aspects of the ImagePopup.
These constants can be used either via the Component::setColour(), or LookAndFeel::setColour() methods.
Note that you can also use the constants from TextEditor::ColourIds to change the colour of the text editor that is opened when a label is editable.
| krotos::ImagePopup::ImagePopup | ( | const String & | headerText, |
| const int & | numOfHeaderLines, | ||
| const String & | descriptionText, | ||
| Image * | primaryImage, | ||
| const String & | buttonText, | ||
| Justification | justification = Justification::centredLeft, | ||
| float | headerFontSize = 18.6f, | ||
| float | descriptionFontSize = 15.2f ) |
| krotos::ImagePopup::~ImagePopup | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
override |
|
override |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |