gwc

SIZE

Torna a API C

C API v0.4.0 - rev1

Sorgente Ref
Intestazione SIZE.h
Implementazione SIZE.c

Sommario

Macro

Strutture

gSIZE

Rappresenta una dimensione.

typedef struct gSIZE gSIZE;


Funzioni

size_new

Sommario

Alloca una struttura di tipo gSIZE.

GWC_C_API gSIZE* size_new(int width, int height);

Parametri

Restituisce

NULL o gSIZE.


size_delete

Sommario

Dealloca una struttura di tipo gSIZE.

GWC_C_API void size_delete(gSIZE* size);

Parametri

Restituisce

void.


size_getWidth

Sommario

Ottiene la lunghezza.

GWC_C_API int size_getWidth(const gSIZE* size);

Parametri

Restituisce

int.


size_setWidth

Sommario

Imposta la lunghezza.

GWC_C_API void size_setWidth(gSIZE* size, int value);

Parametri

Restituisce

void.


size_getHeight

Sommario

Ottiene l’altezza.

GWC_C_API int size_getHeight(const gSIZE* size);

Parametri

Restituisce

int.


size_setHeight

Sommario

Imposta l’altezza.

GWC_C_API void size_setHeight(gSIZE* size, int value);

Parametri

Restituisce

void.


size_equal

Sommario

Verifica se due puntatori a gSIZE sono uguali.

Viene controllato sia l’indirizzo che i valori.

GWC_C_API bool size_equal(const gSIZE* size, const gSIZE* other);

Parametri

Restituisce

bool.


size_notequal

Sommario

Verifica se due puntatori a gSIZE non sono uguali.

Viene controllato sia l’indirizzo che i valori.

GWC_C_API bool size_notequal(const gSIZE* size, const gSIZE* other);

Parametri

Restituisce

bool.


Torna su