Replace TABS by 4 spaces

This commit is contained in:
raysan5
2021-07-28 12:55:58 +02:00
parent d5856e5182
commit bad9c8bb58
6 changed files with 19 additions and 19 deletions

View File

@ -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
![raygui additional styles](images/raygui_style_table_multi.png)
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](images/rguistyler_v300.png)
*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">

View File

@ -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

View File

@ -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
*

View File

@ -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();
//----------------------------------------------------------------------------------
}

View File

@ -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();
//----------------------------------------------------------------------------------
}

View File

@ -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)
//----------------------------------------------------------------------------------