MouseWatcherBase
from panda3d.core import MouseWatcherBase
- class MouseWatcherBase
Bases:
DTOOL_SUPER_BASE
This represents a collection of MouseWatcherRegions that may be managed as a group. This is the base class for both MouseWatcherGroup and MouseWatcher, and exists so that we don’t have to make MouseWatcher inherit from ReferenceCount more than once.
Inheritance diagram
- __init__(*args, **kwargs)
- addRegion()
C++ Interface: add_region(const MouseWatcherBase self, MouseWatcherRegion region)
- /**
Adds the indicated region to the set of regions in the group. It is no
longer an error to call this for the same region more than once.
*/
- add_region()
C++ Interface: add_region(const MouseWatcherBase self, MouseWatcherRegion region)
- /**
Adds the indicated region to the set of regions in the group. It is no
longer an error to call this for the same region more than once.
*/
- clearRegions()
C++ Interface: clear_regions(const MouseWatcherBase self)
- /**
Removes all the regions from the group.
*/
- clear_regions()
C++ Interface: clear_regions(const MouseWatcherBase self)
- /**
Removes all the regions from the group.
*/
- findRegion()
C++ Interface: find_region(MouseWatcherBase self, str name)
- /**
Returns a pointer to the first region found with the indicated name. If
multiple regions share the same name, the one that is returned is
indeterminate.
*/
- find_region()
C++ Interface: find_region(MouseWatcherBase self, str name)
- /**
Returns a pointer to the first region found with the indicated name. If
multiple regions share the same name, the one that is returned is
indeterminate.
*/
- getClassType()
C++ Interface: get_class_type()
- getNumRegions()
C++ Interface: get_num_regions(MouseWatcherBase self)
- /**
Returns the number of regions in the group.
*/
- getRegion()
C++ Interface: get_region(MouseWatcherBase self, int n)
- /**
Returns the nth region of the group; returns NULL if there is no nth
region. Note that this is not thread-safe; another thread might have
removed the nth region before you called this method.
*/
- getRegions()
- get_class_type()
C++ Interface: get_class_type()
- get_num_regions()
C++ Interface: get_num_regions(MouseWatcherBase self)
- /**
Returns the number of regions in the group.
*/
- get_region()
C++ Interface: get_region(MouseWatcherBase self, int n)
- /**
Returns the nth region of the group; returns NULL if there is no nth
region. Note that this is not thread-safe; another thread might have
removed the nth region before you called this method.
*/
- get_regions()
- hasRegion()
C++ Interface: has_region(MouseWatcherBase self, MouseWatcherRegion region)
- /**
Returns true if the indicated region has already been added to the
MouseWatcherBase, false otherwise.
*/
- has_region()
C++ Interface: has_region(MouseWatcherBase self, MouseWatcherRegion region)
- /**
Returns true if the indicated region has already been added to the
MouseWatcherBase, false otherwise.
*/
- hideRegions()
C++ Interface: hide_regions(const MouseWatcherBase self)
- /**
Stops the visualization created by a previous call to show_regions().
*/
- hide_regions()
C++ Interface: hide_regions(const MouseWatcherBase self)
- /**
Stops the visualization created by a previous call to show_regions().
*/
- isSorted()
C++ Interface: is_sorted(MouseWatcherBase self)
- /**
Returns true if the group has already been sorted, false otherwise.
*/
- is_sorted()
C++ Interface: is_sorted(MouseWatcherBase self)
- /**
Returns true if the group has already been sorted, false otherwise.
*/
- regions
- removeRegion()
C++ Interface: remove_region(const MouseWatcherBase self, MouseWatcherRegion region)
- /**
Removes the indicated region from the group. Returns true if it was
successfully removed, or false if it wasn’t there in the first place.
*/
- remove_region()
C++ Interface: remove_region(const MouseWatcherBase self, MouseWatcherRegion region)
- /**
Removes the indicated region from the group. Returns true if it was
successfully removed, or false if it wasn’t there in the first place.
*/
- setColor()
C++ Interface: set_color(const MouseWatcherBase self, const LVecBase4f color)
- /**
Specifies the color used to draw the region rectangles for the regions
visualized by show_regions().
*/
- set_color()
C++ Interface: set_color(const MouseWatcherBase self, const LVecBase4f color)
- /**
Specifies the color used to draw the region rectangles for the regions
visualized by show_regions().
*/
- showRegions()
C++ Interface: show_regions(const MouseWatcherBase self, const NodePath render2d, str bin_name, int draw_order)
- /**
Enables the visualization of all of the regions handled by this
MouseWatcherBase. The supplied NodePath should be the root of the 2-d
scene graph for the window.
*/
- show_regions()
C++ Interface: show_regions(const MouseWatcherBase self, const NodePath render2d, str bin_name, int draw_order)
- /**
Enables the visualization of all of the regions handled by this
MouseWatcherBase. The supplied NodePath should be the root of the 2-d
scene graph for the window.
*/
- sortRegions()
C++ Interface: sort_regions(const MouseWatcherBase self)
- /**
Sorts all the regions in this group into pointer order.
*/
- sort_regions()
C++ Interface: sort_regions(const MouseWatcherBase self)
- /**
Sorts all the regions in this group into pointer order.
*/
- sorted
- updateRegions()
C++ Interface: update_regions(const MouseWatcherBase self)
- /**
Refreshes the visualization created by show_regions().
*/