"Fossies" - the Fresh Open Source Software Archive

Member "libgdiplus-6.0.2/src/gdipstructs.h" (31 Jul 2019, 2507 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 "gdipstructs.h": 5.6.1_vs_6.0.2.

    1 /*
    2  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
    3  * and associated documentation files (the "Software"), to deal in the Software without restriction,
    4  * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
    5  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
    6  * subject to the following conditions:
    7  *
    8  * The above copyright notice and this permission notice shall be included in all copies or substantial
    9  * portions of the Software.
   10  *
   11  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
   12  * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   13  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   14  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
   15  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   16  *
   17  * Authors:
   18  *      Alexandre Pigolkine (pigolkine@gmx.de)
   19  *      Duncan Mak (duncan@ximian.com)
   20  *      Miguel de Icaza (miguel@ximian.com)
   21  *      Ravindra (rkumar@novell.com)
   22  *      Sanjay Gupta (gsanjay@novell.com)
   23  *  Vladimir Vukicevic (vladimir@pobox.com)
   24  *  Geoff Norton (gnorton@customerdna.com)
   25  *      Jonathan Gilbert (logic@deltaq.org)
   26  *  Sebastien Pouliot  <sebastien@ximian.com>
   27  *
   28  * Copyright (C) 2003-2007 Novell, Inc (http://www.novell.com)
   29  */
   30 
   31 #ifndef __GDIPSTRUCTS_H__
   32 #define __GDIPSTRUCTS_H__
   33 
   34 #include "win32structs.h"
   35 
   36 #define GDIPCONST const
   37 
   38 /* public structures defined by GDI+ (i.e. you can safely access their members) */
   39 
   40 typedef struct {
   41     int First;
   42     int Length;
   43 } CharacterRange;
   44 
   45 typedef struct {
   46     ARGB Argb;
   47 } Color;
   48 
   49 typedef struct {
   50     Color oldColor;
   51     Color newColor;
   52 } ColorMap;
   53 
   54 typedef struct {
   55     float m[5][5];
   56 } ColorMatrix;
   57 
   58 typedef struct {
   59         int X, Y;
   60 } Point, GpPoint;
   61 
   62 typedef struct {
   63         float X, Y;
   64 } PointF, GpPointF;
   65 
   66 typedef struct {
   67         int Count;
   68         PointF *Points;
   69         BYTE *Types;
   70 } PathData, GpPathData;
   71 
   72 typedef struct {
   73     int X, Y, Width, Height;
   74 } Rect, GpRect;
   75 
   76 typedef struct {
   77     float X, Y, Width, Height;
   78 } RectF, GpRectF;
   79 
   80 /* Callbacks */
   81 typedef BOOL (*ImageAbort) (void *);
   82 typedef ImageAbort DrawImageAbort;
   83 typedef ImageAbort GetThumbnailImageAbort;
   84 
   85 typedef BOOL (*EnumerateMetafileProc) (EmfPlusRecordType, UINT, UINT, const BYTE*, VOID*);
   86 
   87 #endif