ChamplainPoint

ChamplainPoint — Simple point to mark a coordinate

Synopsis

struct              ChamplainPoint;
ClutterActor *      champlain_point_new                 (void);
ClutterActor *      champlain_point_new_full            (gdouble size,
                                                         const ClutterColor *color);
void                champlain_point_set_color           (ChamplainPoint *point,
                                                         const ClutterColor *color);
ClutterColor *      champlain_point_get_color           (ChamplainPoint *point);
void                champlain_point_set_size            (ChamplainPoint *point,
                                                         gdouble size);
gdouble             champlain_point_get_size            (ChamplainPoint *point);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----ChamplainMarker
                     +----ChamplainPoint

Implemented Interfaces

ChamplainPoint implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and ChamplainLocation.

Properties

  "color"                    ClutterColor*         : Read / Write
  "size"                     gdouble               : Read / Write

Description

ChamplainPoint is a simple variant of ChamplainMarker. Contrary to ChamplainLabel, it is not capable of labelling the point with text and only shows the location of the point as a circle on the map.

Details

struct ChamplainPoint

struct ChamplainPoint;

The ChamplainPoint structure contains only private data and should be accessed using the provided API

Since 0.10


champlain_point_new ()

ClutterActor *      champlain_point_new                 (void);

Creates an instance of ChamplainPoint with default size and color.

Returns :

a new ChamplainPoint.

Since 0.10


champlain_point_new_full ()

ClutterActor *      champlain_point_new_full            (gdouble size,
                                                         const ClutterColor *color);

Creates an instance of ChamplainPoint with the specified size and color.

size :

Marker size

color :

Marker color

Returns :

a new ChamplainPoint.

Since 0.10


champlain_point_set_color ()

void                champlain_point_set_color           (ChamplainPoint *point,
                                                         const ClutterColor *color);

Set the color of the point.

point :

a ChamplainPoint

color :

The color of the point or NULL to reset the background to the default color. The color parameter is copied. [allow-none]

Since 0.10


champlain_point_get_color ()

ClutterColor *      champlain_point_get_color           (ChamplainPoint *point);

Gets the color of the point.

point :

a ChamplainPoint

Returns :

the color.

Since 0.10


champlain_point_set_size ()

void                champlain_point_set_size            (ChamplainPoint *point,
                                                         gdouble size);

Set the size of the point.

point :

a ChamplainPoint

size :

The size of the point.

Since 0.10


champlain_point_get_size ()

gdouble             champlain_point_get_size            (ChamplainPoint *point);

Gets the size of the point.

point :

a ChamplainPoint

Returns :

the size.

Since 0.10

Property Details

The "color" property

  "color"                    ClutterColor*         : Read / Write

The point's color.


The "size" property

  "size"                     gdouble               : Read / Write

The point size.

Allowed values: >= 0

Default value: 12