mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-03 20:59:18 -05:00
Update raygui.h
This commit is contained in:
@ -261,7 +261,7 @@
|
|||||||
float height;
|
float height;
|
||||||
} Rectangle;
|
} Rectangle;
|
||||||
|
|
||||||
// TODO: Texture2D type is very coupled to raylib, mostly required by GuiImageButton()
|
// TODO: Texture2D type is very coupled to raylib, required by Font type
|
||||||
// It should be redesigned to be provided by user
|
// It should be redesigned to be provided by user
|
||||||
typedef struct Texture2D {
|
typedef struct Texture2D {
|
||||||
unsigned int id; // OpenGL texture id
|
unsigned int id; // OpenGL texture id
|
||||||
@ -317,7 +317,7 @@ typedef enum {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
DEFAULT = 0, // Generic control -> populates to all controls when set
|
DEFAULT = 0, // Generic control -> populates to all controls when set
|
||||||
LABEL, // Used also for: LABELBUTTON
|
LABEL, // Used also for: LABELBUTTON
|
||||||
BUTTON, // Used also for: IMAGEBUTTON
|
BUTTON,
|
||||||
TOGGLE, // Used also for: TOGGLEGROUP
|
TOGGLE, // Used also for: TOGGLEGROUP
|
||||||
SLIDER, // Used also for: SLIDERBAR
|
SLIDER, // Used also for: SLIDERBAR
|
||||||
PROGRESSBAR,
|
PROGRESSBAR,
|
||||||
@ -1210,6 +1210,9 @@ static void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color);
|
|||||||
// Text required functions
|
// Text required functions
|
||||||
//-------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------
|
||||||
static Font GetFontDefault(void); // -- GuiLoadStyleDefault()
|
static Font GetFontDefault(void); // -- GuiLoadStyleDefault()
|
||||||
|
static Texture2D LoadTextureFromImage(Image image); // -- GuiLoadStyle()
|
||||||
|
static void SetShapesTexture(Texture2D tex, Rectangle rec); // -- GuiLoadStyle()
|
||||||
|
|
||||||
static Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // -- GetTextWidth(), GuiTextBoxMulti()
|
static Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // -- GetTextWidth(), GuiTextBoxMulti()
|
||||||
static void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // -- GuiDrawText()
|
static void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // -- GuiDrawText()
|
||||||
|
|
||||||
@ -4158,7 +4161,6 @@ static void DrawRectangleGradientV(int posX, int posY, int width, int height, Co
|
|||||||
#define TEXTSPLIT_MAX_TEXT_BUFFER_LENGTH 1024 // Size of static buffer: TextSplit()
|
#define TEXTSPLIT_MAX_TEXT_BUFFER_LENGTH 1024 // Size of static buffer: TextSplit()
|
||||||
#define TEXTSPLIT_MAX_SUBSTRINGS_COUNT 128 // Size of static pointers array: TextSplit()
|
#define TEXTSPLIT_MAX_SUBSTRINGS_COUNT 128 // Size of static pointers array: TextSplit()
|
||||||
|
|
||||||
|
|
||||||
// Split string into multiple strings
|
// Split string into multiple strings
|
||||||
const char **TextSplit(const char *text, char delimiter, int *count)
|
const char **TextSplit(const char *text, char delimiter, int *count)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user