FileList > engine > src > gameframework > layers > UI > widgets > RadioButtonWidget.c
Go to the source code of this file
#include "RadioButtonWidget.h"
#include "Widget.h"
#include "XMLUIGameLayer.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "Atlas.h"
#include "AssertLib.h"
#include "TextWidget.h"
#include "StaticWidget.h"
#include "RadioGroupWidget.h"
#include "DataNode.h"
#include "Log.h"
Classes
Public Types
Public Functions
Public Static Functions
| Type |
Name |
| float |
GetBtnH (struct RadioButtonData * pData)
|
| float |
GetBtnW (struct RadioButtonData * pData)
|
| float |
GetHeight (struct UIWidget * pWidget, struct UIWidget * pParent)
|
| void |
GetSpriteAndAtlas (struct RadioButtonData * pData, hSprite * outSprite, hAtlas * outAtlas)
|
| float |
GetWidth (struct UIWidget * pWidget, struct UIWidget * pParent)
|
| void |
LayoutChildren (struct UIWidget * pWidget, struct UIWidget * pParent)
|
| void |
MakeDefaultRadioButtonData (struct RadioButtonData * pData, struct XMLUIData * pUILayerData)
|
| void |
MakeWidgetIntoRadioButtonWidget (HWidget hWidget, struct DataNode * pDataNode, struct XMLUIData * pUILayerData)
|
| void |
MouseButtonDownCallback (struct UIWidget * pWidget, float x, float y, int btn)
|
| void |
MouseButtonUpCallback (struct UIWidget * pWidget, float x, float y, int btn)
|
| void |
MouseLeaveCallback (struct UIWidget * pWidget, float x, float y)
|
| void |
MouseMoveCallback (struct UIWidget * pWidget, float x, float y)
|
| void |
OnDestroy (struct UIWidget * pWidget)
|
| void * |
OnOutputVerts (struct UIWidget * pWidget, VECTOR(WidgetVertex) pOutVerts)
|
| void |
OnPropertyChanged (struct UIWidget * pThisWidget, struct WidgetPropertyBinding * pBinding)
|
| void |
RadioButtonWidget_MakeFromXML (struct DataNode * pDataNode, struct RadioButtonData * pData)
|
Macros
| Type |
Name |
| define |
max (a, b) (a>b?a:b)
|
Public Types Documentation
enum RadioBtnPlacement
enum RadioBtnPlacement {
RBP_Left,
RBP_Right,
RBP_Above,
RBP_Below
};
Public Functions Documentation
HWidget RadioButtonWidgetNew (
HWidget hParent,
struct DataNode * pDataNode,
struct XMLUIData * pUILayerData
)
void RadioButton_SetSelected (
HWidget hRadioButton,
bool bSelected
)
Public Static Functions Documentation
function GetBtnH
static float GetBtnH (
struct RadioButtonData * pData
)
function GetBtnW
static float GetBtnW (
struct RadioButtonData * pData
)
function GetHeight
static float GetHeight (
struct UIWidget * pWidget,
struct UIWidget * pParent
)
function GetSpriteAndAtlas
static void GetSpriteAndAtlas (
struct RadioButtonData * pData,
hSprite * outSprite,
hAtlas * outAtlas
)
function GetWidth
static float GetWidth (
struct UIWidget * pWidget,
struct UIWidget * pParent
)
function LayoutChildren
static void LayoutChildren (
struct UIWidget * pWidget,
struct UIWidget * pParent
)
static void MakeDefaultRadioButtonData (
struct RadioButtonData * pData,
struct XMLUIData * pUILayerData
)
static void MakeWidgetIntoRadioButtonWidget (
HWidget hWidget,
struct DataNode * pDataNode,
struct XMLUIData * pUILayerData
)
static void MouseButtonDownCallback (
struct UIWidget * pWidget,
float x,
float y,
int btn
)
static void MouseButtonUpCallback (
struct UIWidget * pWidget,
float x,
float y,
int btn
)
function MouseLeaveCallback
static void MouseLeaveCallback (
struct UIWidget * pWidget,
float x,
float y
)
function MouseMoveCallback
static void MouseMoveCallback (
struct UIWidget * pWidget,
float x,
float y
)
function OnDestroy
static void OnDestroy (
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
)
static void RadioButtonWidget_MakeFromXML (
struct DataNode * pDataNode,
struct RadioButtonData * pData
)
Macro Definition Documentation
define max
#define max (
a,
b
) `(a>b?a:b)`
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/gameframework/layers/UI/widgets/RadioButtonWidget.c