From 2b5d5fb9e63d3b90e6a43fa7a74bac7b907b15d8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 1 Oct 2009 00:48:48 +0000 Subject: [PATCH] interrogate objections --- panda/src/display/nativeWindowHandle.cxx | 1 + panda/src/display/nativeWindowHandle.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/panda/src/display/nativeWindowHandle.cxx b/panda/src/display/nativeWindowHandle.cxx index ce0e08c800..b39f2e569a 100644 --- a/panda/src/display/nativeWindowHandle.cxx +++ b/panda/src/display/nativeWindowHandle.cxx @@ -14,6 +14,7 @@ #include "nativeWindowHandle.h" +TypeHandle NativeWindowHandle::_type_handle; TypeHandle NativeWindowHandle::IntHandle::_type_handle; TypeHandle NativeWindowHandle::SubprocessHandle::_type_handle; diff --git a/panda/src/display/nativeWindowHandle.h b/panda/src/display/nativeWindowHandle.h index dec4c8c1f2..c81c210024 100644 --- a/panda/src/display/nativeWindowHandle.h +++ b/panda/src/display/nativeWindowHandle.h @@ -180,7 +180,14 @@ public: #endif // WIN32 public: + static TypeHandle get_class_type() { + return _type_handle; + } static void init_type() { + WindowHandle::init_type(); + register_type(_type_handle, "NativeWindowHandle", + WindowHandle::get_class_type()); + IntHandle::init_type(); SubprocessHandle::init_type(); #if defined(HAVE_X11) && !defined(CPPPARSER) @@ -190,7 +197,13 @@ public: WinHandle::init_type(); #endif } + virtual TypeHandle get_type() const { + return get_class_type(); + } + virtual TypeHandle force_init_type() {init_type(); return get_class_type();} +private: + static TypeHandle _type_handle; }; #include "nativeWindowHandle.I"