class::draw::RoundedRectangle

class draw::RoundedRectangle
  : public draw::Drawing

The Rect class draws a rectangle on the display. It can be used for both horizontal and vertical separators as well.

Summary

RoundedRectangle()

virtual void draw_to_scale(

const DrawingScaledAttributes & attr
)

RoundedRectangle & set_color(

sg_color_t value
)

RoundedRectangle & set_corners(

u8 corners
)

RoundedRectangle & set_radius(

sg_size_t radius
)

enum corners

Members

RoundedRectangle()

virtual void draw_to_scale(

const DrawingScaledAttributes & attr
)

This methods draws the drawing on the specified attributes.

Parameters

  • attr Specifies the bitmap, point and area to draw the drawing

RoundedRectangle & set_color(

sg_color_t value
)


RoundedRectangle & set_corners(

u8 corners
)


RoundedRectangle & set_radius(

sg_size_t radius
)


enum corners
  • TOP_LEFT_ROUNDED
  • TOP_LEFT_SQUARE
  • TOP_RIGHT_ROUNDED
  • TOP_RIGHT_SQUARE
  • BOTTOM_LEFT_ROUNDED
  • BOTTOM_LEFT_SQUARE
  • BOTTOM_RIGHT_ROUNDED
  • BOTTOM_RIGHT_SQUARE

X

Thanks for Coming!

Subscribe to news and updates