Files
Aerofoil/PortabilityLayer/PLControlDefinitions.h

35 lines
607 B
C
Raw Normal View History

2019-11-11 00:11:59 -05:00
#pragma once
#ifndef __PL_CONTROLDEFINITIONS_H__
#define __PL_CONTROLDEFINITIONS_H__
#include "PLCore.h"
2020-01-05 02:33:03 -05:00
namespace PortabilityLayer
{
class Widget;
}
2019-11-11 00:11:59 -05:00
struct Control
{
};
2019-12-29 23:14:37 -05:00
typedef THandle<Control> ControlHandle;
2019-11-11 00:11:59 -05:00
typedef void(*ControlActionProc)(ControlHandle control, short part);
typedef ControlActionProc ControlActionUPP;
enum ControlParts
{
kControlUpButtonPart = 1,
kControlDownButtonPart,
kControlPageUpPart,
kControlPageDownPart,
kControlIndicatorPart,
kControlButtonPart,
};
2020-01-05 02:33:03 -05:00
int FindControl(Point point, WindowPtr window, PortabilityLayer::Widget **outControl); // Returns part
2019-11-11 00:11:59 -05:00
#endif