Krotos Modules 3
Loading...
Searching...
No Matches
krotos::ContextMenuButton Class Reference

Draws a context menu button which has a kebab icon with mouse hover states. More...

#include <DrawableButtonHelpers.h>

Inheritance diagram for krotos::ContextMenuButton:
krotos::OpacityDrawableButton

Public Member Functions

 ContextMenuButton ()
 Create a context menu button. This is a kebab icon with mouse hover states for default and hover over.
 
- Public Member Functions inherited from krotos::OpacityDrawableButton
 OpacityDrawableButton (std::unique_ptr< Drawable > drawable, const String &name, DrawableButton::ButtonStyle style, float opacityNormal, float opacityHover=0.0f, float opacityDown=0.0f, Colour targetColourToChangeAlpha=Colours::white)
 Creates a DrawableButton with opacity hover states specified by the targetColourToChangeAlpha. This may not work for all drawable SVGs since it relies on changing a single colour. it's best suited for simple graphics that use a single colour. Lower overhead than creating 3 separate drawables for each state and only instantiates as many drawables as needed.
 

Static Private Member Functions

static std::unique_ptr< Drawable > createKebabIconDrawable ()
 

Detailed Description

Draws a context menu button which has a kebab icon with mouse hover states.

Constructor & Destructor Documentation

◆ ContextMenuButton()

krotos::ContextMenuButton::ContextMenuButton ( )
inline

Create a context menu button. This is a kebab icon with mouse hover states for default and hover over.

Member Function Documentation

◆ createKebabIconDrawable()

static std::unique_ptr< Drawable > krotos::ContextMenuButton::createKebabIconDrawable ( )
inlinestaticprivate

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