18 lines
260 B
C++
18 lines
260 B
C++
#pragma once
|
|
|
|
class Button
|
|
{
|
|
public:
|
|
Button();
|
|
Button(int left, int top, int resourceNormal, int resourceHover);
|
|
bool HitTest(int x, int y);
|
|
void Draw();
|
|
|
|
bool Hover;
|
|
bool Enabled;
|
|
int Left;
|
|
int Top;
|
|
D2DBITMAP BitmapNormal;
|
|
D2DBITMAP BitmapHover;
|
|
};
|