Simple GUI Library
anchor_pane.cpp File Reference
Include dependency graph for anchor_pane.cpp:

Go to the source code of this file.

Macros

#define CONSTRAINTS_SET(property, value)
 
#define CONSTRAINTS_GET(property, defaultValue)
 

Detailed Description

Author
Nikita Mochalov (github.com/tralf-strues)
Date
2021-12-01

Definition in file anchor_pane.cpp.

Macro Definition Documentation

◆ CONSTRAINTS_GET

#define CONSTRAINTS_GET (   property,
  defaultValue 
)
Value:
assert(child); \
auto constraints = m_Constraints.find(child); \
return (constraints != m_Constraints.end()) ? (*constraints).second.property : \
defaultValue;

Definition at line 26 of file anchor_pane.cpp.

◆ CONSTRAINTS_SET

#define CONSTRAINTS_SET (   property,
  value 
)
Value:
assert(child); \
auto constraints = m_Constraints.find(child); \
if (constraints != m_Constraints.end()) \
{ \
(*constraints).second.property = value; \
} \
else \
{ \
m_Constraints[child] = Constraints{}; \
m_Constraints[child].property = value; \
}

Definition at line 13 of file anchor_pane.cpp.