33 lines
750 B
C++
33 lines
750 B
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2010, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license GPL v3 (see license file)
|
|
*/
|
|
|
|
#ifndef __BUFFER_MANAGER_H__
|
|
#define __BUFFER_MANAGER_H__
|
|
|
|
#include <Buffer.h>
|
|
#include <appl/globalMsg.h>
|
|
#include <ewol/widget/Widget.h>
|
|
|
|
namespace BufferManager
|
|
{
|
|
void init(void);
|
|
void unInit(void);
|
|
int32_t getSelected(void);
|
|
appl::Buffer* get(int32_t BufferID);
|
|
bool exist(int32_t BufferID);
|
|
bool exist(etk::FSNode &myFile);
|
|
int32_t getId(etk::FSNode &myFile);
|
|
// return the number of buffer (open in the past) if 5 buffer open and 4 close == > return 5
|
|
uint32_t size(void);
|
|
uint32_t sizeOpen(void);
|
|
int32_t witchBuffer(int32_t iEmeElement);
|
|
};
|
|
|
|
#endif
|
|
|