mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 12:17:46 +08:00
15 lines
389 B
C++
Executable File
15 lines
389 B
C++
Executable File
#include <cdroid.h>
|
|
#include <cdlog.h>
|
|
#include <fstream>
|
|
#include <widget/keyboardview.h>
|
|
|
|
int main(int argc,const char*argv[]){
|
|
App app(argc,argv);
|
|
Window*w=new Window(0,0,1280,720);
|
|
KeyboardView*kbdv=new KeyboardView(1280,240);
|
|
Keyboard*kbd= new Keyboard(&app,"cdroid:xml/qwerty.xml",1280,240);
|
|
kbdv->setKeyboard(kbd);
|
|
w->addView(kbdv);
|
|
return app.exec();
|
|
}
|