![]() |
![]() |
![]() |
adg-1 reference manual |
![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
AdgMatrixAdgMatrix — A wrapper for cairo_matrix_t |
typedef AdgMatrix;void adg_matrix_copy (AdgMatrix *matrix
,const AdgMatrix *src
);void adg_matrix_dump (const AdgMatrix *matrix
); AdgMatrix * adg_matrix_dup (const AdgMatrix *matrix
);gboolean adg_matrix_equal (const AdgMatrix *matrix1
,const AdgMatrix *matrix2
); const AdgMatrix * adg_matrix_identity (void
); AdgMatrix * adg_matrix_new (void
);gboolean adg_matrix_normalize (AdgMatrix *matrix
); const AdgMatrix * adg_matrix_null (void
);void adg_matrix_transform (AdgMatrix *matrix
,const AdgMatrix *transformation
,AdgTransformMode mode
);
typedef cairo_matrix_t AdgMatrix;
Another name for
Since 1.0
void adg_matrix_copy (AdgMatrix *matrix
,const AdgMatrix *src
);
Copies src
to matrix
.
Since 1.0
void adg_matrix_dump (const AdgMatrix *matrix
);
Dumps the specified matrix
to stdout. Useful for debugging purposes.
|
an AdgMatrix |
Since 1.0
AdgMatrix * adg_matrix_dup (const AdgMatrix *matrix
);
Duplicates matrix
.
|
the souce AdgMatrix |
Returns : |
a duplicate of matrix that must be freed with g_free() |
Since 1.0
gboolean adg_matrix_equal (const AdgMatrix *matrix1
,const AdgMatrix *matrix2
);
Compares matrix1
and matrix2
and returns TRUE
|
the first operand |
|
the second operand |
Returns : |
TRUE matrix1 is equal to matrix2 , FALSE |
Since 1.0
const AdgMatrix * adg_matrix_identity (void
);
A convenient constant providing an identity matrix.
Returns : |
a pointer to the identity matrix. [transfer none] |
Since 1.0
AdgMatrix * adg_matrix_new (void
);
Creates a new empty AdgMatrix. The returned pointer
should be freed with g_free()
Returns : |
a newly created AdgMatrix |
Since 1.0
gboolean adg_matrix_normalize (AdgMatrix *matrix
);
Gets rid of the scaling component of a matrix.
Since 1.0
const AdgMatrix * adg_matrix_null (void
);
A convenient constant providing an null matrix, that is a matrix where all components are 0.
Returns : |
a pointer to the null matrix. [transfer none] |
Since 1.0
void adg_matrix_transform (AdgMatrix *matrix
,const AdgMatrix *transformation
,AdgTransformMode mode
);
Modifies matrix
applying transformation
in the way specified by
mode
.
|
the source/destination AdgMatrix. [inout] |
|
the transformation to apply |
|
how transformation should be applied. [in] |
Since 1.0