Stardew Engine
Loading...
Searching...
No Matches
XMLUIGameLayer.h File Reference
#include <libxml/tree.h>
#include <stdbool.h>
#include "HandleDefs.h"
#include "DynArray.h"
#include "Widget.h"
#include "DrawContext.h"
#include "TimerPool.h"
#include "InputContext.h"
Include dependency graph for XMLUIGameLayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  XMLUIGameLayerOptions
 
struct  WidgetChildrenChangeRequest
 its a "request" because if an ancenstor of the requesting widget also requests then the request is overruled More...
 
struct  XMLUIData
 

Macros

#define XML_UI_MAX_PATH   256
 
#define MAX_FOCUSED_WIDGETS   16
 

Typedefs

typedef HWidget(* AddChildFn) (HWidget hParent, struct DataNode *pDataNode, struct XMLUIData *pUILayerData)
 Function pointer typedef for adding a new widget, described by pDataNode as a child of hParent should return a handle to the created widget.
 
typedef struct XMLUIData XMLUIData
 

Functions

void XMLUIGameLayer_Get (struct GameFrameworkLayer *pLayer, struct XMLUIGameLayerOptions *pOptions)
 Get and possibly load (if bLoadImmediately) a ui layer defined by xml.
 
void XMLUI_PushGameFrameworkLayer (const char *xmlPath)
 

Macro Definition Documentation

◆ MAX_FOCUSED_WIDGETS

#define MAX_FOCUSED_WIDGETS   16

◆ XML_UI_MAX_PATH

#define XML_UI_MAX_PATH   256

Typedef Documentation

◆ AddChildFn

typedef HWidget(* AddChildFn) (HWidget hParent, struct DataNode *pDataNode, struct XMLUIData *pUILayerData)

Function pointer typedef for adding a new widget, described by pDataNode as a child of hParent should return a handle to the created widget.

◆ XMLUIData

typedef struct XMLUIData XMLUIData

Function Documentation

◆ XMLUI_PushGameFrameworkLayer()

void XMLUI_PushGameFrameworkLayer ( const char *  xmlPath)

◆ XMLUIGameLayer_Get()

void XMLUIGameLayer_Get ( struct GameFrameworkLayer pLayer,
struct XMLUIGameLayerOptions pOptions 
)

Get and possibly load (if bLoadImmediately) a ui layer defined by xml.

Parameters
pLayer(Out) layer to turn into an xml ui layer
pOptionsoptions for creation