⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pixman.h

📁 超强的嵌入式GUI系统
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef _PIXMAN_H_#define _PIXMAN_H_/* pixman.h - a merge of pixregion.h and ic.h *//* from pixregion.h *//***********************************************************Copyright 1987, 1998  The Open GroupPermission to use, copy, modify, distribute, and sell this software and itsdocumentation for any purpose is hereby granted without fee, provided thatthe above copyright notice appear in all copies and that both thatcopyright notice and this permission notice appear in supportingdocumentation.The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THEOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Except as contained in this notice, the name of The Open Group shall not beused in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from The Open Group.Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.                        All Rights ReservedPermission to use, copy, modify, and distribute this software and itsdocumentation for any purpose and without fee is hereby granted,provided that the above copyright notice appear in all copies and thatboth that copyright notice and this permission notice appear insupporting documentation, and that the name of Digital not beused in advertising or publicity pertaining to distribution of thesoftware without specific, written prior permission.DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ORANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THISSOFTWARE.******************************************************************//* libic.h *//* * Copyright © 1998 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission.  Keith Packard makes no * representations about the suitability of this software for any purpose.  It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. *///#ifdef HAVE_CONFIG_H# include "config.h"//#endif#if   HAVE_STDINT_H# include <stdint.h>#elif HAVE_INTTYPES_H# include <inttypes.h>#elif HAVE_SYS_INT_TYPES_H# include <sys/int_types.h>#elif defined(_MSC_VER)  typedef __int8 int8_t;  typedef unsigned __int8 uint8_t;  typedef __int16 int16_t;  typedef unsigned __int16 uint16_t;  typedef __int32 int32_t;  typedef unsigned __int32 uint32_t;  typedef __int64 int64_t;  typedef unsigned __int64 uint64_t;#else#error Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)#endif#include "pixman-remap.h"#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun__)#define pixman_private		__attribute__((__visibility__("hidden")))#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)#define pixman_private		__hidden#else /* not gcc >= 3.3 and not Sun Studio >= 8 */#define pixman_private#endif#if defined(__cplusplus) || defined(c_plusplus)extern "C" {#endif/* pixregion.h */typedef struct pixman_region16 pixman_region16_t;typedef struct pixman_box16 {    short x1, y1, x2, y2;} pixman_box16_t;typedef enum {    PIXMAN_REGION_STATUS_FAILURE,    PIXMAN_REGION_STATUS_SUCCESS} pixman_region_status_t;/* creation/destruction */pixman_private pixman_region16_t *pixman_region_create (void);pixman_private pixman_region16_t *pixman_region_create_simple (pixman_box16_t *extents);pixman_private voidpixman_region_destroy (pixman_region16_t *region);/* manipulation */pixman_private voidpixman_region_translate (pixman_region16_t *region, int x, int y);pixman_private pixman_region_status_tpixman_region_copy (pixman_region16_t *dest, pixman_region16_t *source);pixman_private pixman_region_status_tpixman_region_intersect (pixman_region16_t *newReg, pixman_region16_t *reg1, pixman_region16_t *reg2);pixman_private pixman_region_status_tpixman_region_union (pixman_region16_t *newReg, pixman_region16_t *reg1, pixman_region16_t *reg2);pixman_private pixman_region_status_tpixman_region_union_rect(pixman_region16_t *dest, pixman_region16_t *source,			 int x, int y, unsigned int width, unsigned int height);pixman_private pixman_region_status_tpixman_region_subtract (pixman_region16_t *regD, pixman_region16_t *regM, pixman_region16_t *regS);pixman_private pixman_region_status_tpixman_region_inverse (pixman_region16_t *newReg, pixman_region16_t *reg1, pixman_box16_t *invRect);/* XXX: Need to fix this so it doesn't depend on an X data structurepixman_region16_t *RectsTopixman_region16_t (int nrects, xRectanglePtr prect, int ctype);*//* querying *//* XXX: These should proably be combined: pixman_region_get_rects? */pixman_private intpixman_region_num_rects (pixman_region16_t *region);pixman_private pixman_box16_t *pixman_region_rects (pixman_region16_t *region);/* XXX: Change to an enum */#define rgnOUT 0#define rgnIN  1#define rgnPART 2pixman_private intpixman_region_contains_point (pixman_region16_t *region, int x, int y, pixman_box16_t *box);pixman_private intpixman_region_contains_rectangle (pixman_region16_t *pixman_region16_t, pixman_box16_t *prect);pixman_private intpixman_region_not_empty (pixman_region16_t *region);pixman_private pixman_box16_t *pixman_region_extents (pixman_region16_t *region);/* mucking around *//* WARNING: calling pixman_region_append may leave dest as an invalid   region. Follow-up with pixman_region_validate to fix it up. */pixman_private pixman_region_status_tpixman_region_append (pixman_region16_t *dest, pixman_region16_t *region);pixman_private pixman_region_status_tpixman_region_validate (pixman_region16_t *badreg, int *pOverlap);/* Unclassified functionality * XXX: Do all of these need to be exported? */pixman_private voidpixman_region_reset (pixman_region16_t *region, pixman_box16_t *pBox);pixman_private voidpixman_region_empty (pixman_region16_t *region);/* ic.h *//* icformat.c */typedef enum pixman_operator {    PIXMAN_OPERATOR_CLEAR,    PIXMAN_OPERATOR_SRC,    PIXMAN_OPERATOR_DST,    PIXMAN_OPERATOR_OVER,    PIXMAN_OPERATOR_OVER_REVERSE,    PIXMAN_OPERATOR_IN,    PIXMAN_OPERATOR_IN_REVERSE,    PIXMAN_OPERATOR_OUT,    PIXMAN_OPERATOR_OUT_REVERSE,    PIXMAN_OPERATOR_ATOP,    PIXMAN_OPERATOR_ATOP_REVERSE,    PIXMAN_OPERATOR_XOR,    PIXMAN_OPERATOR_ADD,    PIXMAN_OPERATOR_SATURATE} pixman_operator_t;typedef enum pixman_format_name {    PIXMAN_FORMAT_NAME_ARGB32,    PIXMAN_FORMAT_NAME_RGB24,    PIXMAN_FORMAT_NAME_A8,    PIXMAN_FORMAT_NAME_A1,    PIXMAN_FORMAT_NAME_RGB16_565,    PIXMAN_FORMAT_NAME_ABGR32,    PIXMAN_FORMAT_NAME_BGR24} pixman_format_name_t;typedef struct pixman_format pixman_format_t;pixman_private pixman_format_t *pixman_format_create (pixman_format_name_t name);pixman_private pixman_format_t *pixman_format_create_masks (int bpp,			    int alpha_mask,			    int red_mask,			    int green_mask,			    int blue_mask);pixman_private voidpixman_format_destroy (pixman_format_t *format);pixman_private voidpixman_format_get_masks (pixman_format_t *format,                         unsigned int *bpp,                         unsigned int *alpha_mask,                         unsigned int *red_mask,                         unsigned int *green_mask,                         unsigned int *blue_mask);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -