37 lines
624 B
C
37 lines
624 B
C
|
|
#pragma once
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
uint16_t w;
|
||
|
|
uint16_t h;
|
||
|
|
} ui_dimensions;
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
uint16_t x;
|
||
|
|
uint16_t y;
|
||
|
|
} ui_position;
|
||
|
|
|
||
|
|
|
||
|
|
ui_dimensions* ui_dimensions_malloc();
|
||
|
|
ui_dimensions* ui_dimensions_new( uint16_t w, uint16_t h);
|
||
|
|
|
||
|
|
ui_position* ui_position_malloc();
|
||
|
|
ui_position* ui_position_new( uint16_t x, uint16_t y);
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
float w;
|
||
|
|
float h;
|
||
|
|
} f_dimensions;
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
float x;
|
||
|
|
float y;
|
||
|
|
} f_position;
|
||
|
|
|
||
|
|
|
||
|
|
f_dimensions* f_dimensions_malloc();
|
||
|
|
f_dimensions*f_dimensions_new( float w, float h);
|
||
|
|
|
||
|
|
f_position* f_position_malloc();
|
||
|
|
f_position* f_position_new( float x, float y);
|