mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Clean out unused API
This commit is contained in:
@@ -108,11 +108,6 @@ short FindWindow(Point point, WindowPtr *window)
|
||||
return part;
|
||||
}
|
||||
|
||||
void BringToFront(WindowPtr window)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
}
|
||||
|
||||
bool TrackGoAway(WindowPtr window, Point point)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
@@ -131,21 +126,6 @@ bool TrackBox(WindowPtr window, Point point, int part)
|
||||
return false;
|
||||
}
|
||||
|
||||
void HiliteWindow(WindowPtr window, bool highlighted)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
}
|
||||
|
||||
void GetWindowBounds(WindowPtr window, WindowRegionType windowRegion, Rect *rect)
|
||||
{
|
||||
if (windowRegion == kWindowContentRgn)
|
||||
*rect = window->m_surface.m_port.GetRect();
|
||||
else
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
}
|
||||
}
|
||||
|
||||
WindowPtr GetNewCWindow(int resID, void *storage, WindowPtr behind)
|
||||
{
|
||||
Handle windowResource = PortabilityLayer::ResourceManager::GetInstance()->GetAppResource('WIND', resID);
|
||||
@@ -168,18 +148,6 @@ WindowPtr GetNewCWindow(int resID, void *storage, WindowPtr behind)
|
||||
return window;
|
||||
}
|
||||
|
||||
WindowPtr NewCWindow(void *storage, const Rect *bounds, const PLPasStr &title, Boolean visible, int wdef, WindowPtr behind, long userdata)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
WindowPtr NewWindow(void *storage, const Rect *bounds, const PLPasStr &title, Boolean visible, int wdef, WindowPtr behind, long userdata)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void SizeWindow(WindowPtr window, int width, int height, Boolean addToUpdateRegion)
|
||||
{
|
||||
PortabilityLayer::WindowManager::GetInstance()->ResizeWindow(window, width, height);
|
||||
|
@@ -214,24 +214,6 @@ namespace RegionIDs
|
||||
|
||||
typedef RegionIDs::RegionID RegionID_t;
|
||||
|
||||
enum WindowRegionType
|
||||
{
|
||||
kWindowContentRgn
|
||||
};
|
||||
|
||||
enum EventCode
|
||||
{
|
||||
mouseDown,
|
||||
mouseUp,
|
||||
mouseMove,
|
||||
keyDown,
|
||||
keyUp,
|
||||
autoKey,
|
||||
updateEvt,
|
||||
osEvt,
|
||||
kHighLevelEvent,
|
||||
};
|
||||
|
||||
static const int everyEvent = -1;
|
||||
|
||||
static const int iBeamCursor = 1;
|
||||
@@ -252,16 +234,11 @@ void HideCursor();
|
||||
void Delay(int ticks, UInt32 *endTickCount);
|
||||
|
||||
short FindWindow(Point point, WindowPtr *window); // Translates global coordinates to window coordinates, returns a region ID
|
||||
void BringToFront(WindowPtr window);
|
||||
bool TrackGoAway(WindowPtr window, Point point); // Returns true if the close box was actually clicked (?)
|
||||
Int32 GrowWindow(WindowPtr window, Point start, Rect *size);
|
||||
bool TrackBox(WindowPtr window, Point point, int part); // Returns true if grow/shrink box was clicked (part corresponds to type)
|
||||
void HiliteWindow(WindowPtr window, bool highlighted);
|
||||
void GetWindowBounds(WindowPtr window, WindowRegionType windowRegion, Rect *rect);
|
||||
|
||||
WindowPtr GetNewCWindow(int resID, void *storage, WindowPtr behind);
|
||||
WindowPtr NewCWindow(void *storage, const Rect *bounds, const PLPasStr &title, Boolean visible, int wdef, WindowPtr behind, long userdata);
|
||||
WindowPtr NewWindow(void *storage, const Rect *bounds, const PLPasStr &title, Boolean visible, int wdef, WindowPtr behind, long userdata);
|
||||
void SizeWindow(WindowPtr window, int width, int height, Boolean addToUpdateRegion);
|
||||
void MoveWindow(WindowPtr window, int x, int y, Boolean moveToFront);
|
||||
void ShowWindow(WindowPtr window);
|
||||
|
@@ -674,7 +674,7 @@ namespace PortabilityLayer
|
||||
if (m_windowStackTop == impl)
|
||||
{
|
||||
if (WindowImpl *below = impl->GetWindowBelow())
|
||||
BringToFront(below);
|
||||
PutWindowBehind(below, GetPutInFrontSentinel());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user