2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Thumb.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::Controls::Primitives::Thumb definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
|
|
|
#ifndef _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_THUMB_
|
|
|
|
#define _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_THUMB_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#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
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents a control that can be dragged by the user.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class Thumb : public Control
|
|
|
|
{
|
|
|
|
protected:
|
2013-07-12 21:30:13 +02:00
|
|
|
void OnGotFocus(RoutedEventArgs * const e);
|
|
|
|
void OnLostFocus(RoutedEventArgs * const e);
|
|
|
|
void OnMouseEnter(MouseEventArgs * const e);
|
|
|
|
void OnMouseLeave(MouseEventArgs * const e);
|
|
|
|
void OnMouseMove(MouseEventArgs * const e);
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
ClickMode_t ClickMode;
|
|
|
|
|
|
|
|
Thumb();
|
|
|
|
|
|
|
|
void CancelDrag();
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator ==(const Thumb& right) const;
|
|
|
|
bool operator !=(const Thumb& right) const;
|
|
|
|
|
|
|
|
DragCompletedEventHandler DragCompleted;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-07-12 21:30:13 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_THUMB_
|