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;
56#if !defined(NDEBUG) || !defined(CPPPARSER)
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();
98 bool _show_regions_disabled =
false;
99 NodePath _show_regions_root_disabled;
100 LColor _color_disabled;
107 static void init_type() {
115 friend class BlobWatcher;
This is a standard, non-reentrant mutex, similar to the Mutex class.
This represents a collection of MouseWatcherRegions that may be managed as a group.
This is the class that defines a rectangular region on the screen for the MouseWatcher.
This TFormer maintains a list of rectangular regions on the screen that are considered special mouse ...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A basic node of the scene graph or data graph.
TypeHandle is the identifier used to differentiate C++ class types.
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.
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.
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(),...