class::draw::DrawingScaledAttributes

class draw::DrawingScaledAttributes
  : public api::DrawInfoObject

This is similar to draw::DrawingAttributes but the point and area have been scaled to fit in the target bitmap.

Members

DrawingScaledAttributes()
DrawingScaledAttributes(

const DrawingAttributes & attr
)

sgfx::Area area() const
drawing_scaled_attr_t & attr()
sgfx::Bitmap & bitmap() const
sg_size_t calc_height(

drawing_size_t v
) const

sg_size_t calc_width(

drawing_size_t v
) const

sg_size_t height() const
operator drawing_scaled_attr_t()
DrawingScaledAttributes operator+(

sg_point_t d
) const

DrawingScaledAttributes operator+(

sg_area_t d
) const

sgfx::Point point() const
sgfx::Region region() const
void set(

sgfx::Bitmap & b,
sg_point_t p,
sg_area_t d
)

void set_area(

sg_area_t d
)

void set_area(

sg_size_t w,
sg_size_t h
)

void set_bitmap(

sgfx::Bitmap & b
)

void set_height(

sg_size_t h
)

void set_point(

sg_point_t p
)

void set_width(

sg_size_t w
)

void set_x(

sg_int_t x
)

void set_y(

sg_int_t y
)

sg_size_t width() const
sg_int_t x() const
sg_int_t y() const

Details

DrawingScaledAttributes()

DrawingScaledAttributes(

const DrawingAttributes & attr
)


sgfx::Area area() const

drawing_scaled_attr_t & attr()

sgfx::Bitmap & bitmap() const

sg_size_t calc_height(

drawing_size_t v
) const


sg_size_t calc_width(

drawing_size_t v
) const

Calculate a width value

Parameters

  • v Unscaled drawing dimensions

Returns


sg_size_t height() const

Return the height


operator drawing_scaled_attr_t()

DrawingScaledAttributes operator+(

sg_point_t d
) const

Add an sg_point_t


DrawingScaledAttributes operator+(

sg_area_t d
) const

Add an sg_area_t


sgfx::Point point() const

sgfx::Region region() const

void set(

sgfx::Bitmap & b,
sg_point_t p,
sg_area_t d
)


void set_area(

sg_area_t d
)

Assigns area.


void set_area(

sg_size_t w,
sg_size_t h
)

Assign dimensions using width and height parameters.


void set_bitmap(

sgfx::Bitmap & b
)

Assign a value to the bitmap pointer using a reference.


void set_height(

sg_size_t h
)

Sets the height of the object


void set_point(

sg_point_t p
)

Assign the position


void set_width(

sg_size_t w
)

Sets the width of the object.


void set_x(

sg_int_t x
)

Sets the x value of the object.


void set_y(

sg_int_t y
)

Sets the y value of the object.


sg_size_t width() const

Return the width


sg_int_t x() const

Return the x value


sg_int_t y() const

Return the y value


X

Thanks for Coming!

Subscribe to news and updates