Go to the source code of this file.
- Author
- Nikita Mochalov (github.com/tralf-strues)
- Date
- 2021-12-01
- Copyright
- Copyright (c) 2021
Definition in file anchor_pane.cpp.
◆ 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.