2013-05-05 18:18:41 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <System/Windows/Controls/Control.h>
|
|
|
|
#include <System/Windows/Controls/Enums.h>
|
|
|
|
#include <System/Windows/Controls/Primitives/DragCompletedEventArgs.h>
|
|
|
|
#include <System/Windows/Controls/Primitives/DragDeltaEventArgs.h>
|
|
|
|
#include <System/Windows/Controls/Primitives/DragStartedEventArgs.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
namespace Controls
|
|
|
|
{
|
|
|
|
namespace Primitives
|
|
|
|
{
|
|
|
|
// Represents a control that can be dragged by the user.
|
|
|
|
class Thumb : public Control
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
void OnGotFocus(RoutedEventArgs* e);
|
|
|
|
void OnLostFocus(RoutedEventArgs* e);
|
|
|
|
void OnMouseEnter(MouseEventArgs* e);
|
|
|
|
void OnMouseLeave(MouseEventArgs* e);
|
|
|
|
void OnMouseMove(MouseEventArgs* e);
|
|
|
|
|
|
|
|
public:
|
|
|
|
ClickMode_t ClickMode;
|
|
|
|
|
|
|
|
Thumb();
|
|
|
|
|
|
|
|
void CancelDrag();
|
2013-07-11 17:25:49 +02:00
|
|
|
static int GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator ==(const Thumb& right) const;
|
|
|
|
bool operator !=(const Thumb& right) const;
|
|
|
|
|
|
|
|
DragCompletedEventHandler DragCompleted;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|