"Fossies" - the Fresh Open Source Software Archive

Member "libgdiplus-6.0.2/src/graphics-cairo-private.h" (31 Jul 2019, 4747 Bytes) of package /linux/misc/mono-sources/libgdiplus/libgdiplus-6.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "graphics-cairo-private.h": 5.6.1_vs_6.0.2.

    1 /*
    2  * Copyright (C) 2007 Novell, Inc (http://www.novell.com)
    3  *
    4  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
    5  * and associated documentation files (the "Software"), to deal in the Software without restriction,
    6  * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
    7  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
    8  * subject to the following conditions:
    9  *
   10  * The above copyright notice and this permission notice shall be included in all copies or substantial
   11  * portions of the Software.
   12  *
   13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
   14  * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   15  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   16  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
   17  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   18  *
   19  * Authors:
   20  *  Sebastien Pouliot  <sebastien@ximian.com>
   21  */
   22 
   23 #ifndef __GRAPHICS_CAIRO_PRIVATE_H__
   24 #define __GRAPHICS_CAIRO_PRIVATE_H__
   25 
   26 #include "gdiplus-private.h"
   27 #include "brush-private.h"
   28 #include "matrix-private.h"
   29 
   30 /* constant for make_ellipse */
   31 #define C1  0.552285
   32 
   33 /*
   34  * Handling of pens with a width greater than 1 is not identical between GDI+ and Cairo
   35  *
   36  * On cairo >= 1.12 pen adjustment is not required or tons of tests senstive to this break.
   37  */
   38 #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 12, 0)
   39 #define gdip_cairo_pen_width_needs_adjustment(pen)  (0)
   40 #else
   41 #define gdip_cairo_pen_width_needs_adjustment(pen)  (((int)(pen->width) & 1) == 0)
   42 #endif
   43 
   44 cairo_fill_rule_t gdip_convert_fill_mode (FillMode fill_mode) GDIP_INTERNAL;
   45 GpStatus gdip_plot_path (GpGraphics *graphics, GpPath *path, BOOL antialiasing) GDIP_INTERNAL;
   46 
   47 
   48 GpStatus cairo_DrawArc (GpGraphics *graphics, GpPen *pen, float x, float y, float width, float height, float startAngle, 
   49     float sweepAngle) GDIP_INTERNAL;
   50 
   51 GpStatus cairo_DrawBeziers (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, int count) GDIP_INTERNAL;
   52 
   53 GpStatus cairo_DrawClosedCurve2 (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, int count, 
   54     float tension) GDIP_INTERNAL;
   55 GpStatus cairo_FillClosedCurve2 (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, int count, 
   56     float tension, GpFillMode fillMode) GDIP_INTERNAL;
   57 GpStatus cairo_DrawCurve3 (GpGraphics *graphics, GpPen* pen, GDIPCONST GpPointF *points, int count, int offset, 
   58     int numOfSegments, float tension) GDIP_INTERNAL;
   59 
   60 GpStatus cairo_DrawEllipse (GpGraphics *graphics, GpPen *pen, float x, float y, float width, float height) GDIP_INTERNAL;
   61 GpStatus cairo_FillEllipse (GpGraphics *graphics, GpBrush *brush, float x, float y, float width, float height) GDIP_INTERNAL;
   62 
   63 GpStatus cairo_DrawLines (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, int count) GDIP_INTERNAL;
   64 
   65 GpStatus cairo_DrawRectangles (GpGraphics *graphics, GpPen *pen, GDIPCONST GpRectF *rects, int count) GDIP_INTERNAL;
   66 GpStatus cairo_FillRectangles (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRectF *rects, int count) GDIP_INTERNAL;
   67 
   68 GpStatus cairo_DrawPath (GpGraphics *graphics, GpPen *pen, GpPath *path) GDIP_INTERNAL;
   69 GpStatus cairo_FillPath (GpGraphics *graphics, GpBrush *brush, GpPath *path) GDIP_INTERNAL;
   70 
   71 GpStatus cairo_DrawPie (GpGraphics *graphics, GpPen *pen, float x, float y, float width, float height, 
   72     float startAngle, float sweepAngle) GDIP_INTERNAL;
   73 GpStatus cairo_FillPie (GpGraphics *graphics, GpBrush *brush, float x, float y, float width, float height, 
   74     float startAngle, float sweepAngle) GDIP_INTERNAL;
   75 
   76 GpStatus cairo_DrawPolygon (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, int count) GDIP_INTERNAL;
   77 GpStatus cairo_FillPolygon (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, int count, 
   78     FillMode fillMode) GDIP_INTERNAL;
   79 
   80 GpStatus cairo_FillRegion (GpGraphics *graphics, GpBrush *brush, GpRegion *region) GDIP_INTERNAL;
   81 
   82 GpStatus cairo_GraphicsClear (GpGraphics *graphics, ARGB color) GDIP_INTERNAL;
   83 GpStatus cairo_SetCompositingMode (GpGraphics *graphics, CompositingMode compositingMode) GDIP_INTERNAL;
   84 GpStatus cairo_SetSmoothingMode (GpGraphics *graphics, SmoothingMode mode) GDIP_INTERNAL;
   85 
   86 GpStatus cairo_SetGraphicsClip (GpGraphics *graphics) GDIP_INTERNAL;
   87 GpStatus cairo_ResetClip (GpGraphics *graphics) GDIP_INTERNAL;
   88 
   89 GpStatus cairo_ResetWorldTransform (GpGraphics *graphics) GDIP_INTERNAL;
   90 GpStatus cairo_SetWorldTransform (GpGraphics *graphics, GpMatrix *matrix) GDIP_INTERNAL;
   91 
   92 #endif