13#ifndef ROOT_QuartzPixmap
14#define ROOT_QuartzPixmap
18#include <Cocoa/Cocoa.h>
40 std::vector<unsigned char>
fData;
53- (
id) initWithW : (
unsigned) width H : (
unsigned) height scaleFactor : (CGFloat) scaleFactor;
54- (BOOL) resizeW : (
unsigned) width H : (
unsigned) height scaleFactor : (CGFloat) scaleFactor;
61@property (nonatomic, assign)
unsigned fID;
64- (BOOL) fIsOpenGLWidget;
78- (void) setDirectDraw : (BOOL) mode;
83 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
85- (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
91- (void) putPixel : (const
unsigned char *) data X : (
unsigned) x Y : (
unsigned) y;
93- (void) addPixel : (const
unsigned char *) rgb;
122- (
id) initWithW : (
unsigned) width H : (
unsigned) height data : (
unsigned char *) data;
123- (
id) initMaskWithW : (
unsigned) width H : (
unsigned) height bitmapMask : (
unsigned char *) mask;
124- (
id) initMaskWithW : (
unsigned) width H : (
unsigned) height;
129@property (nonatomic, readonly) BOOL fIsStippleMask;
133@property (nonatomic, assign)
unsigned fID;
136- (BOOL) fIsOpenGLWidget;
141- (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
144@property (nonatomic, readonly)
TAttLine *attLine;
145@property (nonatomic, readonly)
TAttFill *attFill;
146@property (nonatomic, readonly)
TAttMarker *attMarker;
147@property (nonatomic, readonly)
TAttText *attText;
158bool AdjustCropArea(
const Rectangle &srcRect, Rectangle &cropArea);
165 ULong_t backgroundPixel,
unsigned depth,
unsigned char *imageData);
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
TAttFill fAttFill
current fill attributes
ROOT::MacOSX::Util::CFScopeGuard< CGImageRef > fImage
TAttLine fAttLine
current line attributes
std::vector< unsigned char > fImageData
TAttText fAttText
current text attribute
TAttMarker fAttMarker
current marker attribute
TAttLine fAttLine
current line attributes
TAttText fAttText
current text attribute
TAttFill fAttFill
current fill attributes
std::vector< unsigned char > fData
TAttMarker fAttMarker
current marker attribute
ROOT::MacOSX::Util::CFScopeGuard< CGContextRef > fContext
void FillPixmapBuffer(const unsigned char *bitmap, unsigned width, unsigned height, ULong_t foregroundPixel, ULong_t backgroundPixel, unsigned depth, unsigned char *imageData)
CGImageRef CreateSubImage(QuartzImage *image, const Rectangle &area)
bool AdjustCropArea(const Rectangle &srcRect, Rectangle &cropArea)