14 #ifndef MOUSESUBREGION_H 15 #define MOUSESUBREGION_H 38 INLINE PN_stdfloat get_left()
const;
39 INLINE PN_stdfloat get_right()
const;
40 INLINE PN_stdfloat get_bottom()
const;
41 INLINE PN_stdfloat get_top()
const;
42 INLINE
void set_dimensions(PN_stdfloat l, PN_stdfloat r, PN_stdfloat b, PN_stdfloat t);
56 PN_stdfloat _minx, _miny;
57 PN_stdfloat _scalex, _scaley;
62 int _pixel_size_input;
64 int _button_events_input;
68 int _pixel_size_output;
70 int _button_events_output;
81 static void init_type() {
82 MouseInterfaceNode::init_type();
84 MouseInterfaceNode::get_class_type());
87 return get_class_type();
89 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The MouseSubregion object scales the mouse inputs from within a rectangular region of the screen,...
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for some classes that monitor the mouse and keyboard input and perform some ac...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Encapsulates the data generated from (or sent into) any particular DataNode.
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...