#ifndef _UI__BACKGROUND_NODE_H #define _UI__BACKGROUND_NODE_H #include "color.h" #include "node.h" typedef struct UIBackgroundNode { UINode node; UIRGBA normal, hovered, pressed; double border_radius; bool update_on_status; } UIBackgroundNode; int background_node_handle(UINode *node, enum UIEvent ev, size_t d, void *p); UIBackgroundNode *state_background_node_new(UINode *parent, UIRGBA normal, UIRGBA hovered, UIRGBA pressed, double border_radius); UIBackgroundNode *background_node_new(UINode *parent, UIRGBA normal, double border_radius); #endif // _UI__BACKGROUND_NODE_H