mirror of
https://github.com/nicbarker/clay.git
synced 2026-08-03 13:49:08 +00:00
Merge 0483197644 into e6cc36941a
This commit is contained in:
commit
e7d054f02d
1 changed files with 3 additions and 0 deletions
3
clay.h
3
clay.h
|
|
@ -560,6 +560,7 @@ typedef struct Clay_BorderElementConfig {
|
|||
CLAY__WRAPPER_STRUCT(Clay_BorderElementConfig);
|
||||
|
||||
typedef struct {
|
||||
void* userData;
|
||||
Clay_BoundingBox boundingBox;
|
||||
Clay_Color backgroundColor;
|
||||
Clay_Color overlayColor;
|
||||
|
|
@ -624,6 +625,7 @@ typedef CLAY_PACKED_ENUM {
|
|||
|
||||
// Controls settings related to transitions
|
||||
typedef struct Clay_TransitionElementConfig {
|
||||
void* userData;
|
||||
bool (*handler)(Clay_TransitionCallbackArguments arguments);
|
||||
float duration;
|
||||
Clay_TransitionProperty properties;
|
||||
|
|
@ -4621,6 +4623,7 @@ Clay_RenderCommandArray Clay_EndLayout(float deltaTime) {
|
|||
Clay_TransitionData targetState = transitionData->targetState;
|
||||
if (transitionData->state != CLAY_TRANSITION_STATE_EXITING) {
|
||||
targetState = CLAY__INIT(Clay_TransitionData) {
|
||||
currentElement->config.transition.userData,
|
||||
mapItem->boundingBox,
|
||||
currentElement->config.backgroundColor,
|
||||
currentElement->config.overlayColor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue