mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
35 lines
607 B
C++
35 lines
607 B
C++
#pragma once
|
|
#ifndef __PL_CONTROLDEFINITIONS_H__
|
|
#define __PL_CONTROLDEFINITIONS_H__
|
|
|
|
#include "PLCore.h"
|
|
|
|
namespace PortabilityLayer
|
|
{
|
|
class Widget;
|
|
}
|
|
|
|
struct Control
|
|
{
|
|
};
|
|
|
|
typedef THandle<Control> ControlHandle;
|
|
|
|
typedef void(*ControlActionProc)(ControlHandle control, short part);
|
|
typedef ControlActionProc ControlActionUPP;
|
|
|
|
enum ControlParts
|
|
{
|
|
kControlUpButtonPart = 1,
|
|
kControlDownButtonPart,
|
|
kControlPageUpPart,
|
|
kControlPageDownPart,
|
|
kControlIndicatorPart,
|
|
kControlButtonPart,
|
|
};
|
|
|
|
|
|
int FindControl(Point point, WindowPtr window, PortabilityLayer::Widget **outControl); // Returns part
|
|
|
|
#endif
|