Stardew Engine
Loading...
Searching...
No Matches
TextWidget.h File Reference
#include "HandleDefs.h"
#include "DynArray.h"
#include <stdbool.h>
Include dependency graph for TextWidget.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TextWidgetData
 

Macros

#define TEXT_WIDGET_DATA_LUA_CALLBACK_NAME_BUFFER_SIZE   32
 

Typedefs

typedef struct _AtlasSprite AtlasSprite
 
typedef struct Vert2DColourTexture WidgetVertex
 

Functions

void TextWidget_FromXML (struct UIWidget *pWidget, struct TextWidgetData *pData, struct DataNode *pXMLNode, struct XMLUIData *pUILayerData)
 
HWidget TextWidgetNew (HWidget hParent, struct DataNode *pXMLNode, struct XMLUIData *pUILayerData)
 
void * TextWidget_OutputVerts (float left, float top, const struct WidgetPadding *padding, struct TextWidgetData *pData, VECTOR(WidgetVertex) pOutVerts)
 
void TextWidget_Destroy (struct TextWidgetData *pData)
 
void * TextWidget_OutputAtLetter (float left, float top, const struct WidgetPadding *padding, struct TextWidgetData *pData, char charOverlay, int letterOverlay, VECTOR(WidgetVertex) pOutVerts)
 overlay a charcter at a given letter in the string
 

Macro Definition Documentation

◆ TEXT_WIDGET_DATA_LUA_CALLBACK_NAME_BUFFER_SIZE

#define TEXT_WIDGET_DATA_LUA_CALLBACK_NAME_BUFFER_SIZE   32

Typedef Documentation

◆ AtlasSprite

typedef struct _AtlasSprite AtlasSprite

◆ WidgetVertex

Function Documentation

◆ TextWidget_Destroy()

void TextWidget_Destroy ( struct TextWidgetData pData)

◆ TextWidget_FromXML()

void TextWidget_FromXML ( struct UIWidget pWidget,
struct TextWidgetData pData,
struct DataNode pXMLNode,
struct XMLUIData pUILayerData 
)

◆ TextWidget_OutputAtLetter()

void * TextWidget_OutputAtLetter ( float  left,
float  top,
const struct WidgetPadding padding,
struct TextWidgetData pData,
char  charOverlay,
int  letterOverlay,
VECTOR(WidgetVertex pOutVerts 
)

overlay a charcter at a given letter in the string

Parameters
left
top
padding
pData
charOverlay
letterOverlay
pOutVerts
Returns

◆ TextWidget_OutputVerts()

void * TextWidget_OutputVerts ( float  left,
float  top,
const struct WidgetPadding padding,
struct TextWidgetData pData,
VECTOR(WidgetVertex pOutVerts 
)

◆ TextWidgetNew()

HWidget TextWidgetNew ( HWidget  hParent,
struct DataNode pXMLNode,
struct XMLUIData pUILayerData 
)