All Classes |Grouped Classes |Index

Class CL_RoundedRect

Rounded rects drawing class. More...

Derived from:

None

Derived by:

None

Group:

2D (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_RoundedRect

Constructs a RoundedRect.


Attributes:

get_size

Returns the base rectangle.

get_width

Returns the width of the rectangle.

get_height

Returns the height of the rectangle.

get_rounding

Returns the distance from a corner (in pixels) at which the rounding starts.

get_control_point_tl

Returns the positions of the top-left corners conic bezier control point.

get_control_point_tr

Returns the positions of the top-right corners conic bezier control point.

get_control_point_bl

Returns the positions of the bottom-left corners conic bezier control point.

get_control_point_br

Returns the positions of the bottom-right corners conic bezier control point.

get_rounding_top_left

Returns the relative offset (0.0-1.0) to the center of the edges connected to the corner.

get_rounding_top_right

Returns the relative offset (0.0-1.0) to the center of the edges connected to the corner.

get_rounding_bottom_left

Returns the relative offset (0.0-1.0) to the center of the edges connected to the corner.

get_rounding_bottom_right

Returns the relative offset (0.0-1.0) to the center of the edges connected to the corner.


Operations:

draw

Draw the rectangle outline.

fill

Fill the rectangle.

set_size

Set the size of the base rectangle.

set_control_point_tl

Set the position of the top-left corners conic bezier control point.

set_control_point_tr

Set the positions of the top-right corners conic bezier control point.

set_control_point_bl

Set the positions of the bottom-left corners conic bezier control point.

set_control_point_br

Set the positions of the bottom-right corners conic bezier control point.

set_rounding

Set the distance from a corner (in pixels) at which the rounding starts.

set_rounding_top_left

Set the relative offset (0.0-1.0) to the center of the edges connected to the corner.

set_rounding_top_right

Set the relative offset (0.0-1.0) to the center of the edges connected to the corner.

set_rounding_bottom_left

Set the relative offset (0.0-1.0) to the center of the edges connected to the corner.

set_rounding_bottom_right

Set the relative offset (0.0-1.0) to the center of the edges connected to the corner.