File RootWidget.c
FileList > engine > src > gameframework > layers > UI > widgets > RootWidget.c
Go to the source code of this file
#include "RootWidget.h"#include "Widget.h"#include "main.h"#include <string.h>#include <stdlib.h>#include "AssertLib.h"
Public Functions
| Type | Name |
|---|---|
| bool | GetRootWidgetIsDirty (HWidget hRootWidget) |
| void | MakeIntoRootWidget (HWidget widget) |
| HWidget | NewRootWidget () |
| float | RootWidget_GetHeight (struct UIWidget * pWidget, struct UIWidget * pParent) |
| float | RootWidget_GetWidth (struct UIWidget * pWidget, struct UIWidget * pParent) |
| void | RootWidget_LayoutChildren (struct UIWidget * pThis, struct UIWidget * pParent, float scrollX, float scrollY) |
| void | RootWidget_OnDestroy (struct UIWidget * pThis) |
| void | RootWidget_OnWindowSizeChanged (HWidget rootWidget, int newW, int newH) |
| void | SetRootWidgetIsDirty (HWidget hRootWidget, bool bIsDirty) if dirty, a whole tree rebuild will be triggered |
Public Static Functions
| Type | Name |
|---|---|
| void | LayoutChildren (struct UIWidget * pThis, struct UIWidget * pParent) |
| void * | OnOutputVerts (struct UIWidget * pWidget, VECTOR(WidgetVertex) pOutVerts) |
Public Functions Documentation
function GetRootWidgetIsDirty
bool GetRootWidgetIsDirty (
HWidget hRootWidget
)
function MakeIntoRootWidget
void MakeIntoRootWidget (
HWidget widget
)
function NewRootWidget
HWidget NewRootWidget ()
function RootWidget_GetHeight
float RootWidget_GetHeight (
struct UIWidget * pWidget,
struct UIWidget * pParent
)
function RootWidget_GetWidth
float RootWidget_GetWidth (
struct UIWidget * pWidget,
struct UIWidget * pParent
)
function RootWidget_LayoutChildren
void RootWidget_LayoutChildren (
struct UIWidget * pThis,
struct UIWidget * pParent,
float scrollX,
float scrollY
)
function RootWidget_OnDestroy
void RootWidget_OnDestroy (
struct UIWidget * pThis
)
function RootWidget_OnWindowSizeChanged
void RootWidget_OnWindowSizeChanged (
HWidget rootWidget,
int newW,
int newH
)
function SetRootWidgetIsDirty
if dirty, a whole tree rebuild will be triggered
void SetRootWidgetIsDirty (
HWidget hRootWidget,
bool bIsDirty
)
Parameters:
hRootWidgetbIsDirty
Public Static Functions Documentation
function LayoutChildren
static void LayoutChildren (
struct UIWidget * pThis,
struct UIWidget * pParent
)
function OnOutputVerts
static void * OnOutputVerts (
struct UIWidget * pWidget,
VECTOR( WidgetVertex ) pOutVerts
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/gameframework/layers/UI/widgets/RootWidget.c