Stardew Engine
Loading...
Searching...
No Matches
RootWidget.c File Reference
#include "RootWidget.h"
#include "Widget.h"
#include "main.h"
#include <string.h>
#include <stdlib.h>
#include "AssertLib.h"
Include dependency graph for RootWidget.c:

Functions

float RootWidget_GetWidth (struct UIWidget *pWidget, struct UIWidget *pParent)
 
float RootWidget_GetHeight (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 MakeIntoRootWidget (HWidget widget)
 
HWidget NewRootWidget ()
 
void RootWidget_OnWindowSizeChanged (HWidget rootWidget, int newW, int newH)
 
bool GetRootWidgetIsDirty (HWidget hRootWidget)
 
void SetRootWidgetIsDirty (HWidget hRootWidget, bool bIsDirty)
 if dirty, a whole tree rebuild will be triggered
 

Function Documentation

◆ GetRootWidgetIsDirty()

bool GetRootWidgetIsDirty ( HWidget  hRootWidget)

◆ MakeIntoRootWidget()

void MakeIntoRootWidget ( HWidget  widget)

◆ NewRootWidget()

HWidget NewRootWidget ( )

◆ RootWidget_GetHeight()

float RootWidget_GetHeight ( struct UIWidget pWidget,
struct UIWidget pParent 
)

◆ RootWidget_GetWidth()

float RootWidget_GetWidth ( struct UIWidget pWidget,
struct UIWidget pParent 
)

◆ RootWidget_LayoutChildren()

void RootWidget_LayoutChildren ( struct UIWidget pThis,
struct UIWidget pParent,
float  scrollX,
float  scrollY 
)

◆ RootWidget_OnDestroy()

void RootWidget_OnDestroy ( struct UIWidget pThis)

◆ RootWidget_OnWindowSizeChanged()

void RootWidget_OnWindowSizeChanged ( HWidget  rootWidget,
int  newW,
int  newH 
)

◆ SetRootWidgetIsDirty()

void SetRootWidgetIsDirty ( HWidget  hRootWidget,
bool  bIsDirty 
)

if dirty, a whole tree rebuild will be triggered

Parameters
hRootWidget
bIsDirty