Normalisation with etk application

This commit is contained in:
2012-04-23 10:15:43 +02:00
parent 247aac0684
commit 5d1837eb69
56 changed files with 446 additions and 576 deletions

View File

@@ -0,0 +1,45 @@
/**
*******************************************************************************
* @file Display.cpp
* @brief Editeur De N'ours : Basic Pixbuf display function
* @author Edouard DUPIN
* @date 21/01/2010
* @par Project
* Edn
*
* @par Copyright
* Copyright 2010 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
* You can not earn money with this Software (if the source extract from Edn
* represent less than 50% of original Sources)
* Term of the licence in in the file licence.txt.
*
*******************************************************************************
*/
#include <appl/Debug.h>
#include <tools_globals.h>
#include <Display.h>
#include <ewol/ewol.h>
#undef __class__
#define __class__ "Display"
int32_t Display::GetFontHeight(void)
{
int32_t fontId = ewol::GetDefaultFontId();
return ewol::GetHeight(fontId);
}
int32_t Display::GetFontWidth(void)
{
int32_t fontId = ewol::GetDefaultFontId();
return ewol::GetWidth(fontId, "A");
}

View File

@@ -0,0 +1,43 @@
/**
*******************************************************************************
* @file Display.h
* @brief Editeur De N'ours : Basic Pixbuf display function (header)
* @author Edouard DUPIN
* @date 21/01/2010
* @par Project
* Edn
*
* @par Copyright
* Copyright 2010 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
* You can not earn money with this Software (if the source extract from Edn
* represent less than 50% of original Sources)
* Term of the licence in in the file licence.txt.
*
*******************************************************************************
*/
#ifndef __TOOLS_DISPLAY_H__
#define __TOOLS_DISPLAY_H__
#include <appl/Debug.h>
/**
* Basic namespace for the font display system
*/
namespace Display
{
int32_t GetFontHeight(void);
int32_t GetFontWidth(void);
};
#endif