CrRotator

CrRotator — A object for setting up mouse rotation on a CrCanvas widget.

Synopsis

                    CrRotator;
CrRotator*          cr_rotator_new                      (CrCanvas *canvas,
                                                         const gchar *first_arg_name,
                                                         ...);
void                cr_rotator_activate                 (CrRotator *panner);
void                cr_rotator_deactivate               (CrRotator *rotator);

Object Hierarchy

  GObject
   +----CrRotator

Properties

  "active"                   gboolean              : Read / Write
  "canvas"                   CrCanvas*             : Read / Write
  "cursor"                   gint                  : Read / Write

Description

Details

CrRotator

typedef struct _CrRotator CrRotator;


cr_rotator_new ()

CrRotator*          cr_rotator_new                      (CrCanvas *canvas,
                                                         const gchar *first_arg_name,
                                                         ...);

A factory method to create a new CrRotator and connect it to a canvas in one step.

canvas :

The canvas device that this panner will be used with.

first_arg_name :

A list of object argument name/value pairs, NULL-terminated, used to configure the item.

... :

Returns :

The newly created CrRotator object. Unlike with the constructors for CrItem implementations, you own the returned reference. You should call g_object_unref when you are finished with this object.

cr_rotator_activate ()

void                cr_rotator_activate                 (CrRotator *panner);

panner :


cr_rotator_deactivate ()

void                cr_rotator_deactivate               (CrRotator *rotator);

rotator :

Property Details

The "active" property

  "active"                   gboolean              : Read / Write

Active/Deactivate the rotator object or check the activation status.

Default value: FALSE


The "canvas" property

  "canvas"                   CrCanvas*             : Read / Write

Reference to CrCanvas widget.


The "cursor" property

  "cursor"                   gint                  : Read / Write

GDK Cursor to use when rotator is selected.

Allowed values: [0,153]

Default value: 50