13 #ifndef ROOT_QuartzPixmap
14 #define ROOT_QuartzPixmap
18 #include <Cocoa/Cocoa.h>
20 #ifndef ROOT_CocoaGuiTypes
23 #ifndef ROOT_CocoaUtils
26 #ifndef ROOT_X11Drawable
48 std::vector<unsigned char>
fData;
54 - (
id) initWithW : (
unsigned) width H : (
unsigned) height scaleFactor : (CGFloat) scaleFactor;
55 - (BOOL) resizeW : (
unsigned) width H : (
unsigned) height scaleFactor : (CGFloat) scaleFactor;
57 - (CGImageRef) createImageFromPixmap;
58 - (CGImageRef) createImageFromPixmap : (
ROOT::MacOSX::
X11::Rectangle) cropArea;
62 @property (nonatomic, assign)
unsigned fID;
65 - (BOOL) fIsOpenGLWidget;
67 @property (nonatomic, readonly) CGContextRef fContext;
73 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
75 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
78 - (
unsigned char *) fData;
81 - (
void) putPixel : (const
unsigned char *) data X : (
unsigned) x Y : (
unsigned) y;
83 - (
void) addPixel : (const
unsigned char *) rgb;
109 - (
id) initWithW : (
unsigned) width H : (
unsigned) height data : (
unsigned char *) data;
110 - (
id) initMaskWithW : (
unsigned) width H : (
unsigned) height bitmapMask : (
unsigned char *) mask;
111 - (
id) initMaskWithW : (
unsigned) width H : (
unsigned) height;
116 @property (nonatomic, readonly) BOOL fIsStippleMask;
117 - (CGImageRef) fImage;
120 @property (nonatomic, assign)
unsigned fID;
123 - (BOOL) fIsOpenGLWidget;
126 - (unsigned) fHeight;
128 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
139 bool AdjustCropArea(
const Rectangle &srcRect, Rectangle &cropArea);
146 ULong_t backgroundPixel,
unsigned depth,
unsigned char *imageData);
ROOT::MacOSX::Util::CFScopeGuard< CGImageRef > fImage
Namespace for new ROOT classes and functions.
bool AdjustCropArea(const Rectangle &srcRect, Rectangle &cropArea)
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)
ROOT::MacOSX::Util::CFScopeGuard< CGContextRef > fContext
std::vector< unsigned char > fImageData
std::vector< unsigned char > fData
typedef void((*Func_t)())