Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
graphene-size.h File Reference
#include "graphene-types.h"

Go to the source code of this file.

Data Structures

struct  _graphene_size_t
 

Macros

#define GRAPHENE_SIZE_INIT(_w, _h)   (graphene_size_t) { .width = (_w), .height = (_h) }
 
#define GRAPHENE_SIZE_INIT_ZERO   GRAPHENE_SIZE_INIT (0.f, 0.f)
 

Functions

GRAPHENE_AVAILABLE_IN_1_0 graphene_size_tgraphene_size_alloc (void)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_size_free (graphene_size_t *s)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_size_tgraphene_size_init (graphene_size_t *s, float width, float height)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_size_tgraphene_size_init_from_size (graphene_size_t *s, const graphene_size_t *src)
 
GRAPHENE_AVAILABLE_IN_1_0 bool graphene_size_equal (const graphene_size_t *a, const graphene_size_t *b)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_size_scale (const graphene_size_t *s, float factor, graphene_size_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_size_interpolate (const graphene_size_t *a, const graphene_size_t *b, double factor, graphene_size_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_size_tgraphene_size_zero (void)
 

Macro Definition Documentation

◆ GRAPHENE_SIZE_INIT

#define GRAPHENE_SIZE_INIT ( _w,
_h )   (graphene_size_t) { .width = (_w), .height = (_h) }

GRAPHENE_SIZE_INIT: @_w: the width @_h: the height

Initializes a graphene_size_t with the given sizes when declaring it, e.g.:

|[ graphene_size_t size = GRAPHENE_SIZE_INIT (100.f, 100.f); ]|

Since: 1.0

Definition at line 50 of file graphene-size.h.

◆ GRAPHENE_SIZE_INIT_ZERO

#define GRAPHENE_SIZE_INIT_ZERO   GRAPHENE_SIZE_INIT (0.f, 0.f)

GRAPHENE_SIZE_INIT_ZERO:

Initializes a graphene_size_t to (0, 0) when declaring it.

Since: 1.0

Definition at line 59 of file graphene-size.h.

Function Documentation

◆ graphene_size_alloc()

GRAPHENE_AVAILABLE_IN_1_0 graphene_size_t * graphene_size_alloc ( void )

◆ graphene_size_equal()

GRAPHENE_AVAILABLE_IN_1_0 bool graphene_size_equal ( const graphene_size_t * a,
const graphene_size_t * b )

◆ graphene_size_free()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_size_free ( graphene_size_t * s)

◆ graphene_size_init()

GRAPHENE_AVAILABLE_IN_1_0 graphene_size_t * graphene_size_init ( graphene_size_t * s,
float width,
float height )

◆ graphene_size_init_from_size()

GRAPHENE_AVAILABLE_IN_1_0 graphene_size_t * graphene_size_init_from_size ( graphene_size_t * s,
const graphene_size_t * src )

◆ graphene_size_interpolate()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_size_interpolate ( const graphene_size_t * a,
const graphene_size_t * b,
double factor,
graphene_size_t * res )

◆ graphene_size_scale()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_size_scale ( const graphene_size_t * s,
float factor,
graphene_size_t * res )

◆ graphene_size_zero()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_size_t * graphene_size_zero ( void )