14 #ifndef MOUSEWATCHERBASE_H 15 #define MOUSEWATCHERBASE_H 44 INLINE
void sort_regions();
45 INLINE
bool is_sorted()
const;
46 MAKE_PROPERTY(sorted, is_sorted);
48 size_t get_num_regions()
const;
50 MAKE_SEQ(get_regions, get_num_regions, get_region);
51 MAKE_SEQ_PROPERTY(regions, get_num_regions, get_region);
53 void output(std::ostream &out)
const;
54 void write(std::ostream &out,
int indent_level = 0)
const;
57 void show_regions(
const NodePath &render2d,
58 const std::string &bin_name,
int draw_order);
59 void set_color(
const LColor &color);
62 void update_regions();
66 void do_sort_regions();
70 virtual void do_show_regions(
const NodePath &render2d,
71 const std::string &bin_name,
int draw_order);
72 virtual void do_hide_regions();
73 void do_update_regions();
102 static void init_type() {
110 friend class BlobWatcher;
This TFormer maintains a list of rectangular regions on the screen that are considered special mouse ...
A basic node of the scene graph or data graph.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A specialization of ordered_vector that emulates a standard STL set: one copy of each element is allo...
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the class that defines a rectangular region on the screen for the MouseWatcher.
This represents a collection of MouseWatcherRegions that may be managed as a group.
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.
This is a standard, non-reentrant mutex, similar to the Mutex class.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...