Android-cuttlefish cvd tool
|
#include <button.h>
Public Member Functions | |
Button ()=default | |
template<typename Context > | |
Button (const Context &context) | |
Error | draw (const PixelDrawer &drawPixel) |
![]() | |
LayoutElement ()=default | |
template<typename Context > | |
LayoutElement (const Context &context) | |
Error | draw (const PixelDrawer &) |
Error | hit (const Event &) |
![]() | |
ButtonImpl () | |
ButtonImpl (pxs radius, Color color, Color convexObjectColor, bool roundTopLeft, bool roundTopRight, bool roundBottomLeft, bool roundBottomRight) | |
void | setColor (Color color) |
void | setConvexObjectColor (Color color) |
Error | draw (const PixelDrawer &drawPixel, const Box< pxs > &bounds, const ConvexObjectInfo *coBegin, const ConvexObjectInfo *coEnd) |
Static Public Attributes | |
static const constexpr bool | button_round_top_left = false |
static const constexpr bool | button_round_top_right = false |
static const constexpr bool | button_round_bottom_left = false |
static const constexpr bool | button_round_bottom_right = false |
static const constexpr std::tuple | button_drawable_objects = {} |
static const constexpr Color | button_drawable_object_color = 0xff000000 |
Private Attributes | |
ConvexObject< convexObjectCapacity::value > | convex_objects_ [convexElemCount::value] |
Additional Inherited Members | |
![]() | |
Box< pxs > | bounds_ |
Button is a LayoutElement and should be used as second argument in the BEGIN_ELEMENT() macro. The template argument Derived is the new class derived from Button, that is created by the BEGIN_ELEMENT() macro. The arguments convexElemCount and convexObjectCapacity denote the number of convex objects and the capacity (maximum number of vertexes) each of the objects should have. This is used to reserve enough space at compile time.
|
default |
|
inlineexplicit |
|
inline |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
private |