]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/gauge.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxGauge class 
   8 // Copyright:   (c) AUTHOR 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  13 #pragma implementation "gauge.h" 
  18 IMPLEMENT_DYNAMIC_CLASS(wxGauge
, wxControl
) 
  20 bool wxGauge::Create(wxWindow 
*parent
, wxWindowID id
, 
  25            const wxValidator
& validator
, 
  29     SetValidator(validator
); 
  31     m_windowStyle 
= style
; 
  33     if (parent
) parent
->AddChild(this); 
  36             m_windowId 
= (int)NewControlId(); 
  45 void wxGauge::SetSize(int x
, int y
, int width
, int height
, int sizeFlags
) 
  50 void wxGauge::SetShadowWidth(int w
) 
  55 void wxGauge::SetBezelFace(int w
) 
  60 void wxGauge::SetRange(int r
) 
  66 void wxGauge::SetValue(int pos
) 
  72 int wxGauge::GetShadowWidth() const 
  78 int wxGauge::GetBezelFace() const 
  84 int wxGauge::GetRange() const 
  89 int wxGauge::GetValue() const 
  94 void wxGauge::SetForegroundColour(const wxColour
& col
) 
  96     m_foregroundColour 
= col 
; 
  99 void wxGauge::SetBackgroundColour(const wxColour
& col
) 
 101     m_backgroundColour 
= col 
;