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();}
A basic node of the scene graph or data graph.
This is the base class for all the various kinds of gui widget objects.
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.
virtual void enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void exit_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse exits the region.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
virtual void set_active(bool active)
Sets whether the PGItem is active for mouse watching.
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...
void set_notify(PGItemNotify *notify)
Sets the object which will be notified when the PGItem changes.