2011-10-13 14:17:23 +02:00
|
|
|
/**
|
|
|
|
*******************************************************************************
|
|
|
|
* @file Main.cpp
|
|
|
|
* @brief main fonction
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @date 13/10/2011
|
|
|
|
* @par Project
|
2011-10-17 18:05:15 +02:00
|
|
|
* ewol
|
2011-10-13 14:17:23 +02:00
|
|
|
*
|
|
|
|
* @par Copyright
|
|
|
|
* Copyright 2011 Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* This software is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY.
|
|
|
|
*
|
|
|
|
* Licence summary :
|
|
|
|
* You can modify and redistribute the sources code and binaries.
|
|
|
|
* You can send me the bug-fix
|
|
|
|
*
|
|
|
|
* Term of the licence in in the file licence.txt.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
2011-10-17 18:05:15 +02:00
|
|
|
|
2011-10-21 15:07:56 +02:00
|
|
|
#include <ewol.h>
|
2011-10-31 11:01:47 +01:00
|
|
|
#include <ewolFont.h>
|
2011-10-17 18:05:15 +02:00
|
|
|
|
|
|
|
#include <unistd.h>
|
2011-10-13 14:17:23 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2011-10-21 15:07:56 +02:00
|
|
|
// need to run xcompmgr to have transparency
|
|
|
|
|
|
|
|
class Plop :public ewol::Windows
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Plop(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
~Plop(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2011-10-13 14:17:23 +02:00
|
|
|
/**
|
|
|
|
* @brief main input fonction
|
|
|
|
*/
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2011-10-21 15:07:56 +02:00
|
|
|
Plop * myWindowsExample = new Plop();
|
|
|
|
|
2011-10-17 18:05:15 +02:00
|
|
|
ewol::Init(argc, argv);
|
|
|
|
|
2011-10-31 11:01:47 +01:00
|
|
|
|
|
|
|
if (true == ewol::AddFont("dataTest/TextMonospace.ebt", true, true, true) ) {
|
|
|
|
//fontID = GetFontIdWithFileName("dataTest/TextMonospace.ebt");
|
|
|
|
}
|
|
|
|
|
2011-10-21 15:07:56 +02:00
|
|
|
// create the specific windows
|
|
|
|
ewol::DisplayWindows(myWindowsExample);
|
2011-10-17 18:05:15 +02:00
|
|
|
|
|
|
|
ewol::Run();
|
|
|
|
|
2011-10-21 15:07:56 +02:00
|
|
|
ewol::DisplayWindows(NULL);
|
|
|
|
|
|
|
|
delete(myWindowsExample);
|
|
|
|
|
2011-10-17 18:05:15 +02:00
|
|
|
ewol::UnInit();
|
2011-10-13 14:17:23 +02:00
|
|
|
|
2011-10-21 15:07:56 +02:00
|
|
|
|
2011-10-13 14:17:23 +02:00
|
|
|
return 0;
|
|
|
|
}
|