mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Replace TABS by 4 spaces
This commit is contained in:
10
README.md
10
README.md
@ -19,7 +19,7 @@ WindowBox | GroupBox | Line | Panel
|
||||
#### Basic controls
|
||||
```
|
||||
Label | Button | LabelButton | ImageButton | Toggle | ToggleGroup | CheckBox
|
||||
ComboBox | DropdownBox | TextBox | TextBoxMulti | ValueBox | Spinner | Slider
|
||||
ComboBox | DropdownBox | TextBox | TextBoxMulti | ValueBox | Spinner | Slider
|
||||
SliderBar | ProgressBar | StatusBar | ScrollBar | ScrollPanel | DummyRec | Grid
|
||||
```
|
||||
#### Advance controls
|
||||
@ -37,19 +37,19 @@ Some additional styles are also provided for convenience, just check [styles dir
|
||||
|
||||

|
||||
|
||||
Custom styles can also be created very easily using [rGuiStyler](https://raylibtech.itch.io/rguistyler) tool.
|
||||
Custom styles can also be created very easily using [rGuiStyler](https://raylibtech.itch.io/rguistyler) tool.
|
||||
|
||||
Styles can be loaded at runtime using raygui `GuiLoadStyle()` function. Simple and easy-to-use.
|
||||
|
||||

|
||||
|
||||
*rGuiStyler v3.1 - raygui styles editor, useful to create custom styles*
|
||||
|
||||
|
||||
## raygui icons
|
||||
|
||||
`raygui` supports custom icons provided as an external array of data. To support icons just define `RAYGUI_SUPPORT_ICONS` before including `raygui`.
|
||||
`raygui` supports custom icons provided as an external array of data. To support icons just define `RAYGUI_SUPPORT_ICONS` before including `raygui`.
|
||||
|
||||
A set of custom handcrafted icons is provided in [`ricons`](src/ricons.h). This set of icons can be created and customized using [rGuiIcons](https://raylibtech.itch.io/rguiicons) tool.
|
||||
A set of custom handcrafted icons is provided in [`ricons`](src/ricons.h). This set of icons can be created and customized using [rGuiIcons](https://raylibtech.itch.io/rguiicons) tool.
|
||||
|
||||
<img align="right" src="images/raygui_ricons.png">
|
||||
|
||||
|
||||
@ -81,8 +81,8 @@ int main()
|
||||
DrawText(TextFormat("FOCUS:%i | SCROLL:%i | FPS:%i", focus, scroll, GetFPS()), prop[8].value.v2.x, prop[8].value.v2.y, 20, prop[11].value.vcolor);
|
||||
}
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
GuiDMSaveProperties("test.props", prop, SIZEOF(prop)); // Save properties to `test.props` file at exit
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
* gcc -o $(NAME_PART).exe $(FILE_NAME) -I../../src -lraylib -lopengl32 -lgdi32 -std=c99
|
||||
*
|
||||
* COMPILATION (Linux - gcc):
|
||||
* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99
|
||||
* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99
|
||||
*
|
||||
* LICENSE: zlib/libpng
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
* gcc -o $(NAME_PART).exe $(FILE_NAME) -I../../src -lraylib -lopengl32 -lgdi32 -std=c99
|
||||
*
|
||||
* COMPILATION (Linux - gcc):
|
||||
* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99
|
||||
* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99
|
||||
*
|
||||
* LICENSE: zlib/libpng
|
||||
*
|
||||
@ -87,9 +87,9 @@ int main(int argc, char **argv)
|
||||
InitWindow(screenWidth, screenHeight, "raygui - gui textboxBounds extended demo");
|
||||
|
||||
// Generate a checked checked used by the color buttons
|
||||
Image img = GenImageChecked(26, 26, 5, 5, RAYWHITE, DARKGRAY);
|
||||
checked = LoadTextureFromImage(img);
|
||||
UnloadImage(img);
|
||||
Image img = GenImageChecked(26, 26, 5, 5, RAYWHITE, DARKGRAY);
|
||||
checked = LoadTextureFromImage(img);
|
||||
UnloadImage(img);
|
||||
|
||||
Font font = { 0 };
|
||||
int fontSize = GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
@ -185,8 +185,8 @@ int main(int argc, char **argv)
|
||||
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
BeginDrawing();
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
// Draw textboxes extended
|
||||
@ -288,7 +288,7 @@ int main(int argc, char **argv)
|
||||
*/
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
||||
EndDrawing();
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
|
||||
@ -94,8 +94,8 @@ int main(int argc, char **argv)
|
||||
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
BeginDrawing();
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
// Draw textboxes extended
|
||||
@ -104,7 +104,7 @@ int main(int argc, char **argv)
|
||||
if (GuiTextEditor((Rectangle){ 420, 20, 360, 410 }, text02, strlen(text02), textEditor02EditMode)) textEditor02EditMode = !textEditor02EditMode;
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
||||
EndDrawing();
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
// Icons data is defined by bit array (every bit represents one pixel)
|
||||
// Those arrays are stored as unsigned int data arrays, so every array
|
||||
// element defines 32 pixels (bits) of information
|
||||
// Number of elemens depend on RICON_SIZE (by default 16x16 pixels)
|
||||
// Number of elemens depend on RICON_SIZE (by default 16x16 pixels)
|
||||
#define RICON_DATA_ELEMENTS (RICON_SIZE*RICON_SIZE/32)
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user