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

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

?? sdlcheckbox.cpp

?? 基于SDL的圖形化貪心算法演示,支持節點的拖放
?? CPP
字號:
// ============================================================================
// Data Structures For Game Programmers
// Ron Penton
// SDLCheckBox.cpp
// This is a basic SDLGUI library that I've set up for use with the game demos
// I've used in the book.
// ============================================================================
#include "SDLCheckBox.h"


// -------------------------------------------------------
// Name:        SDLCheckBox::SDLCheckBox
// Description: This constructs the button
// Arguments:   - p_up: the up bitmap name
//              - p_down: the down bitmap name
//              - p_x: x coordinate
//              - p_y: y coordinate
//              - p_text: the text of the label
//              - p_tforecol: the foreground color of the 
//                            text
//              - p_tbackcol: the background color of the
//                            text
//              - p_font: the font of the label.
//              - p_func: the function this calls when
//                        pressed.
// -------------------------------------------------------
SDLCheckBox::SDLCheckBox( const char* p_up, 
                          const char* p_down,
                          int p_x, int p_y,
                          const char* p_text, 
                          SDL_Color p_tforecol,
                          SDL_Color p_tbackcol,
                          TTF_Font* p_font,
                          void (*p_func)(void) )
    : SDLButton( p_up, p_down, p_x, p_y, p_text,
                 p_tforecol, p_tbackcol, p_font, p_func )
{
}


// -------------------------------------------------------
// Name:        SDLButton::draw
// Description: draws the button.
// Arguments:   - p_dest: destination surface.
// -------------------------------------------------------
void SDLCheckBox::Draw( SDL_Surface* p_dest )
{
    SDLBlit( m_current, p_dest, m_x, m_y );
    SDLBlit( m_text, p_dest, 
             m_x + m_current->w,
             m_y + ((m_current->h - m_text->h) / 2));
}


// -------------------------------------------------------
// Name:        SDLButton::IsOver
// Description: determines if a position is over the button
// Arguments:   - p_x: x coordinate
//              - p_y: y coordinate
// Return Value: true if the position is over the button.
// -------------------------------------------------------
bool SDLCheckBox::IsOver( int p_x, int p_y )
{
    // check if cursor is over checkbox.
    if( p_x >= m_x && 
        p_x < (m_x + m_current->w) &&
        p_y >= m_y && 
        p_y < (m_y + m_current->h) )
    {
        return true;
    }
    // check if cursor is over text label.
    if( p_x >= m_x + m_current->w && 
        p_x < m_x + m_current->w + m_text->w &&
        p_y >= m_y && 
        p_y < (m_y + m_current->h) )
    {
        return true;
    }
    return false;
}


// -------------------------------------------------------
// Name:        SDLCheckBox::ClickDown
// Description: sets the down state of the button
// Arguments:   None.
// Return Value: None.
// -------------------------------------------------------
void SDLCheckBox::ClickDown()
{
    // do nothing.
}
 

// -------------------------------------------------------
// Name:        SDLCheckBox::ClickUp
// Description: sets the up state of the button
// Arguments:   None.
// Return Value: None.
// -------------------------------------------------------
void SDLCheckBox::ClickUp()
{
    Toggle();
    if( m_func != 0 )
    {
        m_func();
    }
}


// -------------------------------------------------------
// Name:        SDLCheckBox::ResetOnUp
// Description: resets the button state if needed.
// Arguments:   None.
// Return Value: None.
// -------------------------------------------------------
void SDLCheckBox::ResetOnUp()
{
    // do nothing.
}


// -------------------------------------------------------
// Name:        SDLCheckBox::CanGetFocus
// Description: determines if this object can get the 
//              focus of the GUI.
// Arguments:   None.
// Return Value: True or False
// -------------------------------------------------------
bool SDLCheckBox::CanGetFocus()
{
    // in our GUI, checkboxes cannot get the focus.
    return false;
}

// ----------------------------------------------------------------
//  Name:           GetFocus
//  Description:    tells the item to get the focus or not.
//  Arguments:      p_focus: true if the item gets the focus
//  Return Value:   None
// ----------------------------------------------------------------
void SDLCheckBox::GetFocus( bool p_focus )
{
    // do nothing
    return;
}


// ----------------------------------------------------------------
//  Name:           KeyPress
//  Description:    tells the GUI that a key was pressed when this
//                  item was in focus
//  Arguments:      p_key: the that was pressed
//                  p_mod: the keyboard modifier flag (shift, alt, 
//                         control).
//                  p_char: the UNICODE representation of the key
//  Return Value:   None
// ----------------------------------------------------------------
void SDLCheckBox::KeyPress( SDLKey p_key, SDLMod p_mod, Uint16 p_char )
{
    return;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆国产欧美日韩综合精品二区| 久久一日本道色综合| 亚洲乱码中文字幕| 一本一道久久a久久精品 | 亚洲国产成人tv| 欧美日韩国产电影| 久国产精品韩国三级视频| 久久久久97国产精华液好用吗| 国产成人免费在线观看| 亚洲激情六月丁香| 欧美精品在线观看一区二区| 麻豆久久一区二区| 中文字幕欧美激情一区| 在线观看视频91| 麻豆一区二区99久久久久| 国产精品毛片久久久久久| 在线观看精品一区| 韩国在线一区二区| 亚洲欧洲另类国产综合| 在线不卡免费av| 国产精品一区在线| 亚洲在线观看免费视频| 精品嫩草影院久久| 色综合久久九月婷婷色综合| 美女精品一区二区| 亚洲男人的天堂av| 日韩美女一区二区三区| 99re这里只有精品首页| 麻豆精品国产91久久久久久| 亚洲色大成网站www久久九九| 欧美一卡2卡3卡4卡| 日韩欧美国产成人一区二区| 成人高清av在线| 日本在线不卡视频一二三区| 中文字幕精品一区二区三区精品 | 国产精品白丝jk黑袜喷水| 亚洲小少妇裸体bbw| 久久精品一区四区| 91麻豆精品国产91久久久久久久久| 国产精品资源在线观看| 天天色图综合网| 亚洲天堂中文字幕| 国产欧美日韩激情| 日韩欧美精品在线视频| 欧美色男人天堂| 91在线观看免费视频| 国产一区二区不卡老阿姨| 日韩av在线发布| 亚洲品质自拍视频| 亚洲国产精品黑人久久久| 日韩亚洲欧美高清| 精品视频一区二区不卡| av男人天堂一区| 国产一区 二区 三区一级| 日韩专区一卡二卡| 亚洲成人动漫在线免费观看| 亚洲欧美电影院| 中文字幕亚洲欧美在线不卡| 久久久噜噜噜久久中文字幕色伊伊| 5566中文字幕一区二区电影| 欧美图区在线视频| 色嗨嗨av一区二区三区| 97se亚洲国产综合自在线不卡| 国产一区激情在线| 精品一区二区三区在线播放视频| 日本欧美在线观看| 日韩成人免费看| 免费在线观看精品| 日韩高清在线电影| 日一区二区三区| 丝袜美腿高跟呻吟高潮一区| 亚洲一区二区三区中文字幕在线| 亚洲男同1069视频| 一区二区三区四区激情 | 亚洲成av人片一区二区| 有码一区二区三区| 亚洲综合色噜噜狠狠| 亚洲激情校园春色| 国产91精品精华液一区二区三区| 日本欧美大码aⅴ在线播放| 日韩主播视频在线| 韩国欧美国产一区| 高清国产一区二区三区| 成年人国产精品| 91精彩视频在线| 91麻豆精品国产91久久久使用方法 | voyeur盗摄精品| 色综合久久综合| 欧美性大战久久久久久久蜜臀| 欧美三级中文字幕在线观看| 欧美丰满高潮xxxx喷水动漫| 日韩一区二区在线观看视频| 日韩欧美一级片| 日本一区二区三区在线不卡| 亚洲欧美视频在线观看| 香蕉成人伊视频在线观看| 日本vs亚洲vs韩国一区三区二区 | 国产日产欧美一区二区视频| 国产精品美女久久久久aⅴ国产馆| 亚洲精品乱码久久久久久| 三级欧美在线一区| 国产91富婆露脸刺激对白| 91色婷婷久久久久合中文| 欧美日韩国产一级片| 26uuu国产一区二区三区| 综合自拍亚洲综合图不卡区| 亚洲成人三级小说| 国产精品夜夜嗨| 色婷婷精品大视频在线蜜桃视频| 欧美一区二区三区四区视频| 国产午夜亚洲精品不卡| 亚洲老妇xxxxxx| 久久99热这里只有精品| 成人在线综合网| 欧美顶级少妇做爰| 中文字幕乱码一区二区免费| 水野朝阳av一区二区三区| 国产精品综合二区| 69久久夜色精品国产69蝌蚪网| 国产亚洲欧美日韩俺去了| 亚洲一区二区在线观看视频 | 中文字幕一区二区三区在线观看| 亚洲自拍与偷拍| 国产成人av资源| 亚洲图片欧美综合| 国产电影精品久久禁18| 欧美日韩亚洲另类| 中文字幕一区二区三| 久久99精品久久久久| 欧美日韩在线播| 国产精品国模大尺度视频| 久久精品国产99国产精品| 91国产免费看| 国产精品白丝在线| 狠狠色狠狠色综合| 777亚洲妇女| 亚洲综合色丁香婷婷六月图片| 成人小视频免费观看| 亚洲精品一区二区三区蜜桃下载| 亚洲一级片在线观看| 高清不卡一区二区| 久久综合久色欧美综合狠狠| 偷拍一区二区三区四区| 91在线你懂得| 国产精品久久精品日日| 国产一区二区三区久久悠悠色av| 制服丝袜成人动漫| 亚洲国产精品自拍| 欧美性大战久久久久久久| 亚洲精品成人天堂一二三| 99re66热这里只有精品3直播| 久久精品一区二区| 狠狠网亚洲精品| 久久一留热品黄| 国产在线精品视频| 欧美精品一区二| 精久久久久久久久久久| 日韩欧美色电影| 久久精品国产亚洲一区二区三区 | 91麻豆免费看片| 亚洲欧洲成人精品av97| 成人黄色小视频在线观看| 中文字幕中文乱码欧美一区二区| 国产毛片精品视频| 久久久久9999亚洲精品| 国产suv精品一区二区883| 国产校园另类小说区| 狠狠色丁香婷婷综合久久片| 久久只精品国产| caoporn国产精品| 亚洲色图丝袜美腿| 欧美日韩一区二区三区免费看| 亚洲一区二区三区爽爽爽爽爽 | 91麻豆精品国产91久久久| 午夜av电影一区| 91精品久久久久久久91蜜桃| 香港成人在线视频| 欧美成人性福生活免费看| 国产高清一区日本| 国产精品人妖ts系列视频| 91丨porny丨最新| 亚洲一区二区精品久久av| 911精品国产一区二区在线| 狠狠久久亚洲欧美| 日韩理论片在线| 欧美日韩免费在线视频| 奇米在线7777在线精品| 久久视频一区二区| 色婷婷综合中文久久一本| 亚洲精品国产精华液| 日韩一级黄色大片| 福利一区福利二区| 亚洲一区免费视频| 精品国产一区二区三区av性色| 成人国产精品免费网站| 天天综合色天天综合色h| 久久奇米777| 欧美最新大片在线看| 麻豆精品新av中文字幕| 国产精品免费视频观看|