AgsComplex

AgsComplex — Boxed type of complex

Functions

Types and Values

#define AGS_TYPE_COMPLEX
typedef AgsComplex

Object Hierarchy

    GBoxed
    ╰── AgsComplex

Includes

#include <ags/lib/ags_complex.h>

Description

Boxed type of complex data type.

Functions

ags_complex_alloc ()

AgsComplex *
ags_complex_alloc ();

Allocate AgsComplex

Returns

a new AgsComplex

Since: 1.0.0


ags_complex_copy ()

gpointer
ags_complex_copy (AgsComplex *ptr);

Create a copy of ptr .

Parameters

ptr

the original AgsComplex

 

Returns

a pointer of the new AgsComplex

Since: 1.0.0


ags_complex_free ()

void
ags_complex_free (AgsComplex *ptr);

Frees the memory of ptr .

Parameters

ptr

the AgsComplex

 

Since: 1.0.0


ags_complex_get ()

complex
ags_complex_get (AgsComplex *ptr);

Get complex number.

Parameters

ptr

the AgsComplex

 

Returns

number as complex data type

Since: 1.0.0


ags_complex_set ()

void
ags_complex_set (AgsComplex *ptr,
                 complex z);

Set complex number.

Parameters

ptr

the AgsComplex

 

z

the complex data to set

 

Since: 1.0.0


ags_complex_get_type ()

GType
ags_complex_get_type (void);

Types and Values

AGS_TYPE_COMPLEX

#define AGS_TYPE_COMPLEX                (ags_complex_get_type())

AgsComplex