Hi,

Got it !

In fact, the structure SalGraphicsData has been removed recently in aquavcl01 cws, and looking in OOC680_m3 sources, I found it as expected.

Everything has to be done, but at least, this is  a more correct starting point :-) e.g. some changes are necessary, since VCLWINDOW.h and VCLVIEW.h are used, but obsolete (I wonder if we still use QuickDraw). All this must be adapted to match with aquavcl01 cws.  

For the curious, the missing code is (as you can see, it does contain some mandatory Apple API bindings)  :

struct SalGraphicsData
{
// NSView and NSWindow

VCLVIEW         mhDC;                   // VCLVIEW

// QuickDraw graph port, offscreen graphic world, and graphic device handle

CGrafPtr        mpCGrafPort;            // QD color graphics port
GWorldPtr       mpGWorld;               // QD offscreen GWorld
GDHandle        mhGDevice;              // QD GDevice


// Graph port pixels, state and flags


BOOL            mbGWorldPixelsLocked;   // GWorld pixels locked?
BOOL            mbGWorldPixelsCopy;     // GWorld pixels was a copy of the original?
BOOL            mbGWorldPixelsNew;      // GWorld pixels is brand new?
GWorldFlags     mnGWorldFlags;          // GWorld pixels status flags
PixMapHandle    mhGWorldPixMap;         // GWorld pixels

// Clip region

    

BOOL            mbClipRgnChanged;       // Did the clip region change?
RgnHandle       mhClipRgn;              // Clip Region Handle

// Font attributes

short           mnFontID;               // Mac FontFamilyId
short           mnFontSize;             // Mac Font Size
RGBColor        maFontColor;            // Text Color
Style           mnFontStyle;            // Mac Font Style

// Pen attributes and status

BOOL            mbPenTransparent;       // Is pen transparent?
SInt32          mnPenMode;              // Pen Mode
RGBColor        maPenColor;             // Pen Color

// Port's pen attributes

SInt32          mnPortPenMode;          // Port's pen mode
MacOSPoint      maPortPenSize;          // Port's pen size;
MacOSPoint      maPortPenLocation;      // Port's pen location
PixPatHandle    mhPortPenPattern;       // Port's pen pattern

// Brush attributes and status

BOOL            mbBrushTransparent;     // Is brush transparent?
RGBColor        maBrushColor;           // Brush Color

// Miscellaneous status flags

BOOL            mbPrinter;              // Is a printer available? 
BOOL            mbVirDev;               // Is a virtual device available?
BOOL            mbWindow;               // Is a window availble? 
BOOL            mbScreen;               // Is this screen compatiable?
OSStatus        mnOSStatus;             // The current MacOS error
};

typedef struct SalGraphicsData   SalGraphicsData;
typedef SalGraphicsData         *SalGraphicsDataPtr;
typedef SalGraphicsDataPtr      *SalGraphicsDataHandle;



Regards,
Eric Bachard

Reply via email to