14#ifndef PYTHONGRAPHICSWINDOWPROC_H
15#define PYTHONGRAPHICSWINDOWPROC_H
28 public PythonCallbackObject {
30 PythonGraphicsWindowProc(PyObject *function, PyObject* name);
31 virtual ~PythonGraphicsWindowProc();
32 ALLOC_DELETED_CHAIN(PythonGraphicsWindowProc);
35 virtual LONG wnd_proc(GraphicsWindow* graphicsWindow, HWND hwnd,
36 UINT msg, WPARAM wparam, LPARAM lparam);
45 static TypeHandle get_class_type() {
48 static void init_type() {
49 TypedReferenceCount::init_type();
51 TypedReferenceCount::get_class_type());
53 virtual TypeHandle get_type()
const {
54 return get_class_type();
56 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
59 static TypeHandle _type_handle;
Defines an interface for storing platform-specific window processor methods.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...