neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
anchor.hpp File Reference

Go to the source code of this file.

Classes

class  neogfx::anchor< T, PVT, Context, C, CalculatorArgs >
 

Namespaces

namespace  neogfx
 
namespace  neogfx::detail
 

Macros

#define define_anchor(name)   neogfx::anchor_t<property_context_type, typename decltype(name)::value_type, typename decltype(name)::calculator_function_type> Anchor_##name = { *this, name };
 
#define define_anchor_ex(name, calculator_override)   neogfx::anchor_t<property_context_type, typename decltype(name)::value_type, typename decltype(name)::calculator_function_type> Anchor_##name = { *this, name, &property_context_type::##calculator_override };
 

Typedefs

template<typename Context , typename PVT , typename Callable >
using neogfx::anchor_t = typename detail::anchor_callable_function_cracker< anchor, Context, PVT, Callable >::type
 

Macro Definition Documentation

◆ define_anchor

#define define_anchor (   name)    neogfx::anchor_t<property_context_type, typename decltype(name)::value_type, typename decltype(name)::calculator_function_type> Anchor_##name = { *this, name };

Definition at line 232 of file anchor.hpp.

◆ define_anchor_ex

#define define_anchor_ex (   name,
  calculator_override 
)    neogfx::anchor_t<property_context_type, typename decltype(name)::value_type, typename decltype(name)::calculator_function_type> Anchor_##name = { *this, name, &property_context_type::##calculator_override };

Definition at line 233 of file anchor.hpp.