File TextEntryWidget.c

FileList > engine > src > gameframework > layers > UI > widgets > TextEntryWidget.c

Go to the source code of this file

  • #include "TextEntryWidget.h"
  • #include "Widget.h"
  • #include "DataNode.h"
  • #include "XMLUIGameLayer.h"
  • #include <string.h>
  • #include <stdlib.h>
  • #include <stdio.h>
  • #include "TextWidget.h"
  • #include "Atlas.h"
  • #include "AssertLib.h"
  • #include "CanvasWidget.h"
  • #include "InputContext.h"
  • #include "RootWidget.h"
  • #include "TimerPool.h"
  • #include "Scripting.h"
  • #include "Log.h"

Classes

Type Name
struct TextEntryWidgetData

Public Functions

Type Name
HWidget TextEntryWidgetNew (HWidget hParent, struct DataNode * pXMLNode, struct XMLUIData * pUILayerData)
Create a new widget for entering text from a struct DataNode*.

Public Static Functions

Type Name
void AllocateStringContents (int maxStringLength, struct TextEntryWidgetData * pData)
void DoBackspace (struct TextEntryWidgetData * pData, struct UIWidget * pWidget)
void DoEnterChar (struct TextEntryWidgetData * pData, char c, struct UIWidget * pWidget)
void * FakeChildOutputVerts (struct UIWidget * pWidget, VECTOR(WidgetVertex) pOutVerts)
float GetHeight (struct UIWidget * pWidget, struct UIWidget * pParent)
float GetWidth (struct UIWidget * pWidget, struct UIWidget * pParent)
void LayoutChildren (struct UIWidget * pWidget, struct UIWidget * pParent)
void MakeWidgetIntoTextEntryWidget (HWidget hWidget, struct DataNode * pDataNode, struct XMLUIData * pUILayerData)
bool OnCaretBlinkTimerElapsed (struct SDTimer * pTimer)
void OnDestroy (struct UIWidget * pWidget)
void OnFocus (struct UIWidget * pWidget)
void * OnOutputVerts (struct UIWidget * pWidget, VECTOR(WidgetVertex) pOutVerts)
void OnPropertyChanged (struct UIWidget * pThisWidget, struct WidgetPropertyBinding * pBinding)
void OnUnFocus (struct UIWidget * pWidget)
void RecieveKeystrokeCallback (struct UIWidget * pWidget, int keystroke)
void SetupCaretBlinkTimer (struct TextEntryWidgetData * pData, struct XMLUIData * pUILayerData, HWidget hWidget)

Public Functions Documentation

function TextEntryWidgetNew

Create a new widget for entering text from a struct DataNode*.

HWidget TextEntryWidgetNew (
    HWidget hParent,
    struct DataNode * pXMLNode,
    struct XMLUIData * pUILayerData
) 

Parameters:

  • hParent
  • pXMLNode
  • pUILayerData

Returns:


Public Static Functions Documentation

function AllocateStringContents

static void AllocateStringContents (
    int maxStringLength,
    struct TextEntryWidgetData * pData
) 

function DoBackspace

static void DoBackspace (
    struct TextEntryWidgetData * pData,
    struct UIWidget * pWidget
) 

function DoEnterChar

static void DoEnterChar (
    struct TextEntryWidgetData * pData,
    char c,
    struct UIWidget * pWidget
) 

function FakeChildOutputVerts

static void * FakeChildOutputVerts (
    struct UIWidget * pWidget,
    VECTOR( WidgetVertex ) pOutVerts
) 

function GetHeight

static float GetHeight (
    struct UIWidget * pWidget,
    struct UIWidget * pParent
) 

function GetWidth

static float GetWidth (
    struct UIWidget * pWidget,
    struct UIWidget * pParent
) 

function LayoutChildren

static void LayoutChildren (
    struct UIWidget * pWidget,
    struct UIWidget * pParent
) 

function MakeWidgetIntoTextEntryWidget

static void MakeWidgetIntoTextEntryWidget (
    HWidget hWidget,
    struct DataNode * pDataNode,
    struct XMLUIData * pUILayerData
) 

function OnCaretBlinkTimerElapsed

static bool OnCaretBlinkTimerElapsed (
    struct SDTimer * pTimer
) 

function OnDestroy

static void OnDestroy (
    struct UIWidget * pWidget
) 

function OnFocus

static void OnFocus (
    struct UIWidget * pWidget
) 

function OnOutputVerts

static void * OnOutputVerts (
    struct UIWidget * pWidget,
    VECTOR( WidgetVertex ) pOutVerts
) 

function OnPropertyChanged

static void OnPropertyChanged (
    struct UIWidget * pThisWidget,
    struct WidgetPropertyBinding * pBinding
) 

function OnUnFocus

static void OnUnFocus (
    struct UIWidget * pWidget
) 

function RecieveKeystrokeCallback

static void RecieveKeystrokeCallback (
    struct UIWidget * pWidget,
    int keystroke
) 

function SetupCaretBlinkTimer

static void SetupCaretBlinkTimer (
    struct TextEntryWidgetData * pData,
    struct XMLUIData * pUILayerData,
    HWidget hWidget
) 


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/gameframework/layers/UI/widgets/TextEntryWidget.c