46 lines
927 B
C++
46 lines
927 B
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#include <ewol/context/cursor.h>
|
|
|
|
static const char* cursorDescriptionString[ewol::context::cursorCount+1] = {
|
|
"cursorArrow",
|
|
"cursorLeftArrow",
|
|
"cursorInfo",
|
|
"cursorDestroy",
|
|
"cursorHelp",
|
|
"cursorCycle",
|
|
"cursorSpray",
|
|
"cursorWait",
|
|
"cursorText",
|
|
"cursorCrossHair",
|
|
"cursorSlideUpDown",
|
|
"cursorSlideLeftRight",
|
|
"cursorResizeUp",
|
|
"cursorResizeDown",
|
|
"cursorResizeLeft",
|
|
"cursorResizeRight",
|
|
"cursorCornerTopLeft",
|
|
"cursorCornerTopRight",
|
|
"cursorCornerButtomLeft",
|
|
"cursorCornerButtomRight",
|
|
"cursorNone",
|
|
"cursorCount"
|
|
};
|
|
|
|
std::ostream& ewol::operator <<(std::ostream& _os, const enum ewol::context::cursorDisplay _obj) {
|
|
if (_obj >= 0 && _obj <ewol::context::cursorCount) {
|
|
_os << cursorDescriptionString[_obj];
|
|
} else {
|
|
_os << "[ERROR]";
|
|
}
|
|
return _os;
|
|
}
|
|
|
|
|