2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* RangeBase.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::Controls::Primitives::RangeBase definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_RANGEBASE_
|
|
|
|
#define _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_RANGEBASE_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Windows/Controls/Control.h>
|
|
|
|
#include <System/Windows/RoutedPropertyChangedEventArgs.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
namespace Controls
|
|
|
|
{
|
|
|
|
namespace Primitives
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents an element that has a value within a specific range, such as the System::Windows::Controls::ProgressBar, System::Windows::Controls::Primitives::ScrollBar, and System::Windows::Controls::Slider controls.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class RangeBase : public Control
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
int maximum;
|
|
|
|
int minimum;
|
|
|
|
int value;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
RangeBase();
|
|
|
|
|
|
|
|
virtual void OnMaximumChanged(const int oldValue, int newValue);
|
|
|
|
virtual void OnMinimumChanged(const int oldValue, int newValue);
|
|
|
|
virtual void OnValueChanged(const int oldValue, int newValue);
|
|
|
|
|
|
|
|
public:
|
|
|
|
int getMaximum() const;
|
|
|
|
void setMaximum(const int value);
|
|
|
|
int getMinimum() const;
|
|
|
|
void setMinimum(const int value);
|
|
|
|
int LargeChange;
|
|
|
|
int SmallChange;
|
|
|
|
int getValue() const;
|
|
|
|
void setValue(const int value);
|
|
|
|
|
|
|
|
virtual ~RangeBase();
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
2013-06-02 14:32:43 +02:00
|
|
|
Event<Object * const, RoutedPropertyChangedEventArgs<int> * const> ValueChanged;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator ==(const RangeBase& right) const;
|
|
|
|
bool operator !=(const RangeBase& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_RANGEBASE_
|