18 #include "pandabase.h" 21 #include "pgButtonNotify.h" 61 void setup(
const string &label, PN_stdfloat bevel = 0.1f);
62 INLINE
void setup(
const NodePath &ready);
75 INLINE
bool is_button_down();
77 INLINE
static string get_click_prefix();
78 INLINE
string get_click_event(
const ButtonHandle &button)
const;
82 Buttons _click_buttons;
90 static void init_type() {
92 register_type(_type_handle,
"PGButton",
93 PGItem::get_class_type());
96 return get_class_type();
98 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
105 #include "pgButton.I" A basic node of the scene graph or data graph.
This is the base class for all the various kinds of gui widget objects.
virtual void enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
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...
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.