neoGFX
Cross-platform C++ app/game engine
|
#include <property.hpp>
Classes | |
struct | invalid_type |
class | optional_proxy |
Public Types | |
typedef T | value_type |
typedef Context | context_type |
typedef property_transition< T, Category, Context, Calculator > | transition_type |
typedef Category | category_type |
typedef Calculator | calculator_function_type |
Public Types inherited from neogfx::i_property | |
typedef i_property | abstract_type |
Public Types inherited from neolib::lifetime< Base > | |
typedef neolib::destroyed_flag | destroyed_flag |
Public Member Functions | |
define_declared_event (PropertyChanged, property_changed, const property_variant &) define_declared_event(PropertyChangedFromTo | |
const property_variant const property_variant & | define_event (Changed, changed, value_type const &) define_event(ChangedFromTo |
property (i_property_owner &aOwner, std::string const &aName) | |
property (i_property_owner &aOwner, std::string const &aName, calculator_function_type aCalculator) | |
property (i_property_owner &aOwner, std::string const &aName, const T &aValue) | |
property (i_property_owner &aOwner, std::string const &aName, calculator_function_type aCalculator, const T &aValue) | |
property_variant | get (const i_property &aProperty) const final |
i_property_owner & | owner () const final |
const string & | name () const final |
const std::type_info & | type () const final |
const std::type_info & | category () const final |
bool | optional () const final |
property_variant | get_as_variant () const final |
void | set_from_variant (const property_variant &aValue) final |
bool | read_only () const final |
void | set_read_only (bool aReadOnly) final |
bool | transition_set () const final |
transition_type & | transition () const final |
void | set_transition (i_animator &aAnimator, easing aEasingFunction, double aDuration, bool aEnabled=true) final |
void | clear_transition () final |
bool | transition_suppressed () const final |
void | suppress_transition (bool aSuppress) final |
bool | has_delegate () const final |
i_property_delegate const & | delegate () const final |
i_property_delegate & | delegate () final |
void | set_delegate (i_property_delegate &aDelegate) final |
void | unset_delegate () final |
value_type const & | value () const |
value_type const & | effective_value () const |
template<typename T2 > | |
self_type & | assign (T2 &&aValue, bool aOwnerNotify=true, bool aDiscardPreviousValue=false) |
template<typename T2 > | |
self_type & | operator= (T2 &&aValue) |
operator value_type const & () const | |
template<typename SFINAE = optional_proxy<const self_type>> | |
const std::enable_if< neolib::is_optional_v< T >, SFINAE >::type | operator* () const |
template<typename SFINAE = optional_proxy<self_type>> | |
std::enable_if< neolib::is_optional_v< T >, SFINAE >::type | operator* () |
template<typename SFINAE = optional_proxy<const self_type>> | |
const std::enable_if< neolib::is_optional_v< T >, SFINAE >::type | operator-> () const |
template<typename SFINAE = optional_proxy<self_type>> | |
std::enable_if< neolib::is_optional_v< T >, SFINAE >::type | operator-> () |
template<typename T > | |
bool | operator== (const T &aRhs) const |
template<typename T > | |
bool | operator!= (const T &aRhs) const |
template<typename T > | |
bool | operator== (const neolib::optional< T > &aRhs) const |
template<typename T > | |
bool | operator!= (const neolib::optional< T > &aRhs) const |
Public Member Functions inherited from neogfx::i_property | |
declare_event (property_changed, const property_variant &) declare_event(property_changed_from_to | |
virtual | ~i_property ()=default |
template<typename T > | |
const T & | get () const |
template<typename T > | |
T & | get () |
template<typename Context , typename Callable , typename... Args> | |
auto | calculate (Args &&... aArgs) const |
Public Member Functions inherited from neogfx::i_property_delegate | |
virtual | ~i_property_delegate ()=default |
Public Member Functions inherited from neolib::lifetime< Base > | |
lifetime (lifetime_state aState=lifetime_state::Alive) | |
virtual | ~lifetime () |
lifetime_state | object_state () const final |
std::shared_ptr< std::atomic< lifetime_state > > | object_state_ptr () const final |
bool | is_creating () const final |
bool | is_alive () const final |
bool | is_destroying () const final |
bool | is_destroyed () const final |
void | set_alive () override |
void | set_destroying () override |
void | set_destroyed () override |
Public Member Functions inherited from neolib::i_lifetime | |
virtual | ~i_lifetime ()=default |
Public Attributes | |
property_changed_from_to | |
const property_variant const property_variant | changed_from_to |
Protected Member Functions | |
const void * | data () const final |
void * | data () final |
void *const * | calculator_function () const final |
Friends | |
template<typename , typename , class , typename > | |
class | property_transition |
Definition at line 134 of file property.hpp.
typedef Calculator neogfx::property< T, Category, Context, Calculator >::calculator_function_type |
Definition at line 152 of file property.hpp.
typedef Category neogfx::property< T, Category, Context, Calculator >::category_type |
Definition at line 151 of file property.hpp.
typedef Context neogfx::property< T, Category, Context, Calculator >::context_type |
Definition at line 141 of file property.hpp.
typedef property_transition<T, Category, Context, Calculator> neogfx::property< T, Category, Context, Calculator >::transition_type |
Definition at line 142 of file property.hpp.
typedef T neogfx::property< T, Category, Context, Calculator >::value_type |
Definition at line 140 of file property.hpp.
|
inline |
Definition at line 184 of file property.hpp.
|
inline |
Definition at line 188 of file property.hpp.
|
inline |
Definition at line 192 of file property.hpp.
|
inline |
Definition at line 196 of file property.hpp.
|
inline |
Definition at line 351 of file property.hpp.
|
inlinefinalprotectedvirtual |
Implements neogfx::i_property.
Definition at line 434 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 219 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 271 of file property.hpp.
|
inlinefinalprotectedvirtual |
Implements neogfx::i_property.
Definition at line 420 of file property.hpp.
|
inlinefinalprotectedvirtual |
Implements neogfx::i_property.
Definition at line 427 of file property.hpp.
neogfx::property< T, Category, Context, Calculator >::define_declared_event | ( | PropertyChanged | , |
property_changed | , | ||
const property_variant & | |||
) |
const property_variant const property_variant & neogfx::property< T, Category, Context, Calculator >::define_event | ( | Changed | , |
changed | , | ||
value_type const & | |||
) |
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 292 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 298 of file property.hpp.
|
inline |
Definition at line 343 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property_delegate.
Definition at line 201 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 227 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 288 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 211 of file property.hpp.
|
inline |
Definition at line 375 of file property.hpp.
|
inline |
Definition at line 415 of file property.hpp.
|
inline |
Definition at line 405 of file property.hpp.
|
inline |
Definition at line 385 of file property.hpp.
|
inline |
Definition at line 380 of file property.hpp.
|
inline |
Definition at line 395 of file property.hpp.
|
inline |
Definition at line 390 of file property.hpp.
|
inline |
Definition at line 371 of file property.hpp.
|
inline |
Definition at line 410 of file property.hpp.
|
inline |
Definition at line 400 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 223 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 206 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 249 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 302 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 239 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 253 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 267 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 279 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 261 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 257 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 275 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 215 of file property.hpp.
|
inlinefinalvirtual |
Implements neogfx::i_property.
Definition at line 306 of file property.hpp.
|
inline |
Definition at line 311 of file property.hpp.
|
friend |
Definition at line 138 of file property.hpp.
const property_variant const property_variant neogfx::property< T, Category, Context, Calculator >::changed_from_to |
Definition at line 147 of file property.hpp.
neogfx::property< T, Category, Context, Calculator >::property_changed_from_to |
Definition at line 145 of file property.hpp.