📄 qrasterdefs_p.h
字号:
/******************************************************************************** This file is part of the QtGui module of the Qt Toolkit.**** This file contains third party code which is not governed by the Qt** Commercial License Agreement. Please read the license headers below** for more information.** ** Further information about Qt licensing is available at:** http://www.trolltech.com/products/qt/licensing.html or by** contacting info@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************//***************************************************************************//* *//* ftimage.h *//* *//* FreeType glyph image formats and default raster interface *//* (specification). *//* *//* Copyright 1996-2001, 2002, 2003, 2004 by *//* David Turner, Robert Wilhelm, and Werner Lemberg. *//* *//* This file is part of the FreeType project, and may only be used, *//* modified, and distributed under the terms of the FreeType project *//* license, LICENSE.TXT. By continuing to use, modify, or distribute *//* this file you indicate that you have read the license and *//* understand and accept it fully. *//* *//***************************************************************************/ /*************************************************************************/ /* */ /* Note: A `raster' is simply a scan-line converter, used to render */ /* QT_FT_Outlines into QT_FT_Bitmaps. */ /* */ /*************************************************************************/#ifndef __QT_FTIMAGE_H__#define __QT_FTIMAGE_H__/*// W A R N I N G// -------------//// This file is not part of the Qt API. It exists purely as an// implementation detail. This header file may change from version to// version without notice, or even be removed.//// We mean it.*/QT_FT_BEGIN_HEADER /*************************************************************************/ /* */ /* <Section> */ /* basic_types */ /* */ /*************************************************************************/ /*************************************************************************/ /* */ /* <Type> */ /* QT_FT_Pos */ /* */ /* <Description> */ /* The type QT_FT_Pos is a 32-bit integer used to store vectorial */ /* coordinates. Depending on the context, these can represent */ /* distances in integer font units, or 16,16, or 26.6 fixed float */ /* pixel coordinates. */ /* */ typedef signed long QT_FT_Pos; /*************************************************************************/ /* */ /* <Struct> */ /* QT_FT_Vector */ /* */ /* <Description> */ /* A simple structure used to store a 2D vector; coordinates are of */ /* the QT_FT_Pos type. */ /* */ /* <Fields> */ /* x :: The horizontal coordinate. */ /* y :: The vertical coordinate. */ /* */ typedef struct QT_FT_Vector_ { QT_FT_Pos x; QT_FT_Pos y; } QT_FT_Vector; /*************************************************************************/ /* */ /* <Struct> */ /* QT_FT_BBox */ /* */ /* <Description> */ /* A structure used to hold an outline's bounding box, i.e., the */ /* coordinates of its extrema in the horizontal and vertical */ /* directions. */ /* */ /* <Fields> */ /* xMin :: The horizontal minimum (left-most). */ /* */ /* yMin :: The vertical minimum (bottom-most). */ /* */ /* xMax :: The horizontal maximum (right-most). */ /* */ /* yMax :: The vertical maximum (top-most). */ /* */ typedef struct QT_FT_BBox_ { QT_FT_Pos xMin, yMin; QT_FT_Pos xMax, yMax; } QT_FT_BBox; /*************************************************************************/ /* */ /* <Enum> */ /* QT_FT_Pixel_Mode */ /* */ /* <Description> */ /* An enumeration type used to describe the format of pixels in a */ /* given bitmap. Note that additional formats may be added in the */ /* future. */ /* */ /* <Values> */ /* QT_FT_PIXEL_MODE_NONE :: */ /* Value 0 is reserved. */ /* */ /* QT_FT_PIXEL_MODE_MONO :: */ /* A monochrome bitmap, using 1 bit per pixel. Note that pixels */ /* are stored in most-significant order (MSB), which means that */ /* the left-most pixel in a byte has value 128. */ /* */ /* QT_FT_PIXEL_MODE_GRAY :: */ /* An 8-bit bitmap, generally used to represent anti-aliased glyph */ /* images. Each pixel is stored in one byte. Note that the number */ /* of value "gray" levels is stored in the `num_bytes' field of */ /* the @QT_FT_Bitmap structure (it generally is 256). */ /* */ /* QT_FT_PIXEL_MODE_GRAY2 :: */ /* A 2-bit/pixel bitmap, used to represent embedded anti-aliased */ /* bitmaps in font files according to the OpenType specification. */ /* We haven't found a single font using this format, however. */ /* */ /* QT_FT_PIXEL_MODE_GRAY4 :: */ /* A 4-bit/pixel bitmap, used to represent embedded anti-aliased */ /* bitmaps in font files according to the OpenType specification. */ /* We haven't found a single font using this format, however. */ /* */ /* QT_FT_PIXEL_MODE_LCD :: */ /* An 8-bit bitmap, used to represent RGB or BGR decimated glyph */ /* images used for display on LCD displays; the bitmap's width is */ /* three times wider than the original glyph image. See also */ /* @QT_FT_RENDER_MODE_LCD. */ /* */ /* QT_FT_PIXEL_MODE_LCD_V :: */ /* An 8-bit bitmap, used to represent RGB or BGR decimated glyph */ /* images used for display on rotated LCD displays; the bitmap's */ /* height is three times taller than the original glyph image. */ /* See also @QT_FT_RENDER_MODE_LCD_V. */ /* */ typedef enum QT_FT_Pixel_Mode_ { QT_FT_PIXEL_MODE_NONE = 0, QT_FT_PIXEL_MODE_MONO, QT_FT_PIXEL_MODE_GRAY, QT_FT_PIXEL_MODE_GRAY2, QT_FT_PIXEL_MODE_GRAY4, QT_FT_PIXEL_MODE_LCD, QT_FT_PIXEL_MODE_LCD_V, QT_FT_PIXEL_MODE_MAX /* do not remove */ } QT_FT_Pixel_Mode; /*************************************************************************/ /* */ /* <Enum> */ /* qt_ft_pixel_mode_xxx */ /* */ /* <Description> */ /* A list of deprecated constants. Use the corresponding */ /* @QT_FT_Pixel_Mode values instead. */ /* */ /* <Values> */ /* qt_ft_pixel_mode_none :: see @QT_FT_PIXEL_MODE_NONE */ /* qt_ft_pixel_mode_mono :: see @QT_FT_PIXEL_MODE_MONO */ /* qt_ft_pixel_mode_grays :: see @QT_FT_PIXEL_MODE_GRAY */ /* qt_ft_pixel_mode_pal2 :: see @QT_FT_PIXEL_MODE_GRAY2 */ /* qt_ft_pixel_mode_pal4 :: see @QT_FT_PIXEL_MODE_GRAY4 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -