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

📄 main.cpp

📁 基于paragui实现的一个在linux操作系统下使用framebuffer来进行窗口模式的文件选择的源代码。
💻 CPP
字号:
#include "MyApplication.h"#include "iostream"using namespace std;int main(int argc, char **argv ){                     	MyApplication app;	if(app.IsDirectory(argv[1]) == false)        {              cout << "Wrong Path!" << endl;              exit(1);        }        strcpy(app.NowPath,argv[1]);	app.LoadTheme( "simple" );		app.InitScreen( 640, 480, 0 );	app.SetEmergencyQuit(true);        app.ShowCursor(PG_Application::NONE);		PmpListBox ListBox(NULL, PG_Rect(10,10,250,240));        app.MyListBox = &ListBox;	ListBox.Show();              // app.Add(&ListBox);      //  app.GotoFirst();//	PG_ListBoxItem* item;        app.GetFileList();        app.ShowItem(&ListBox);	app.Run();		return 0;}

⌨️ 快捷键说明

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