31 explicit PGButton(
const std::string &name);
58 void setup(
const std::string &label, PN_stdfloat bevel = 0.1f);
59 INLINE
void setup(
const NodePath &ready);
72 INLINE
bool is_button_down();
74 INLINE
static std::string get_click_prefix();
75 INLINE std::string get_click_event(
const ButtonHandle &button)
const;
76 MAKE_PROPERTY(click_prefix, get_click_prefix);
88 static void init_type() {
91 PGItem::get_class_type());
94 return get_class_type();
96 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This is the base class for all the various kinds of gui widget objects.
void set_notify(PGItemNotify *notify)
Sets the object which will be notified when the PGItem changes.
virtual void press(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
PGItemNotify * get_notify() const
Returns the object which will be notified when the PGItem changes, if any.
virtual void release(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void exit_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse exits the region.
virtual void enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
virtual void set_active(bool active)
Sets whether the PGItem is active for mouse watching.
A basic node of the scene graph or data graph.
TypeHandle is the identifier used to differentiate C++ class types.
This is our own Panda specialization on the default STL set.
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(),...