ChamplainLicense

ChamplainLicense — An actor that displays license text.

Synopsis

struct              ChamplainLicense;
ClutterActor *      champlain_license_new               (void);
void                champlain_license_set_extra_text    (ChamplainLicense *license,
                                                         const gchar *text);
const gchar *       champlain_license_get_extra_text    (ChamplainLicense *license);
void                champlain_license_connect_view      (ChamplainLicense *license,
                                                         ChamplainView *view);
void                champlain_license_disconnect_view   (ChamplainLicense *license);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----ChamplainLicense

Implemented Interfaces

ChamplainLicense implements ClutterScriptable, ClutterAnimatable and AtkImplementorIface.

Properties

  "extra-text"               gchar*                : Read / Write

Description

An actor that displays license text.

Details

struct ChamplainLicense

struct ChamplainLicense;


champlain_license_new ()

ClutterActor *      champlain_license_new               (void);

Creates an instance of ChamplainLicense.

Returns :

a new ChamplainLicense.

Since 0.10


champlain_license_set_extra_text ()

void                champlain_license_set_extra_text    (ChamplainLicense *license,
                                                         const gchar *text);

Show the additional license text on the map view. The text will preceed the map's licence when displayed. Use "\n" to separate the lines.

license :

a ChamplainLicense

text :

a license

Since 0.10


champlain_license_get_extra_text ()

const gchar *       champlain_license_get_extra_text    (ChamplainLicense *license);

Gets the additional license text.

license :

a ChamplainLicense

Returns :

the additional license text

Since 0.10


champlain_license_connect_view ()

void                champlain_license_connect_view      (ChamplainLicense *license,
                                                         ChamplainView *view);

This method connects to the necessary signals of ChamplainView to make the license change automatically when the map source changes.

license :

The license

view :

a ChamplainView

Since 0.10


champlain_license_disconnect_view ()

void                champlain_license_disconnect_view   (ChamplainLicense *license);

This method disconnects from the signals previously connected by champlain_license_connect_view().

license :

The license

Since 0.10

Property Details

The "extra-text" property

  "extra-text"               gchar*                : Read / Write

Sets additional text to be displayed in the license area. The map's license will be added below it. Your text can have multiple lines, just use "\n" in between.

Default value: ""

Since 0.10