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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? context.c

?? STM32+Grlib
?? C
字號:
//*****************************************************************************
//
// context.c - Routines for handling drawing contexts.
//
// Copyright (c) 2007-2010 Texas Instruments Incorporated.  All rights reserved.
// Software License Agreement
// 
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
// 
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
// 
// This is part of revision 5821 of the Stellaris Graphics Library.
//
//*****************************************************************************

#include "driverlib/debug.h"
#include "grlib/grlib.h"

//*****************************************************************************
//
//! \addtogroup primitives_api
//! @{
//
//*****************************************************************************

//*****************************************************************************
//
//! Initializes a drawing context.
//!
//! \param pContext is a pointer to the drawing context to initialize.
//! \param pDisplay is a pointer to the tDisplayInfo structure that describes
//! the display driver to use.
//!
//! This function initializes a drawing context, preparing it for use.  The
//! provided display driver will be used for all subsequent graphics
//! operations, and the default clipping region will be set to the extent of
//! the screen.
//!
//! \return None.
//
//*****************************************************************************
void
GrContextInit(tContext *pContext, const tDisplay *pDisplay)
{
    //
    // Check the arguments.
    //
    ASSERT(pContext);
    ASSERT(pDisplay);

    //
    // Set the size of the context.
    //
    pContext->lSize = sizeof(tContext);

    //
    // Save the pointer to the display.
    //
    pContext->pDisplay = pDisplay;

    //
    // Initialize the extent of the clipping region to the extents of the
    // screen.
    //
    pContext->sClipRegion.sXMin = 0;
    pContext->sClipRegion.sYMin = 0;
    pContext->sClipRegion.sXMax = pDisplay->usWidth - 1;
    pContext->sClipRegion.sYMax = pDisplay->usHeight - 1;

    //
    // Provide a default color and font.
    //
    pContext->ulForeground = 0;
    pContext->ulBackground = 0;
    pContext->pFont = 0;
}

//*****************************************************************************
//
//! Sets the extents of the clipping region.
//!
//! \param pContext is a pointer to the drawing context to use.
//! \param pRect is a pointer to the structure containing the extents of the
//! clipping region.
//!
//! This function sets the extents of the clipping region.  The clipping region
//! is not allowed to exceed the extents of the screen, but may be a portion of
//! the screen.
//!
//! The supplied coordinate are inclusive; \e sXMin of 1 and \e sXMax of 1 will
//! define a clipping region that will display only the pixels in the X = 1
//! column.  A consequence of this is that the clipping region must contain
//! at least one row and one column.
//!
//! \return None.
//
//*****************************************************************************
void
GrContextClipRegionSet(tContext *pContext, tRectangle *pRect)
{
    unsigned long ulW, ulH;

    //
    // Check the arguments.
    //
    ASSERT(pContext);
    ASSERT(pRect);

    //
    // Get the width and height of the display.
    //
    ulW = DpyWidthGet(pContext->pDisplay);
    ulH = DpyHeightGet(pContext->pDisplay);

    //
    // Set the extents of the clipping region, forcing them to reside within
    // the extents of the screen.
    //
    pContext->sClipRegion.sXMin = ((pRect->sXMin < 0) ? 0 :
                                   ((pRect->sXMin >= ulW) ? (ulW - 1) :
                                    pRect->sXMin));
    pContext->sClipRegion.sYMin = ((pRect->sYMin < 0) ? 0 :
                                   ((pRect->sYMin >= ulH) ? (ulH - 1) :
                                    pRect->sYMin));
    pContext->sClipRegion.sXMax = ((pRect->sXMax < 0) ? 0 :
                                   ((pRect->sXMax >= ulW) ? (ulW - 1) :
                                    pRect->sXMax));
    pContext->sClipRegion.sYMax = ((pRect->sYMax < 0) ? 0 :
                                   ((pRect->sYMax >= ulH) ? (ulH - 1) :
                                    pRect->sYMax));
}

//*****************************************************************************
//
// Close the Doxygen group.
//! @}
//
//*****************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美mv日韩mv国产网站app| 欧美久久久久久久久久| 国产精品综合视频| 经典一区二区三区| 黄页视频在线91| 国产精品亚洲第一区在线暖暖韩国| 久久99精品一区二区三区| 蜜桃精品视频在线观看| 美女视频免费一区| 久久精品国产久精国产| 国产真实乱偷精品视频免| 另类小说一区二区三区| 国内偷窥港台综合视频在线播放| 国产一区二区三区黄视频| 国产一区不卡在线| yourporn久久国产精品| 欧美在线|欧美| 日韩免费观看2025年上映的电影| 国产偷国产偷亚洲高清人白洁| 中文字幕高清不卡| 一区二区三区高清不卡| 日韩av二区在线播放| 国产一区二区三区国产| 成人动漫一区二区在线| 欧美丰满嫩嫩电影| 久久久蜜桃精品| 亚洲一区二区欧美日韩| 精品一区二区三区在线视频| 国产成人精品免费一区二区| 在线观看欧美精品| 日韩免费观看高清完整版在线观看| 日本一区二区三区四区| 亚洲韩国一区二区三区| 久久91精品久久久久久秒播| 91香蕉国产在线观看软件| 欧美一区二区三区电影| 1区2区3区精品视频| 免费在线看成人av| 色网综合在线观看| 久久久精品蜜桃| 日本一区中文字幕 | 精品视频在线免费看| 日韩三级高清在线| 悠悠色在线精品| 成人小视频免费观看| 日韩一级片在线观看| 亚洲美女在线一区| 国产福利91精品一区| 日韩一级欧美一级| 亚洲成人久久影院| 91蜜桃网址入口| 国产精品午夜春色av| 久久丁香综合五月国产三级网站| 欧美三级中文字幕| 亚洲另类在线视频| 成人手机在线视频| 久久久国产一区二区三区四区小说 | 亚洲综合色丁香婷婷六月图片| 精品写真视频在线观看 | 国产亚洲欧美激情| 日产国产欧美视频一区精品| 91福利精品视频| 国产精品久久久久久久久搜平片 | 亚洲成人一区二区在线观看| 99久久婷婷国产综合精品| 欧美成人伊人久久综合网| 亚洲国产欧美日韩另类综合 | 欧美精选一区二区| 亚洲成在人线在线播放| 91成人在线精品| 成人欧美一区二区三区视频网页| 国产一区欧美一区| 欧美精品一区二区三区很污很色的 | 色综合一区二区| 欧美国产精品v| 成人成人成人在线视频| 国产精品不卡一区| 99久久精品国产导航| 国产精品欧美综合在线| 成人黄色大片在线观看| 亚洲天堂精品视频| 欧美伊人久久久久久久久影院| 一区二区三区 在线观看视频| 色爱区综合激月婷婷| 亚洲欧美区自拍先锋| 日本高清不卡aⅴ免费网站| 一区二区高清视频在线观看| 在线观看不卡一区| 亚洲成人动漫av| 欧美一区二区三区的| 久草精品在线观看| 欧美韩国日本综合| 91在线国内视频| 丝袜美腿成人在线| 精品国产露脸精彩对白| 丁香激情综合五月| 一区二区三区四区视频精品免费 | 成人午夜在线免费| 亚洲一区二区三区四区五区黄| 欧美电影一区二区| 国产精品中文字幕一区二区三区| 亚洲国产激情av| 欧美日韩成人激情| 国产一区二区三区在线看麻豆| 国产精品久久久久久久久动漫| 欧美午夜免费电影| 国产精品亚洲视频| 亚洲精品欧美激情| 精品久久久久久久久久久久久久久 | 亚洲成人动漫一区| 久久免费美女视频| 欧美手机在线视频| 国产成人在线看| 五月天激情综合| 国产精品毛片a∨一区二区三区| 欧美日韩五月天| 成人av动漫在线| 老司机精品视频导航| 亚洲人123区| 国产欧美中文在线| 日韩精品一区二区三区在线播放| 99精品一区二区| 国产精品一级二级三级| 免费在线观看一区二区三区| 亚洲日本中文字幕区| 久久久久九九视频| 91精品国产综合久久香蕉麻豆| 99久久免费国产| 国产999精品久久久久久| 免费看欧美女人艹b| 玉米视频成人免费看| 国产精品福利在线播放| 26uuu亚洲| 日韩欧美三级在线| 欧美视频中文字幕| av电影一区二区| 国产成人福利片| 国产毛片精品国产一区二区三区| 日本色综合中文字幕| 亚洲午夜一二三区视频| 亚洲精品免费在线观看| 日韩毛片高清在线播放| 国产精品久久久久一区二区三区共 | 欧美性大战久久| 欧洲国产伦久久久久久久| 91在线视频免费91| 91蝌蚪porny| 91麻豆国产精品久久| 色婷婷av一区二区| 一本到一区二区三区| 一本一本大道香蕉久在线精品| 成人黄色在线视频| 色综合网站在线| 欧美探花视频资源| 91麻豆精品91久久久久久清纯| 7777精品伊人久久久大香线蕉超级流畅| 欧美在线免费观看视频| 在线不卡免费欧美| 91麻豆精品国产91久久久久久久久 | 日本精品一区二区三区高清| 91美女视频网站| 欧美亚洲日本国产| 91精品国产综合久久蜜臀| 欧美大尺度电影在线| 久久婷婷色综合| 国产精品欧美一级免费| 亚洲摸摸操操av| 天天色综合成人网| 久久se这里有精品| 国产 日韩 欧美大片| 91久久免费观看| 日韩一区二区高清| 国产女人水真多18毛片18精品视频| 综合分类小说区另类春色亚洲小说欧美| 亚洲精品成a人| 日本不卡高清视频| 成人午夜精品一区二区三区| 91美女精品福利| 欧美成人综合网站| 成人欧美一区二区三区| 日本色综合中文字幕| 成人听书哪个软件好| 欧美午夜片在线看| 国产日产精品1区| 午夜精品福利一区二区三区av| 国产一区二区不卡在线| 色菇凉天天综合网| 久久一二三国产| 亚洲午夜精品网| 国产不卡免费视频| 欧美二区三区的天堂| 中文字幕一区二区三区在线播放| 婷婷六月综合网| 91麻豆swag| 国产欧美视频一区二区三区| 全国精品久久少妇| 色婷婷av久久久久久久| 国产亚洲欧美日韩在线一区| 日韩激情av在线| 91高清视频免费看|