eudora-mac/Include/winutil.h

1 line
8.4 KiB
C
Raw Normal View History

2018-05-23 09:59:15 +00:00
/* Copyright (c) 2017, Computer History Museum All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Computer History Museum nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef WINUTIL_H #define WINUTIL_H /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */ Boolean WinRectUnderFloaters(WindowPtr winWP,Rect *rect,WindowRegionCode rgnCode); void BoldString(PStr string); void DrawRString(short id); void BoldRString(short id); void Hairline(Boolean on); OSErr OutlineRgn(RgnHandle rgn,short inset); Boolean DragIsInteresting(DragReference drag,...); Boolean DragIsInterestingFileType(DragReference drag,Boolean (*testFunc)(FSSpecPtr),...); Boolean DragIsImage(DragReference drag); void GetDisplayRect(GDHandle gd, Rect *r); void RedrawAllWindows(void); void SetDIText(DialogPtr dialog,int item,UPtr text); void GetDIText(DialogPtr dialog,int item,UPtr text); short SetDItemState(DialogPtr pd,short dItem,short hilite); short GetDItemState(DialogPtr pd,short dItem); pascal Boolean DlgFilter(DialogPtr dgPtr,EventRecord *event,short *item); short WindowHi(WindowPtr theWindow); short WindowWi(WindowPtr theWindow); void GlobalizeRgn(RgnHandle rgn); void LocalizeRgn(RgnHandle rgn); void HiliteButtonOne(DialogPtr dgPtr); void DlgCursor(Point mouse); void SetDICTitle(DialogPtr dlog,short item,PStr title); PStr GetDICTitle(DialogPtr dlog,short item,PStr title); void HiliteDIControl(DialogPtr dlog,short item,short hilite); typedef short SICN[16]; typedef SICN **SICNHand; void PlotSICN(Rect *theRect, SICNHand theSICN, long theIndex); void PlotSICNRes(Rect *theRect, short resId, long theIndex); void PlotFullSICNRes(Rect *theRect, short resId, long theIndex); void SavePosPrefs(UPtr name,Rect *r, Boolean zoomed); ControlHandle GetDItemCtl(DialogPtr pd,short dItem); void SavePosFork(short vRef,long dirId,UPtr name,Rect *r, Boolean zoomed); Boolean RestorePosPrefs(UPtr name,Rect *r, Boolean *zoomed); Boolean RestorePosFork(short vRef,long dirId,UPtr name,Rect *r, Boolean *zoomed); Boolean PositionPrefsTitle(Boolean save, MyWindowPtr win); Boolean PositionPrefsByName(Boolean save,MyWindowPtr win,StringPtr title); void ZoomPosition(MyWindowPtr win); void DefPosition(WindowPtr theWindow,Rect *r); void GreyOutRoundRect(Rect *r,short r1,short r2); void PushGWorld(void); void PopGWorld(void); UPtr SetDIPopup(DialogPtr pd,short item,UPtr toName); UPtr GetDIPopup(DialogPtr pd,short item,UPtr whatName); void SanitizeSize(MyWindowPtr win,Rect *r); void HotRect(Rect *r,Boolean on); Boolean MyWinHasSelection(MyWindowPtr win); Boolean PtInSlopRect(Point pt,Rect r,short sl