21 lines
516 B
C
21 lines
516 B
C
|
|
||
|
struct Text {
|
||
|
Font font;
|
||
|
const char *text;
|
||
|
Vector2 position;
|
||
|
float fontSize, spacing;
|
||
|
Color tint;
|
||
|
};
|
||
|
|
||
|
struct Button {
|
||
|
Rectangle rectangle;
|
||
|
Color color;
|
||
|
Text text;
|
||
|
};
|
||
|
|
||
|
Button create_button(int type_arg, int size_arg, const std::vector<float>& position_arg, const char *text_arg, const std::vector<int>& screen_arg);
|
||
|
|
||
|
void draw_buttons(const std::vector<Button>& buttons_arg);
|
||
|
|
||
|
std::vector<float> button_size(int size_arg, const std::vector<int>& screen_arg);
|
||
|
float text_size(int size_arg);
|