Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
716 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MXBITMAPBUTTON_H
  8. #define MXBITMAPBUTTON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <mxtk/mx.h>
  13. #include "mxBitmapTools.h"
  14. class mxBitmapButton : public mxWindow
  15. {
  16. public:
  17. mxBitmapButton( mxWindow *parent, int x, int y, int w, int h, int id = 0, const char *bitmap = 0 );
  18. ~mxBitmapButton( void );
  19. virtual void redraw();
  20. virtual int handleEvent( mxEvent * event );
  21. void SetImage( const char *bitmapname );
  22. private:
  23. void DeleteImage( void );
  24. mxbitmapdata_t m_bmImage;
  25. };
  26. #endif // MXBITMAPBUTTON_H