14#ifndef MOUSESUBREGION_H
15#define MOUSESUBREGION_H
33class EXPCL_PANDA_TFORM MouseSubregion :
public MouseInterfaceNode {
35 explicit MouseSubregion(
const std::string &name);
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;
72 PT(EventStoreVec2) _pixel_xy;
73 PT(EventStoreVec2) _pixel_size;
74 PT(EventStoreVec2) _xy;
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();}
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...
Encapsulates the data generated from (or sent into) any particular DataNode.
PN_stdfloat get_right() const
Retrieves the x coordinate of the right edge of the rectangle within the window.
PN_stdfloat get_left() const
Retrieves the x coordinate of the left edge of the rectangle within the window.
void set_dimensions(PN_stdfloat l, PN_stdfloat r, PN_stdfloat b, PN_stdfloat t)
Changes the region of the window in which the mouse is considered to be active.
PN_stdfloat get_bottom() const
Retrieves the y coordinate of the bottom edge of the rectangle within the window.
PN_stdfloat get_top() const
Retrieves the y coordinate of the top edge of the rectangle within the window.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...