00001 00015 #ifndef INC_MGUI_CTRLPOPUPBUTTON 00016 #define INC_MGUI_CTRLPOPUPBUTTON 00017 00018 #ifndef INC_MGUI_CTRL_H 00019 #include <mgui/ctrl.h> 00020 #endif 00021 00022 namespace MGUI { 00023 00024 //===================================================================================================================== 00026 class CTRL_POPUPBUTTON : public CTRL_PUSHBUTTON { 00027 public: 00028 00030 CTRL_POPUPBUTTON (); 00031 00033 virtual ~CTRL_POPUPBUTTON (); 00034 00036 void SetDelegateOnPopupClose ( 00037 DELEGATE_VOID_NOPARMS delegate 00038 ) { m_DelegateOnPopupClose = delegate; } 00039 00041 void SetDelegateOnPopupOpen ( 00042 DELEGATE_VOID_NOPARMS delegate 00043 ) { m_DelegateOnPopupOpen = delegate; } 00044 00045 private: 00046 #ifndef GENERATING_DOXYGEN_OUTPUT 00047 00048 DELEGATE_VOID_NOPARMS m_DelegateOnPopupOpen; 00049 DELEGATE_VOID_NOPARMS m_DelegateOnPopupClose; 00050 00051 virtual void OnPressed (); 00052 00053 #endif // GENERATING_DOXYGEN_OUTPUT 00054 00056 virtual ERRVALUE v_OpenPopup () = 0; 00057 }; 00058 00059 //===================================================================================================================== 00060 00061 } // End namespace MGUI 00062 00063 #endif // INC_MGUI_CTRLPOPUPBUTTON
1.6.1