List system.
More...
#include "raylib.h"
#include <stdbool.h>
Go to the source code of this file.
|
|
#define | LIST_MAX_ITEMS 64 |
| | Maximum number of items in a List.
|
| |
|
#define | LIST_ITEM_HEIGHT 30 |
| | Height of each item row in pixels.
|
| |
◆ listAdd()
| bool listAdd |
( |
List * | l, |
|
|
const char * | name ) |
Adds an item to a List.
- Parameters
-
| l | The List to add to |
| name | The name of the item to add |
- Returns
- true if the item was added, false if the List is full
◆ listCheck()
| bool listCheck |
( |
List * | l | ) |
|
Checks if an item in the List was clicked.
- Parameters
-
| l | The List you want to check |
- Returns
- true if a new item was selected, false otherwise
◆ listCreate()
| List listCreate |
( |
int | x, |
|
|
int | y, |
|
|
int | w, |
|
|
int | h ) |
Creates a new List.
- Parameters
-
| x | Horizontal screen position of the List |
| y | Vertical screen position of the List |
| w | Width of the List |
| h | Height of the List |
- Returns
- A List struct
◆ listDraw()
| void listDraw |
( |
List * | l | ) |
|
Draws a List.
- Parameters
-
| l | The List you want to draw |
◆ listRemove()
| bool listRemove |
( |
List * | l, |
|
|
const char * | name ) |
Removes an item from a List.
- Parameters
-
| l | The List to remove from |
| name | The name of the item to remove |
- Returns
- true if the item was found and removed, false if it was not found