亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? extgraph.h

?? c語言開發(fā)方面的經(jīng)典問題,包括源代碼.c語言開發(fā)所要注意的問題,以及在嵌入式等各方面的應用
?? H
字號:
/* * File: extgraph.h * Version: 3.0 * Last modified on Tue Oct  4 11:24:41 1994 by eroberts * ----------------------------------------------------- * This interface is the extended graphics interface. * It includes all of the facilities in graphics.h, plus * several additional functions that are designed to * support more sophisticated, interactive graphics. */#ifndef _extgraph_h#define _extgraph_h#include "genlib.h"/* Exported functions *//* Section 1 -- Basic functions from graphics.h */#include "graphics.h"/* Section 2 -- Elliptical arcs *//* * Function: DrawEllipticalArc * Usage: DrawEllipticalArc(rx, ry, start, sweep); * ----------------------------------------------- * This procedure draws an elliptical arc.  It is exactly * the same in its operation as DrawArc in the graphics.h * interface, except that the radius is different along the * two axes. */void DrawEllipticalArc(double rx, double ry,                       double start, double sweep);/* Section 3 -- Graphical regions*//* * Functions: StartFilledRegion, EndFilledRegion * Usage: StartFilledRegion(density); *        . . . other calls . . . *        EndFilledRegion(); * ------------------------------ * These calls make it possible to draw filled shapes on the * display.  After calling StartFilledRegion, any calls to * DrawLine and DrawArc are used to create a shape definition * and do not appear on the screen until EndFilledRegion is * called.  The lines and arcs must be consecutive, in the * sense that each new element must start where the last * one ended.  MovePen calls may occur at the beginning * or the end of the region, but not in the interior. When * EndFilledRegion is called, the entire region appears on the * screen, with its interior filled in.  The density parameter * is a number between 0 and 1 and indicates how the dot density * to be used for the fill pattern.  If density is 1, the shape * will be filled in a solid color; if it is 0, the fill will be * invisible.  In between, the implementation will use a dot * pattern that colors some of the screen dots but not others. */void StartFilledRegion(double density);void EndFilledRegion(void);/* Section 4 -- String functions *//* * Function: DrawTextString * Usage: DrawTextString(text); * ---------------------------- * This function displays the string text at the current point * in the current font and size.  The current point is updated * so that the next DrawTextString command would continue from * the next character position.  The string may not include the * newline character. */void DrawTextString(string text);/* * Function: TextStringWidth * Usage: w = TextStringWidth(text); * --------------------------------- * This function returns the width of the text string if displayed * at the current font and size. */double TextStringWidth(string text);/* * Function: SetFont * Usage: SetFont(font); * --------------------- * This function sets a new font according to the font string, * which is case-independent.  Different systems support different * fonts, although common ones like "Times" and "Courier" are often * supported.  Initially, the font is set to "Default" which is * always supported, although the underlying font is system * dependent.  If the font name is unrecognized, no error is * generated, and the font remains unchanged.  If you need to * detect this condition, you can call GetFont to see if the * change took effect.  By not generating an error in this case, * programs become more portable. */void SetFont(string font);/* * Function: GetFont * Usage: font = GetFont(); * ------------------------ * This function returns the current font name as a string. */string GetFont(void);/* * Function: SetPointSize * Usage: SetPointSize(size); * -------------------------- * This function sets a new point size.  If the point size is * not supported for a particular font, the closest existing * size is selected. */void SetPointSize(int size);/* * Function: GetPointSize * Usage: size = GetPointSize(); * ----------------------------- * This function returns the current point size. */int GetPointSize(void);/* * Text style constants * -------------------- * The constants Bold and Italic are used in the SetStyle * command to specify the desired text style.  They may also * be used in combination by adding these constants together, * as in Bold + Italic.  The constant Normal indicates the * default style. */#define Normal  0#define Bold    1#define Italic  2/* * Function: SetStyle * Usage: SetStyle(style); * ----------------------- * This function establishes the current style properties * for text based on the parameter style, which is an integer * representing the sum of any of the text style constants. */void SetStyle(int style);/* * Function: GetStyle * Usage: style = GetStyle(); * -------------------------- * This function returns the current style. */int GetStyle(void);/* * Functions: GetFontAscent, GetFontDescent, GetFontHeight * Usage: ascent = GetFontAscent(); *        descent = GetFontDescent(); *        height = GetFontHeight(); * ------------------------------------------------------- * These functions return properties of the current font that are * used to calculate how to position text vertically on the page. * The ascent of a font is the distance from the baseline to the * top of the largest character; the descent is the maximum * distance any character extends below the baseline.  The height * is the total distance between two lines of text, including the * interline space (which is called leading). * * Examples: *   To change the value of y so that it indicates the next text *   line, you need to execute * *        y -= GetFontHeight(); * *   To center text vertically around the coordinate y, you need *   to start the pen at * *       y - GetFontAscent() / 2 */double GetFontAscent(void);double GetFontDescent(void);double GetFontHeight(void);/* Section 5 -- Mouse support *//* * Functions: GetMouseX, GetMouseY * Usage: x = GetMouseX(); *        y = GetMouseY(); * ------------------------------- * These functions return the x and y coordinates of the mouse, * respectively.  The coordinate values are real numbers measured * in inches from the origin and therefore match the drawing * coordinates. */double GetMouseX(void);double GetMouseY(void);/* * Functions: MouseButtonIsDown * Usage: if (MouseButtonIsDown()) . . . * ------------------------------------- * This function returns TRUE if the mouse button is currently * down.  For maximum compatibility among implementations, the * mouse is assumed to have one button.  If the mouse has more * than one button, this function returns TRUE if any button * is down. */bool MouseButtonIsDown(void);/* * Functions: WaitForMouseDown, WaitForMouseUp * Usage: WaitForMouseDown(); *        WaitForMouseUp(); * ------------------------------------------- * The WaitForMouseDown function waits until the mouse button * is pressed and then returns.  WaitForMouseUp waits for the * button to be released. */void WaitForMouseDown(void);void WaitForMouseUp(void);/* Section 6 -- Color support *//* * Function: HasColor * Usage: if (HasColor()) . . . * ---------------------------- * This function returns TRUE if the graphics window can display a * color image.  Note that this condition is stronger than simply * checking whether a color display is available.  Because color * windows require more memory than black and white ones, this * function will return FALSE with a color screen if there is * not enough memory to store a colored image.  On the Macintosh, * for example, it is usually necessary to increase the partition * size to at least 1MB before color windows can be created. */bool HasColor(void);/* * Function: SetPenColor * Usage: SetPenColor(color); * -------------------------- * This function sets the color of the pen used for any drawing, * including lines, text, and filled regions.  The color is a * string, which will ordinarily be one of the following * predefined color names: * *    Black, Dark Gray, Gray, Light Gray, White, *    Red, Yellow, Green, Cyan, Blue, Magenta * * The first line corresponds to standard gray scales and the * second to the primary and secondary colors of light.  The * built-in set is limited to these colors because they are * likely to be the same on all hardware devices.  For finer * color control, you can use the DefineColor function to * create new color names as well. */void SetPenColor(string color);/* * Function: GetPenColor * Usage: color = GetPenColor(); * ----------------------------- * This function returns the current pen color as a string. */string GetPenColor(void);/* * Function: DefineColor * Usage: DefineColor(name, red, green, blue); * ------------------------------------------- * This function allows the client to define a new color name * by supplying intensity levels for the colors red, green, * and blue, which are the primary colors of light.  The * color values are provided as real numbers between 0 and 1, * indicating the intensity of that color.  For example, * the predefined color Magenta has full intensity red and * blue but no green and is therefore defined as: * *      DefineColor("Magenta", 1, 0, 1); * * DefineColor allows you to create intermediate colors on * many displays, although the results vary significantly * depending on the hardware.  For example, the following * usually gives a reasonable approximation of brown: * *      DefineColor("Brown", .35, .20, .05); */void DefineColor(string name,                 double red, double green, double blue);/* Section 7 -- Miscellaneous functions *//* * Function: SetEraseMode * Usage: SetEraseMode(TRUE); *        SetEraseMode(FALSE); * --------------------------- * The SetEraseMode function sets the value of the internal * erasing flag.  Setting this flag is similar to setting the * color to "White" in its effect but does not affect the * current color setting.  When erase mode is set to FALSE, * normal drawing is restored, using the current color. */void SetEraseMode(bool mode);/* * Function: GetEraseMode * Usage: mode = GetEraseMode(); * ----------------------------- * This function returns the current state of the erase mode flag. */bool GetEraseMode(void);/* * Function: SetWindowTitle * Usage: SetWindowTitle(title); * ----------------------------- * This function sets the title of the graphics window, if such * an operation is possible on the display.  If it is not possible * for a particular implementation, the call is simply ignored. * This function may be called prior to the InitGraphics call to * set the initial name of the window. */void SetWindowTitle(string title);/* * Function: GetWindowTitle * Usage: title = GetWindowTitle(); * -------------------------------- * This function returns the title of the graphics window.  If the * implementation does not support titles, this call returns the * empty string. */string GetWindowTitle(void);/* * Function: UpdateDisplay * Usage: UpdateDisplay(); * ----------------------- * This function initiates an immediate update of the graphics * window and is necessary for animation.  Ordinarily, the * graphics window is updated only when the program waits for * user input. */void UpdateDisplay(void);/* * Function: Pause * Usage: Pause(seconds); * ---------------------- * The Pause function updates the graphics window and then * pauses for the indicated number of seconds.  This function * is useful for animation where the motion would otherwise * be too fast. */void Pause(double seconds);/* * Function: ExitGraphics * Usage: ExitGraphics(); * ---------------------- * The ExitGraphics function closes the graphics window and * exits from the application without waiting for any additional * user interaction. */void ExitGraphics(void);/* * Functions: SaveGraphicsState, RestoreGraphicsState * Usage: SaveGraphicsState(); *        . . . graphical operations . . . *        RestoreGraphicsState(); * --------------------------------------------------- * The SaveGraphicsState function saves the current graphics * state (the current pen position, the font, the point size, * and the erase mode flag) internally, so that they can be * restored by the next RestoreGraphicsState call.  These two * functions must be used in pairs but may be nested to any depth. */void SaveGraphicsState(void);void RestoreGraphicsState(void);/* * Functions: GetFullScreenWidth, GetFullScreenHeight * Usage: width = GetFullScreenWidth(); *        height = GetFullScreenHeight(); * -------------------------------------- * These functions return the height and width of the entire * display screen, not the graphics window.  Their only * significant use is for applications that need to adjust * the size of the graphics window based on available screen * space.  These functions may be called before InitGraphics * has been called. */double GetFullScreenWidth(void);double GetFullScreenHeight(void);/* * Functions: SetWindowSize * Usage: SetWindowSize(width, height); * ------------------------------------ * This function sets the window size to the indicated dimensions, * if possible.  This function should be called before the graphics * window is created by InitGraphics.  Attempts to change the size * of an existing window are ignored by most implementations.  This * function should be used sparingly because it reduces the * portability of applications, particularly if the client * requests more space than is available on the screen. */void SetWindowSize(double width, double height);/* * Functions: GetXResolution, GetYResolution * Usage: xres = GetXResolution(); *        yres = GetYResolution(); * ----------------------------------------- * These functions return the number of pixels per inch along * each of the coordinate directions and are useful for applications * in which it is important for short distances to be represented * uniformly in terms of dot spacing.  Even though the x and y * resolutions are the same for most displays, clients should * not rely on this property. * * Note: Lines in the graphics library are one pixel unit wide and * have a length that is always one pixel longer than you might * expect.  For example, the function call * *     DrawLine(2 / GetXResolution(), 0); * * draws a line from the current point to the point two pixels * further right, which results in a line of three pixels. */double GetXResolution(void);double GetYResolution(void);#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人一区二区三区在线观看| 色婷婷av一区二区三区之一色屋| 亚洲嫩草精品久久| 国产精品乱人伦| 国产精品美女久久久久久久| 偷拍日韩校园综合在线| 欧美a一区二区| 精品中文字幕一区二区| 国产成人在线影院| 91在线视频免费91| 欧美在线观看你懂的| 这里只有精品免费| 日韩一区二区精品在线观看| 精品粉嫩超白一线天av| 国产欧美综合在线观看第十页| 国产日韩成人精品| 美女mm1313爽爽久久久蜜臀| 国产精品123区| 日韩欧美亚洲一区二区| 久久婷婷国产综合精品青草| 亚洲嫩草精品久久| 成人av网站在线观看免费| 在线精品视频一区二区| 国产精品国产自产拍在线| 视频一区在线播放| 大美女一区二区三区| 久久这里都是精品| 国产一区视频在线看| 日本高清不卡视频| 日韩欧美精品三级| 久久国内精品自在自线400部| 波多野结衣一区二区三区| 欧美老年两性高潮| 国产精品污www在线观看| 国产高清一区日本| 国产精品国产自产拍高清av王其| 春色校园综合激情亚洲| 国产精品黄色在线观看 | 国产日产欧美精品一区二区三区| 首页国产欧美日韩丝袜| 日韩一区国产二区欧美三区| 精品一区二区三区在线视频| 亚洲精品在线网站| 成人av网站大全| 亚洲日本丝袜连裤袜办公室| 精品一区二区三区久久| 久久精品夜色噜噜亚洲aⅴ| 午夜精品免费在线观看| 日韩欧美成人午夜| 国产激情视频一区二区在线观看| 国产精品麻豆久久久| 在线观看91精品国产入口| 奇米色一区二区三区四区| 亚洲精品在线三区| 成人精品在线视频观看| 亚洲香肠在线观看| 91亚洲国产成人精品一区二三| 久久综合中文字幕| 99国内精品久久| 婷婷成人激情在线网| 久久夜色精品一区| 在线区一区二视频| 韩国女主播一区| 日韩欧美色电影| www.视频一区| 天天综合天天做天天综合| 久久久久久久久久久电影| 久久99久久99| 国产精品成人一区二区艾草| 欧美日韩美女一区二区| 亚洲国产另类精品专区| 26uuu精品一区二区| 色综合天天天天做夜夜夜夜做| 久久久99精品免费观看| 在线一区二区三区四区| 国内一区二区视频| 亚洲成av人片www| 日韩一级片在线观看| 不卡视频一二三| 久久精品av麻豆的观看方式| 亚洲色图欧美偷拍| 日韩一区二区在线观看| 色狠狠av一区二区三区| 国产精品亚洲一区二区三区妖精 | 91在线精品秘密一区二区| 日本欧美韩国一区三区| 欧美一区二区三区日韩视频| 青草国产精品久久久久久| 亚洲欧洲在线观看av| 91蝌蚪porny| 国产一区二区按摩在线观看| 午夜精品在线看| 亚洲一区二区视频在线| 日韩精品中文字幕一区二区三区| 不卡的av电影| 国产伦精品一区二区三区免费迷| 日韩成人免费电影| 亚洲图片有声小说| 一区二区欧美国产| 精品人在线二区三区| 成人黄色软件下载| 六月丁香综合在线视频| 日韩精品1区2区3区| 午夜视黄欧洲亚洲| 亚洲综合一区在线| 尤物在线观看一区| 欧美精品一区二区三区久久久 | 久久色.com| 2020国产精品自拍| 精品国产伦一区二区三区观看体验| 91精品啪在线观看国产60岁| 欧美亚洲图片小说| 国产精品18久久久| 国产成人av自拍| 国产成人av影院| 成人午夜精品在线| 99久久精品国产毛片| 色综合天天狠狠| 欧美日韩一区二区不卡| 风间由美一区二区av101| 婷婷中文字幕一区三区| 午夜电影一区二区| 免费看日韩精品| 久久成人免费网| 国产精品自在欧美一区| 成人午夜短视频| 99精品欧美一区二区蜜桃免费 | 欧美成人video| xnxx国产精品| 中文字幕+乱码+中文字幕一区| 欧美日韩大陆在线| 538prom精品视频线放| 日韩欧美色综合| 国产精品午夜春色av| 一区二区三区高清不卡| 日本成人中文字幕| 国产超碰在线一区| 欧美视频一区在线观看| 欧美一区二区视频在线观看2022 | 亚洲小少妇裸体bbw| 美女视频第一区二区三区免费观看网站| 美国一区二区三区在线播放| 国产精品自拍网站| 91蜜桃免费观看视频| 欧美三级日韩在线| 精一区二区三区| 99re这里都是精品| 在线播放视频一区| 久久精品亚洲国产奇米99| 亚洲精品乱码久久久久久黑人 | **欧美大码日韩| 无吗不卡中文字幕| 粉嫩一区二区三区在线看| 欧美日韩性生活| 国产欧美日韩亚州综合| 午夜视频一区在线观看| 粉嫩绯色av一区二区在线观看| 欧美色图免费看| 亚洲国产电影在线观看| 天天操天天色综合| www.性欧美| 亚洲精品一区二区三区香蕉| 亚洲丰满少妇videoshd| 成人精品鲁一区一区二区| 欧美日韩高清一区| 1区2区3区欧美| 国产成人综合视频| 91精品国产品国语在线不卡| 综合亚洲深深色噜噜狠狠网站| 免费成人性网站| 欧美三区在线视频| 国产精品视频九色porn| 另类欧美日韩国产在线| 色爱区综合激月婷婷| 久久久精品一品道一区| 蜜臀a∨国产成人精品| 日本乱码高清不卡字幕| 国产精品女同互慰在线看| 久久国产三级精品| 欧美高清一级片在线| 一区二区在线免费| 97久久久精品综合88久久| 国产日韩欧美精品综合| 蜜乳av一区二区三区| 91精品国产91热久久久做人人| 亚洲女子a中天字幕| 成a人片亚洲日本久久| 国产亚洲精品福利| 激情欧美日韩一区二区| 欧美一区二区不卡视频| 午夜精品一区二区三区三上悠亚| 99久久国产综合精品麻豆| 国产精品欧美一级免费| 国产盗摄女厕一区二区三区 | 国产成+人+日韩+欧美+亚洲| 精品国产一区久久| 麻豆免费精品视频| 欧美一区二区三区四区高清| 日韩精品乱码av一区二区| 欧美日韩激情一区二区三区|