File TextWidget.h
FileList > engine > include > TextWidget.h
Go to the source code of this file
#include "HandleDefs.h"#include "DynArray.h"#include <stdbool.h>
Classes
| Type | Name |
|---|---|
| struct | TextWidgetData |
Public Types
| Type | Name |
|---|---|
| typedef struct _AtlasSprite | AtlasSprite |
| typedef struct Vert2DColourTexture | WidgetVertex |
Public Functions
| Type | Name |
|---|---|
| HWidget | TextWidgetNew (HWidget hParent, struct DataNode * pXMLNode, struct XMLUIData * pUILayerData) |
| void | TextWidget_Destroy (struct TextWidgetData * pData) |
| void | TextWidget_FromXML (struct UIWidget * pWidget, struct TextWidgetData * pData, struct DataNode * pXMLNode, struct XMLUIData * pUILayerData) |
| 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 |
| void * | TextWidget_OutputVerts (float left, float top, const struct WidgetPadding * padding, struct TextWidgetData * pData, VECTOR(WidgetVertex) pOutVerts) |
Macros
| Type | Name |
|---|---|
| define | TEXT_WIDGET_DATA_LUA_CALLBACK_NAME_BUFFER_SIZE 32 |
Public Types Documentation
typedef AtlasSprite
typedef struct _AtlasSprite AtlasSprite;
typedef WidgetVertex
typedef struct Vert2DColourTexture WidgetVertex;
Public Functions Documentation
function TextWidgetNew
HWidget TextWidgetNew (
HWidget hParent,
struct DataNode * pXMLNode,
struct XMLUIData * pUILayerData
)
function TextWidget_Destroy
void TextWidget_Destroy (
struct TextWidgetData * pData
)
function TextWidget_FromXML
void TextWidget_FromXML (
struct UIWidget * pWidget,
struct TextWidgetData * pData,
struct DataNode * pXMLNode,
struct XMLUIData * pUILayerData
)
function TextWidget_OutputAtLetter
overlay a charcter at a given letter in the string
void * TextWidget_OutputAtLetter (
float left,
float top,
const struct WidgetPadding * padding,
struct TextWidgetData * pData,
char charOverlay,
int letterOverlay,
VECTOR( WidgetVertex ) pOutVerts
)
Parameters:
lefttoppaddingpDatacharOverlayletterOverlaypOutVerts
Returns:
function TextWidget_OutputVerts
void * TextWidget_OutputVerts (
float left,
float top,
const struct WidgetPadding * padding,
struct TextWidgetData * pData,
VECTOR( WidgetVertex ) pOutVerts
)
Macro Definition Documentation
define TEXT_WIDGET_DATA_LUA_CALLBACK_NAME_BUFFER_SIZE
#define TEXT_WIDGET_DATA_LUA_CALLBACK_NAME_BUFFER_SIZE `32`
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/TextWidget.h