gauge.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/osx/gauge.h
  3. // Purpose: wxGauge class
  4. // Author: Stefan Csomor
  5. // Modified by:
  6. // Created: 1998-01-01
  7. // Copyright: (c) Stefan Csomor
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_GAUGE_H_
  11. #define _WX_GAUGE_H_
  12. #include "wx/control.h"
  13. // Group box
  14. class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase
  15. {
  16. public:
  17. inline wxGauge() { }
  18. inline wxGauge(wxWindow *parent, wxWindowID id,
  19. int range,
  20. const wxPoint& pos = wxDefaultPosition,
  21. const wxSize& size = wxDefaultSize,
  22. long style = wxGA_HORIZONTAL,
  23. const wxValidator& validator = wxDefaultValidator,
  24. const wxString& name = wxGaugeNameStr)
  25. {
  26. Create(parent, id, range, pos, size, style, validator, name);
  27. }
  28. bool Create(wxWindow *parent, wxWindowID id,
  29. int range,
  30. const wxPoint& pos = wxDefaultPosition,
  31. const wxSize& size = wxDefaultSize,
  32. long style = wxGA_HORIZONTAL,
  33. const wxValidator& validator = wxDefaultValidator,
  34. const wxString& name = wxGaugeNameStr);
  35. // set gauge range/value
  36. virtual void SetRange(int range);
  37. virtual void SetValue(int pos);
  38. virtual int GetValue() const ;
  39. void Pulse();
  40. protected:
  41. DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
  42. };
  43. #endif
  44. // _WX_GAUGE_H_