mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added implicit conversion to base types to all primary types (UInt32 et al) Added implicit conversion from System::String to const char*
41 lines
958 B
C++
41 lines
958 B
C++
#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* e);
|
|
void OnKeyUp(KeyEventArgs* e);
|
|
void OnLostMouseCapture(MouseEventArgs* e);
|
|
void OnMouseEnter(MouseEventArgs* e);
|
|
void OnMouseLeave(MouseEventArgs* e);
|
|
void OnMouseLeftButtonDown(MouseButtonEventArgs* e);
|
|
void OnMouseLeftButtonUp(MouseButtonEventArgs* e);
|
|
|
|
public:
|
|
int Delay;
|
|
int Interval;
|
|
|
|
RepeatButton();
|
|
|
|
int GetType() const;
|
|
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|