bindbc.raylib.bind.text

Undocumented in source.

Members

Aliases

pCodepointToUtf8
alias pCodepointToUtf8 = const(char)* function(int codepoint, int* byteLength)

Encode codepoint into utf8 text (char array length returned as parameter)

pDrawFPS
alias pDrawFPS = void function(int posX, int posY)

Shows current FPS

pDrawText
alias pDrawText = void function(const(char)* text, int posX, int posY, int fontSize, Color color)

Draw text (using default font)

pDrawTextCodepoint
alias pDrawTextCodepoint = void function(Font font, int codepoint, Vector2 position, float scale, Color tint)

Draw one character (codepoint)

pDrawTextEx
alias pDrawTextEx = void function(Font font, const(char)* text, Vector2 position, float fontSize, float spacing, Color tint)

Draw text using font and additional parameters

pDrawTextRec
alias pDrawTextRec = void function(Font font, const(char)* text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint)

Draw text using font inside rectangle limits

pDrawTextRecEx
alias pDrawTextRecEx = void function(Font font, const(char)* text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectTint, Color selectBackTint)

Draw text using font inside rectangle limits with support for text selection

pGenImageFontAtlas
alias pGenImageFontAtlas = Image function(const(CharInfo)* chars, Rectangle** recs, int charsCount, int fontSize, int padding, int packMethod)

Generate image font atlas using chars info

pGetCodepoints
alias pGetCodepoints = int* function(const(char)* text, int* count)

Get all codepoints in a string, codepoints count returned by parameters

pGetCodepointsCount
alias pGetCodepointsCount = int function(const(char)* text)

Get total number of characters (codepoints) in a UTF8 encoded string

pGetFontDefault
alias pGetFontDefault = Font function()

Get the default Font

pGetGlyphIndex
alias pGetGlyphIndex = int function(Font font, int codepoint)

Get index position for a unicode character on font

pGetNextCodepoint
alias pGetNextCodepoint = int function(const(char)* text, int* bytesProcessed)

Returns next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure

pLoadFont
alias pLoadFont = Font function(const(char)* fileName)

Load font from file into GPU memory (VRAM)

pLoadFontData
alias pLoadFontData = CharInfo* function(const(char)* fileName, int fontSize, int* fontChars, int charsCount, int type)

Load font data for further use

pLoadFontEx
alias pLoadFontEx = Font function(const(char)* fileName, int fontSize, int* fontChars, int charsCount)

Load font from file with extended parameters

pLoadFontFromImage
alias pLoadFontFromImage = Font function(Image image, Color key, int firstChar)

Load font from Image (XNA style)

pMeasureText
alias pMeasureText = int function(const(char)* text, int fontSize)

Measure string width for default font

pMeasureTextEx
alias pMeasureTextEx = Vector2 function(Font font, const(char)* text, float fontSize, float spacing)

Measure string size for Font

pTextAppend
alias pTextAppend = void function(char* text, const(char)* append, int* position)

Append text at specific position and move cursor!

pTextCopy
alias pTextCopy = int function(char* dst, const(char)* src)

Copy one string to another, returns bytes copied

pTextFindIndex
alias pTextFindIndex = int function(const(char)* text, const(char)* find)

Find first text occurrence within a string

pTextFormat
alias pTextFormat = const(char)* function(const(char)* text, ...)

Text formatting with variables (sprintf style)

pTextInsert
alias pTextInsert = char* function(const(char)* text, const(char)* insert, int position)

Insert text in a position (memory must be freed!)

pTextIsEqual
alias pTextIsEqual = bool function(const(char)* text1, const(char)* text2)

Check if two text string are equal

pTextJoin
alias pTextJoin = const(char)* function(const(char*)* textList, int count, const(char)* delimiter)

Join text strings with delimiter

pTextLength
alias pTextLength = ushort function(const(char)* text)

Get text length, checks for '\0' ending

pTextReplace
alias pTextReplace = char* function(char* text, const(char)* replace, const(char)* by)

Replace text string (memory must be freed!)

pTextSplit
alias pTextSplit = const(char*)* function(const(char)* text, char delimiter, int* count)

Split text into multiple strings

pTextSubtext
alias pTextSubtext = const(char)* function(const(char)* text, int position, int length)

Get a piece of a text string

pTextToInteger
alias pTextToInteger = int function(const(char)* text)

Get integer value from text (negative values not supported)

pTextToLower
alias pTextToLower = const(char)* function(const(char)* text)

Get lower case version of provided string

pTextToPascal
alias pTextToPascal = const(char)* function(const(char)* text)

Get Pascal case notation version of provided string

pTextToUpper
alias pTextToUpper = const(char)* function(const(char)* text)

Get upper case version of provided string

pTextToUtf8
alias pTextToUtf8 = char* function(int* codepoints, int length)

Encode text codepoint into utf8 text (memory must be freed!)

pUnloadFont
alias pUnloadFont = void function(Font font)

Unload Font from GPU memory (VRAM)

Static variables

CodepointToUtf8
pCodepointToUtf8 CodepointToUtf8;
Undocumented in source.
DrawFPS
pDrawFPS DrawFPS;
Undocumented in source.
DrawText
pDrawText DrawText;
Undocumented in source.
DrawTextCodepoint
pDrawTextCodepoint DrawTextCodepoint;
Undocumented in source.
DrawTextEx
pDrawTextEx DrawTextEx;
Undocumented in source.
DrawTextRec
pDrawTextRec DrawTextRec;
Undocumented in source.
DrawTextRecEx
pDrawTextRecEx DrawTextRecEx;
Undocumented in source.
GenImageFontAtlas
pGenImageFontAtlas GenImageFontAtlas;
Undocumented in source.
GetCodepoints
pGetCodepoints GetCodepoints;
Undocumented in source.
GetCodepointsCount
pGetCodepointsCount GetCodepointsCount;
Undocumented in source.
GetFontDefault
pGetFontDefault GetFontDefault;
Undocumented in source.
GetGlyphIndex
pGetGlyphIndex GetGlyphIndex;
Undocumented in source.
GetNextCodepoint
pGetNextCodepoint GetNextCodepoint;
Undocumented in source.
LoadFont
pLoadFont LoadFont;
Undocumented in source.
LoadFontData
pLoadFontData LoadFontData;
Undocumented in source.
LoadFontEx
pLoadFontEx LoadFontEx;
Undocumented in source.
LoadFontFromImage
pLoadFontFromImage LoadFontFromImage;
Undocumented in source.
MeasureText
pMeasureText MeasureText;
Undocumented in source.
MeasureTextEx
pMeasureTextEx MeasureTextEx;
Undocumented in source.
TextAppend
pTextAppend TextAppend;
Undocumented in source.
TextCopy
pTextCopy TextCopy;
Undocumented in source.
TextFindIndex
pTextFindIndex TextFindIndex;
Undocumented in source.
TextFormat
pTextFormat TextFormat;
Undocumented in source.
TextInsert
pTextInsert TextInsert;
Undocumented in source.
TextIsEqual
pTextIsEqual TextIsEqual;
Undocumented in source.
TextJoin
pTextJoin TextJoin;
Undocumented in source.
TextLength
pTextLength TextLength;
Undocumented in source.
TextReplace
pTextReplace TextReplace;
Undocumented in source.
TextSplit
pTextSplit TextSplit;
Undocumented in source.
TextSubtext
pTextSubtext TextSubtext;
Undocumented in source.
TextToInteger
pTextToInteger TextToInteger;
Undocumented in source.
TextToLower
pTextToLower TextToLower;
Undocumented in source.
TextToPascal
pTextToPascal TextToPascal;
Undocumented in source.
TextToUpper
pTextToUpper TextToUpper;
Undocumented in source.
TextToUtf8
pTextToUtf8 TextToUtf8;
Undocumented in source.
UnloadFont
pUnloadFont UnloadFont;
Undocumented in source.

Meta