15 #ifndef MOUSEWATCHERREGION_H 16 #define MOUSEWATCHERREGION_H 18 #include "pandabase.h" 21 #include "typedWritableReferenceCount.h" 23 #include "buttonHandle.h" 24 #include "modifierButtons.h" 36 PN_stdfloat bottom, PN_stdfloat top);
37 INLINE MouseWatcherRegion(
const string &name,
const LVecBase4 &frame);
39 INLINE
void set_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top);
40 INLINE
void set_frame(
const LVecBase4 &frame);
41 INLINE
const LVecBase4 &get_frame()
const;
42 INLINE PN_stdfloat get_area()
const;
44 INLINE
void set_sort(
int sort);
45 INLINE
int get_sort()
const;
47 INLINE
void set_active(
bool active);
48 INLINE
bool get_active()
const;
50 INLINE
void set_keyboard(
bool keyboard);
51 INLINE
bool get_keyboard()
const;
54 SF_mouse_button = 0x001,
55 SF_other_button = 0x002,
56 SF_any_button = 0x003,
57 SF_mouse_position = 0x004,
60 INLINE
void set_suppress_flags(
int suppress_flags);
61 INLINE
int get_suppress_flags()
const;
63 void output(ostream &out)
const;
64 void write(ostream &out,
int indent_level = 0)
const;
67 INLINE
bool operator < (
const MouseWatcherRegion &other)
const;
87 F_suppress_flags = 0x0ff,
97 static void init_type() {
98 TypedWritableReferenceCount::init_type();
100 register_type(_type_handle,
"MouseWatcherRegion",
101 TypedWritableReferenceCount::get_class_type(),
102 Namable::get_class_type());
105 return get_class_type();
107 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
118 #include "mouseWatcherRegion.I" void output(ostream &out) const
Outputs the Namable.
A base class for all things which can have a name.
This is the class that defines a rectangular region on the screen for the MouseWatcher.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
This is the base class for all three-component vectors and points.
TypeHandle is the identifier used to differentiate C++ class types.
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...