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

📄 uifltk-sub.cpp

📁 一个任天堂掌上游戏机NDS的源代码
💻 CPP
字号:
/*************************************************************************** DSemu - The Next Generation                                             ** Fltk user interface: Plugin-specific windows [uifltk-sub.cpp]           ** Copyright Imran Nazar, 2005; released under the BSD public licence.     ** Fltk used under the terms of the LGPL.                                  ***************************************************************************/#include <FL/Fl.h>#include "uifltk.h"// Initialise window. All we do is make the window, and set it hidden.UIFltk::UI::SubWindow::SubWindow(int w, int h, void *t)	: Fl_Double_Window(w,h,"Fill this"){    mainWnd = (Fl_Window*)t;    xdim = w; ydim = h;    visible=0;    hide();}// Shut down the window: just hide itUIFltk::UI::SubWindow::~SubWindow(){    hide();}	// Handle the hide event by telling the main UI about it.int UIFltk::UI::SubWindow::handle(int e){    int ret = Fl_Window::handle(e);    switch(e)    {        case FL_HIDE:            Fl::handle(winID, mainWnd);	    break;    }    return ret;}// Every plugin window is just a wrapper for a framebuffer, so the draw// function simply needs to dump this buffer on screen.void UIFltk::UI::SubWindow::draw(){    Fl_Double_Window::draw();    fl_draw_image((u8*)buffer, 0,0, xdim,ydim, 4);}/*** EOF: uifltk-sub.cpp *************************************************/

⌨️ 快捷键说明

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