[DEV] update cursor dusplay function
This commit is contained in:
parent
971acf0036
commit
42984619d7
2
build
2
build
@ -1 +1 @@
|
||||
Subproject commit 18b7c4a34a599f24add0d67a0a10e20582adf5d2
|
||||
Subproject commit b685e8442a30802718a5bcae77a1c0fc14c1fbba
|
2
external/etk
vendored
2
external/etk
vendored
@ -1 +1 @@
|
||||
Subproject commit 9e93578be9d48f8cbf21de9fe56ceaf17eeb8b21
|
||||
Subproject commit 4d1a39adcbf9e12677f5357eefc1e9499a5d41a3
|
@ -1160,10 +1160,10 @@ vec3 ewol::Text::calculateSize(const char32_t& _charcode) {
|
||||
}
|
||||
|
||||
|
||||
void ewol::Text::printCursor(bool _isInsertMode) {
|
||||
void ewol::Text::printCursor(bool _isInsertMode, float _cursorSize) {
|
||||
int32_t fontHeigh = m_font->getHeight(m_mode);
|
||||
if (true == _isInsertMode) {
|
||||
m_vectorialDraw.rectangleWidth(vec3(20, fontHeigh, 0) );
|
||||
m_vectorialDraw.rectangleWidth(vec3(_cursorSize, fontHeigh, 0) );
|
||||
} else {
|
||||
m_vectorialDraw.setThickness(2);
|
||||
m_vectorialDraw.lineRel( vec3(0, fontHeigh, 0) );
|
||||
|
@ -365,8 +365,9 @@ namespace ewol {
|
||||
/**
|
||||
* @brief draw a cursor at the specify position
|
||||
* @param[in] _isInsertMode True if the insert mode is activated
|
||||
* @param[in] _cursorSize The sizae of the cursor that might be set when insert mode is set [default 20]
|
||||
*/
|
||||
void printCursor(bool _isInsertMode);
|
||||
void printCursor(bool _isInsertMode, float _cursorSize = 20.0f);
|
||||
private:
|
||||
/**
|
||||
* @brief calculate the element number that is the first out the alignement range
|
||||
|
Loading…
Reference in New Issue
Block a user