Android-cuttlefish cvd tool
Classes | Public Member Functions | Private Attributes | List of all members
teeui::ButtonImpl Class Reference

#include <button.h>

Inheritance diagram for teeui::ButtonImpl:
Inheritance graph
[legend]
Collaboration diagram for teeui::ButtonImpl:
Collaboration graph
[legend]

Classes

struct  ConvexObjectInfo
 

Public Member Functions

 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)
 

Private Attributes

pxs radius_
 
Color color_
 
Color convexObjectColor_
 
bool roundTopLeft_
 
bool roundTopRight_
 
bool roundBottomLeft_
 
bool roundBottomRight_
 

Constructor & Destructor Documentation

◆ ButtonImpl() [1/2]

teeui::ButtonImpl::ButtonImpl ( )
inline

◆ ButtonImpl() [2/2]

teeui::ButtonImpl::ButtonImpl ( pxs  radius,
Color  color,
Color  convexObjectColor,
bool  roundTopLeft,
bool  roundTopRight,
bool  roundBottomLeft,
bool  roundBottomRight 
)
inline

Member Function Documentation

◆ draw()

Error teeui::ButtonImpl::draw ( const PixelDrawer drawPixel,
const Box< pxs > &  bounds,
const ConvexObjectInfo coBegin,
const ConvexObjectInfo coEnd 
)

◆ setColor()

void teeui::ButtonImpl::setColor ( Color  color)
inline

◆ setConvexObjectColor()

void teeui::ButtonImpl::setConvexObjectColor ( Color  color)
inline

Member Data Documentation

◆ color_

Color teeui::ButtonImpl::color_
private

◆ convexObjectColor_

Color teeui::ButtonImpl::convexObjectColor_
private

◆ radius_

pxs teeui::ButtonImpl::radius_
private

◆ roundBottomLeft_

bool teeui::ButtonImpl::roundBottomLeft_
private

◆ roundBottomRight_

bool teeui::ButtonImpl::roundBottomRight_
private

◆ roundTopLeft_

bool teeui::ButtonImpl::roundTopLeft_
private

◆ roundTopRight_

bool teeui::ButtonImpl::roundTopRight_
private

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