2021-10-14 00:44:08 +00:00
|
|
|
// Copyright (c) Jon Thysell <http://jonthysell.com>
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
#ifndef MACCOMMON_H
|
|
|
|
#define MACCOMMON_H
|
|
|
|
|
2021-10-16 00:29:07 +00:00
|
|
|
#define BaseResID 128
|
|
|
|
#define MoveToFront (WindowPtr)-1L
|
2021-10-15 16:43:09 +00:00
|
|
|
|
2021-10-16 00:29:07 +00:00
|
|
|
#define EmptyString "\p"
|
|
|
|
#define NilFilterProc nil
|
2021-10-15 16:43:09 +00:00
|
|
|
|
2021-10-16 00:29:07 +00:00
|
|
|
#define ErrorAlertResID BaseResID
|
2021-10-15 16:43:09 +00:00
|
|
|
|
2021-10-16 22:38:43 +00:00
|
|
|
pascal OSErr SetDialogDefaultItem(DialogPtr theDialog, short newItem) = { 0x303C, 0x0304, 0xAA68 };
|
|
|
|
|
2021-10-15 16:43:09 +00:00
|
|
|
void ShowError(Str255 message, Boolean isFatal);
|
2021-10-14 00:44:08 +00:00
|
|
|
|
2021-10-31 22:13:51 +00:00
|
|
|
void CenterRect(const Rect *pOuterRect, Rect *pInnerRect);
|
|
|
|
void CenterRectH(const Rect *pOuterRect, Rect *pInnerRect);
|
|
|
|
void CenterRectV(const Rect *pOuterRect, Rect *pInnerRect);
|
|
|
|
|
2021-10-14 00:44:08 +00:00
|
|
|
#endif
|