mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Lots of stuff
This commit is contained in:
49
PortabilityLayer/PLControlDefinitions.h
Normal file
49
PortabilityLayer/PLControlDefinitions.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
#ifndef __PL_CONTROLDEFINITIONS_H__
|
||||
#define __PL_CONTROLDEFINITIONS_H__
|
||||
|
||||
#include "PLCore.h"
|
||||
|
||||
struct Control
|
||||
{
|
||||
};
|
||||
|
||||
typedef Control *ControlPtr;
|
||||
typedef ControlPtr *ControlHandle;
|
||||
|
||||
typedef void(*ControlActionProc)(ControlHandle control, short part);
|
||||
typedef ControlActionProc ControlActionUPP;
|
||||
|
||||
enum BuiltinCDEFs
|
||||
{
|
||||
scrollBarProc = 16,
|
||||
};
|
||||
|
||||
enum ControlParts
|
||||
{
|
||||
kControlUpButtonPart = 1,
|
||||
kControlDownButtonPart,
|
||||
kControlPageUpPart,
|
||||
kControlPageDownPart,
|
||||
kControlIndicatorPart,
|
||||
kControlButtonPart,
|
||||
};
|
||||
|
||||
|
||||
int FindControl(Point point, WindowPtr window, ControlHandle *outControl); // Returns part
|
||||
|
||||
|
||||
void SetControlValue(ControlHandle control, int value);
|
||||
void SetControlMaximum(ControlHandle control, int value);
|
||||
void MoveControl(ControlHandle control, int x, int y);
|
||||
void SizeControl(ControlHandle control, int width, int height);
|
||||
int GetControlValue(ControlHandle control);
|
||||
ControlHandle NewControl(WindowPtr window, const Rect *rect, const PLPasStr &label, Boolean visible, int value, int minValue, int maxValue, int cdef, long userdata);
|
||||
ControlActionUPP NewControlActionUPP(ControlActionProc proc);
|
||||
void DisposeControlActionUPP(ControlActionUPP upp);
|
||||
Boolean TrackControl(ControlHandle control, Point point, ControlActionUPP proc);
|
||||
long GetControlReference(ControlHandle control); // Returns userdata
|
||||
ControlHandle GetNewControl(int resID, WindowPtr window);
|
||||
void HiliteControl(ControlHandle control, int unknown);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user