class::draw::Rectangle

class draw::Rectangle
  : public draw::Drawing

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

The following code snippet will draw a rectangle using color 1 in the middle of the bitmap specified by attributes.

#include <sapi/draw.hpp>
DrawingAttributes attributes;

//construct attributes

Rectangle().set_color(1).draw(attributes + DrawingPoint(250,250) + DrawingArea(500,500));

Summary

Rectangle()

virtual void draw_to_scale(

const DrawingScaledAttributes & attr
)

Rectangle & set_color(

sg_color_t value
)

Members

Rectangle()

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

Rectangle & set_color(

sg_color_t value
)


X

Thanks for Coming!

Subscribe to news and updates