2004-08-02 21:50:17 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2002 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Banlu Kemiyatorn <object at gmail dot com>
|
|
|
|
|
|
|
|
This file is part of GNUstep.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 23:25:10 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2004-08-02 21:50:17 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:12:46 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2007-10-29 23:25:10 +00:00
|
|
|
|
2004-08-02 21:50:17 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 23:25:10 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2004-08-02 21:50:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CairoSurface_h
|
|
|
|
#define CairoSurface_h
|
|
|
|
|
|
|
|
#include <cairo.h>
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@interface CairoSurface : NSObject
|
|
|
|
{
|
|
|
|
@public
|
|
|
|
void *gsDevice;
|
2005-07-27 23:25:32 +00:00
|
|
|
cairo_surface_t *_surface;
|
2004-08-02 21:50:17 +00:00
|
|
|
}
|
|
|
|
|
2005-08-28 00:48:12 +00:00
|
|
|
- (id) initWithDevice: (void *)device;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
- (NSSize) size;
|
2007-06-29 11:31:53 +00:00
|
|
|
- (void) setSize: (NSSize)newSize;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2005-07-27 23:25:32 +00:00
|
|
|
- (cairo_surface_t *) surface;
|
|
|
|
|
2011-10-13 21:37:44 +00:00
|
|
|
- (void) handleExposeRect: (NSRect)rect;
|
|
|
|
|
2012-11-21 20:53:22 +00:00
|
|
|
- (BOOL) isDrawingToScreen;
|
|
|
|
|
2004-08-02 21:50:17 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|