CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
configure_anchors.cppm File Reference
import cydui.components.anchors;
import cydui.components.base;
import std;
+ Include dependency graph for configure_anchors.cppm:

Go to the source code of this file.

Namespaces

namespace  cydui
 
namespace  cydui::components
 
namespace  cydui::components::anchors
 

Macros

#define TO_STRING(...)
 
#define ANCHOR(PREFIX, NAME)
 
#define TO_STRING(...)
 
#define DIMENSIONAL_PARAM(PREFIX, NAME, ...)
 
#define PARENT_PARAM(NAME, ...)
 
#define SELF_PARAM(NAME, ...)
 
#define PREV_PARAM(NAME, ...)
 

Functions

void cydui::components::anchors::configure_anchors (std::shared_ptr< component_base_t > child, std::optional< std::shared_ptr< component_base_t > > prev)
 

Macro Definition Documentation

◆ ANCHOR

#define ANCHOR ( PREFIX,
NAME )
Value:
struct NAME { \
static constexpr dimension_parameter_t x{TO_STRING(PREFIX##_##NAME##_x)}; \
static constexpr dimension_parameter_t y{TO_STRING(PREFIX##_##NAME##_y)}; \
}
#define TO_STRING(...)

Definition at line 13 of file configure_anchors.cppm.

◆ DIMENSIONAL_PARAM

#define DIMENSIONAL_PARAM ( PREFIX,
NAME,
... )
Value:
ctx.set_parameter(TO_STRING(PREFIX##_##NAME), __VA_ARGS__)

◆ PARENT_PARAM

#define PARENT_PARAM ( NAME,
... )
Value:
DIMENSIONAL_PARAM(parent, NAME, __VA_ARGS__ + 0_px)
#define DIMENSIONAL_PARAM(PREFIX, NAME,...)

◆ PREV_PARAM

#define PREV_PARAM ( NAME,
... )
Value:
DIMENSIONAL_PARAM(prev, NAME, __VA_ARGS__ + 0_px)

◆ SELF_PARAM

#define SELF_PARAM ( NAME,
... )
Value:
DIMENSIONAL_PARAM(self, NAME, __VA_ARGS__ + 0_px)

◆ TO_STRING [1/2]

#define TO_STRING ( ...)
export
Value:
#__VA_ARGS__

Definition at line 12 of file configure_anchors.cppm.

◆ TO_STRING [2/2]

#define TO_STRING ( ...)
export
Value:
#__VA_ARGS__

Definition at line 12 of file configure_anchors.cppm.