3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
_tcallback< ret > Class Template Reference

The functional callback that uses std::function to handle all messages in 3D-Coat. More...

#include <SimpleWidgets.h>

Public Member Functions

virtual bool equals (WBaseCallback *other)
 pointers to functions are same More...
 
virtual bool equals_strictly (WBaseCallback *other)
 pointers and arguments are same More...
 
virtual bool same_hash (DWORD)
 callback points to that function More...
 
template<typename tp >
bool raw ()
 basic template to trigger callback action. Used if ret is not bool or void. More...
 
template<>
bool raw ()
 callback specialization for bool More...
 
template<>
bool raw ()
 callback specialization for void More...
 
virtual bool call ()
 Trigegr callback action. Returns true if message captured and you don't need to call same type callbacks. More...
 

Public Attributes

DWORD PtrHashValue
 depends only on function pointer More...
 
DWORD FullHashValue
 depends on pointer and all arguments More...
 

Detailed Description

template<class ret>
class _tcallback< ret >

The functional callback that uses std::function to handle all messages in 3D-Coat.

Template Parameters
retIt may be bool or void.

Inherits WBaseCallback.

Member Function Documentation

template<class ret>
virtual bool _tcallback< ret >::call ( )
inlinevirtual

Trigegr callback action. Returns true if message captured and you don't need to call same type callbacks.

check dependence - call it only if child widget Dep is still live, not destroyed.

trigger only if hotkey pressed

trigger the action.

template<class ret >
bool _tcallback< ret >::equals ( WBaseCallback *  other)
inlinevirtual

pointers to functions are same

References _tcallback< ret >::PtrHashValue.

template<class ret >
bool _tcallback< ret >::equals_strictly ( WBaseCallback *  other)
inlinevirtual

pointers and arguments are same

References _tcallback< ret >::FullHashValue.

template<class ret>
template<typename tp >
bool _tcallback< ret >::raw ( )
inline

basic template to trigger callback action. Used if ret is not bool or void.

template<class ret>
template<>
bool _tcallback< ret >::raw ( )
inline

callback specialization for bool

template<class ret>
template<>
bool _tcallback< ret >::raw ( )
inline

callback specialization for void

template<class ret >
bool _tcallback< ret >::same_hash ( DWORD  d)
virtual

callback points to that function

Member Data Documentation

template<class ret>
DWORD _tcallback< ret >::FullHashValue

depends on pointer and all arguments

Referenced by _tcallback< ret >::equals_strictly().

template<class ret>
DWORD _tcallback< ret >::PtrHashValue

depends only on function pointer

Referenced by _tcallback< ret >::equals().


The documentation for this class was generated from the following file: