mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added TypeInfo for all relevant types Added comments Updated DependencyProperty to work with System::Type Fixed casing on PropertyMetadata
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
/*****************************************************************************
|
|
* RepeatButton.h *
|
|
* *
|
|
* System::Windows::Controls::Primitives::RepeatButton definition file *
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
*****************************************************************************/
|
|
#ifndef _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_REPEATBUTTON_
|
|
#define _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_REPEATBUTTON_
|
|
|
|
#include "ButtonBase.h"
|
|
#include <System/Windows/Input/KeyEventArgs.h>
|
|
#include <System/Windows/Input/MouseButtonEventArgs.h>
|
|
|
|
using namespace System::Windows::Input;
|
|
|
|
namespace System
|
|
{
|
|
namespace Windows
|
|
{
|
|
namespace Controls
|
|
{
|
|
namespace Primitives
|
|
{
|
|
/**
|
|
* Represents a control that raises its System::Windows::Controls::Primitives::ButtonBase::Click event repeatedly from the time it is pressed until it is released.
|
|
*/
|
|
class RepeatButton : public ButtonBase
|
|
{
|
|
protected:
|
|
void OnClick();
|
|
void OnKeyDown(KeyEventArgs * const e);
|
|
void OnKeyUp(KeyEventArgs * const e);
|
|
void OnLostMouseCapture(MouseEventArgs * const e);
|
|
void OnMouseEnter(MouseEventArgs * const e);
|
|
void OnMouseLeave(MouseEventArgs * const e);
|
|
void OnMouseLeftButtonDown(MouseButtonEventArgs * const e);
|
|
void OnMouseLeftButtonUp(MouseButtonEventArgs * const e);
|
|
|
|
public:
|
|
int Delay;
|
|
int Interval;
|
|
|
|
RepeatButton();
|
|
|
|
static const Type& GetType();
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_REPEATBUTTON_
|