mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
More clean up.
--HG-- branch : dev
This commit is contained in:
@@ -215,18 +215,21 @@ class EE_API Node : public Transformable {
|
||||
Node * find( const std::string& id ) const;
|
||||
|
||||
template<typename T>
|
||||
T * find( const std::string& id ) const
|
||||
{
|
||||
T * find( const std::string& id ) const {
|
||||
return reinterpret_cast<T*>( find( id ) );
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T * bind( const std::string& id, T*& ctrl )
|
||||
{
|
||||
T * bind( const std::string& id, T*& ctrl ) {
|
||||
ctrl = find<T>( id );
|
||||
return ctrl;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T * asType() {
|
||||
return reinterpret_cast<T*>(this);
|
||||
}
|
||||
|
||||
bool isReverseDraw() const;
|
||||
|
||||
void setReverseDraw( bool reverseDraw );
|
||||
|
||||
Reference in New Issue
Block a user