Tuxánci 2
Successor to Tuxánci
 
Loading...
Searching...
No Matches
checkbox.c File Reference

Checkbox system. More...

#include "checkbox.h"
#include "files.h"
#include "raylib.h"
#include <stdbool.h>

Functions

Checkbox checkboxCreate (int x, int y)
 Creates a new Checkbox.
 
void checkboxDraw (Checkbox *b)
 Draws a Checkbox.
 
bool checkboxPressed (Checkbox *b)
 Check if a Checkbox is pressed.
 

Detailed Description

Checkbox system.

This file contains functions for creating, drawing, and checking if a checkbox has been pressed.

Function Documentation

◆ checkboxCreate()

Checkbox checkboxCreate ( int x,
int y )

Creates a new Checkbox.

Parameters
xHorizontal screen position of the Checkbox
yVertical screen position of the Checkbox
Returns
A Checkbox struct

◆ checkboxDraw()

void checkboxDraw ( Checkbox * b)

Draws a Checkbox.

Parameters
bThe Checkbox you want to draw

◆ checkboxPressed()

bool checkboxPressed ( Checkbox * b)

Check if a Checkbox is pressed.

Parameters
bThe Checkbox you want to check if pressed
Returns
A boolean, true if the Checkbox was pressed, false if the Checkbox was not pressed.