23 #ifndef BAGEL_BAGLIB_BUTTON_OBJECT_H 24 #define BAGEL_BAGLIB_BUTTON_OBJECT_H 26 #include "bagel/baglib/sprite_object.h" 60 BUTTON_TYPE _buttonType;
66 BagFuncPtr _callbackFct;
73 ErrorCode attach()
override;
74 ErrorCode detach()
override;
76 BUTTON_TYPE getButtonType()
const {
85 bool runObject()
override;
88 void setCallBack(BagFuncPtr func,
void *funcInfo) {
90 _callbackInfo = funcInfo;
93 BagFuncPtr getCallBack()
override {
97 void *getCallBackInfo()
const {
101 bool runCallBack()
override {
103 _callbackFct((
int)getRefId(), _callbackInfo);
110 void onLButtonDown(uint32 ,
CBofPoint *point,
void *)
override;
111 void onLButtonUp(uint32 flags,
CBofPoint *point,
void *extraInfo)
override;
112 bool onMouseMove(uint32 ,
CBofPoint point,
void *extraInfo)
override;
116 void setSize(
const CBofSize &size)
override;
118 void setProperty(
const CBofString &prop,
int val)
override;
119 int getProperty(
const CBofString &prop)
override;
Definition: ifstream.h:31
Definition: sprite_object.h:34