AgsFunction

AgsFunction — Function to translate values

Stability Level

Stable, unless otherwise indicated

Functions

Properties

char * normalized-function Read / Write
gpointer pivot-table Read / Write
char * source-function Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsFunction

Includes

#include <ags/lib/ags_function.h>

Description

The AgsFunction translates values from linear math to a given function.

Functions

AGS_FUNCTION_GET_OBJ_MUTEX()

#define AGS_FUNCTION_GET_OBJ_MUTEX(obj) (&(((AgsFunction *) obj)->obj_mutex))

ags_function_add_matrix ()

void
ags_function_add_matrix (AgsFunction *function,
                         AgsSolverMatrix *solver_matrix);

Add solver_matrix to function .

Parameters

function

the AgsFunction

 

solver_matrix

the AgsSolverMatrix

 

Since: 3.2.0


ags_function_remove_matrix ()

void
ags_function_remove_matrix (AgsFunction *function,
                            AgsSolverMatrix *solver_matrix);

Remove solver_matrix from function .

Parameters

function

the AgsFunction

 

solver_matrix

the AgsSolverMatrix

 

Since: 3.2.0


ags_function_new ()

AgsFunction *
ags_function_new (gchar *source_function);

Instantiate a new AgsFunction.

Parameters

source_function

the source function

 

Returns

the new instance

Since: 3.0.0


AGS_FUNCTION()

#define AGS_FUNCTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FUNCTION, AgsFunction))

AGS_FUNCTION_CLASS()

#define AGS_FUNCTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FUNCTION, AgsFunctionClass))

AGS_FUNCTION_GET_CLASS()

#define AGS_FUNCTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_FUNCTION, AgsFunctionClass))

AGS_IS_FUNCTION()

#define AGS_IS_FUNCTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FUNCTION))

AGS_IS_FUNCTION_CLASS()

#define AGS_IS_FUNCTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FUNCTION))

ags_function_get_type ()

GType
ags_function_get_type (void);

Types and Values

AGS_TYPE_FUNCTION

#define AGS_TYPE_FUNCTION                (ags_function_get_type())

struct AgsFunction

struct AgsFunction;

struct AgsFunctionClass

struct AgsFunctionClass {
  GObjectClass gobject;
};

Property Details

The “normalized-function” property

  “normalized-function”      char *

The normalized function.

Owner: AgsFunction

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “pivot-table” property

  “pivot-table”              gpointer

The pivot table.

Owner: AgsFunction

Flags: Read / Write

Since: 3.0.0


The “source-function” property

  “source-function”          char *

The source function.

Owner: AgsFunction

Flags: Read / Write

Default value: NULL

Since: 3.0.0