oops
This commit is contained in:
parent
5899817d74
commit
290d641b7b
|
|
@ -17,9 +17,10 @@ protected:
|
|||
PUBLISHED:
|
||||
class EXPCL_PANDA BehaviorFunctor {
|
||||
public:
|
||||
virtual void doit(GuiBehavior*) = 0;
|
||||
PUBLISHED:
|
||||
BehaviorFunctor(void);
|
||||
virtual ~BehaviorFunctor(void);
|
||||
virtual void doit(GuiBehavior*) = 0;
|
||||
};
|
||||
PUBLISHED:
|
||||
GuiBehavior(const string&);
|
||||
|
|
|
|||
|
|
@ -234,6 +234,15 @@ GuiButton::get_behavior_functor(void) const {
|
|||
return _behavior_functor;
|
||||
}
|
||||
|
||||
INLINE void GuiButton::set_rollover_functor(GuiBehavior::BehaviorFunctor* f) {
|
||||
_rollover_functor = f;
|
||||
}
|
||||
|
||||
INLINE GuiBehavior::BehaviorFunctor*
|
||||
GuiButton::get_rollover_functor(void) const {
|
||||
return _rollover_functor;
|
||||
}
|
||||
|
||||
INLINE void GuiButton::set_behavior_event_parameter(int p) {
|
||||
this->_have_event_param = true;
|
||||
this->_event_param = p;
|
||||
|
|
|
|||
Loading…
Reference in New Issue