14 #ifndef WINDOWHANDLE_H 15 #define WINDOWHANDLE_H 42 INLINE
OSHandle *get_os_handle()
const;
43 INLINE
void set_os_handle(
OSHandle *os_handle);
44 MAKE_PROPERTY(os_handle, get_os_handle, set_os_handle);
46 void send_windows_message(
unsigned int msg,
int wparam,
int lparam);
48 size_t get_int_handle()
const;
50 void output(std::ostream &out)
const;
57 virtual void request_keyboard_focus(
WindowHandle *child);
58 virtual void receive_windows_message(
unsigned int msg,
int wparam,
int lparam);
69 virtual size_t get_int_handle()
const;
70 virtual void output(std::ostream &out)
const;
76 static void init_type() {
77 TypedReferenceCount::init_type();
79 TypedReferenceCount::get_class_type());
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
99 static void init_type() {
100 TypedReferenceCount::init_type();
102 TypedReferenceCount::get_class_type());
105 return get_class_type();
107 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
115 INLINE std::ostream &operator << (std::ostream &out,
const WindowHandle &handle) {
This object represents a window on the desktop, not necessarily a Panda window.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.