CrEllipse

CrEllipse — A simple ellipse canvas item.

Synopsis

                    CrEllipse;
CrItem*             cr_ellipse_new                      (CrItem *parent,
                                                         double x,
                                                         double y,
                                                         double width,
                                                         double height,
                                                         double orientation,
                                                         const gchar *first_arg_name,
                                                         ...);

Object Hierarchy

  GObject
   +----CrItem
         +----CrPath
               +----CrEllipse

Properties

  "height"                   gdouble               : Read / Write
  "orientation"              gdouble               : Read / Write
  "width"                    gdouble               : Read / Write

Description

The ellipse is defined by its center point "x", "y", its "width" half to either side of x, its "height" half to either side of y, and its "orientation" measure clockwise from the positive X axis.

Details

CrEllipse

typedef struct _CrEllipse CrEllipse;


cr_ellipse_new ()

CrItem*             cr_ellipse_new                      (CrItem *parent,
                                                         double x,
                                                         double y,
                                                         double width,
                                                         double height,
                                                         double orientation,
                                                         const gchar *first_arg_name,
                                                         ...);

A convenience constructor for creating an ellipse and adding it to an item group in one step.

parent :

The parent canvas item.

x :

Center point

y :

Center point

width :

Width in item units.

height :

Height in item units.

orientation :

Angle of ellipse in degrees counter-clockwise from the positive X axis.

first_arg_name :

... :

Returns :

A reference to a new CrItem. You must call g_object_ref if you intend to use this reference outside the local scope.

Property Details

The "height" property

  "height"                   gdouble               : Read / Write

Ellipse height axis length in item units. Note this is half above #CrItem:y and half below #CrItem:y.

Default value: 0


The "orientation" property

  "orientation"              gdouble               : Read / Write

Ellipse orientation angle in radians CW from the positive X axis.

Default value: 0


The "width" property

  "width"                    gdouble               : Read / Write

Ellipse width axis length in item units. Note this is half to the left of #CrItem:x and half to the right of #CrItem:x.

Default value: 0