Remove deprecated type
This commit is contained in:
parent
df3c97b17e
commit
0ab5588a93
@ -837,7 +837,7 @@ void BufferText::cursorMove(ewol::eventKbMoveType_te moveTypeEvent)
|
|||||||
* @return ---
|
* @return ---
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
bool BufferText::RequestPositionRequest(position_ts& newPos)
|
bool BufferText::RequestPositionRequest(coord2D_ts& newPos)
|
||||||
{
|
{
|
||||||
if (-1 == m_requestDisplayPos.x || -1 == m_requestDisplayPos.y) {
|
if (-1 == m_requestDisplayPos.x || -1 == m_requestDisplayPos.y) {
|
||||||
return false;
|
return false;
|
||||||
@ -866,7 +866,7 @@ void BufferText::RequestPositionUpdate(bool centerPage)
|
|||||||
/*
|
/*
|
||||||
// Display position (Y mode):
|
// Display position (Y mode):
|
||||||
//EDN_INFO("BufferText::RequestPositionUpdate() m_displayStart(" << m_displayStartPixelX << "px," << m_displayStartLineId << "id) m_displaySize(" << m_displaySize.x << "," <<m_displaySize.y << ")");
|
//EDN_INFO("BufferText::RequestPositionUpdate() m_displayStart(" << m_displayStartPixelX << "px," << m_displayStartLineId << "id) m_displaySize(" << m_displaySize.x << "," <<m_displaySize.y << ")");
|
||||||
position_ts cursorPosition;
|
coord2D_ts cursorPosition;
|
||||||
cursorPosition.y = m_EdnBuf.CountLines(0, m_cursorPos);
|
cursorPosition.y = m_EdnBuf.CountLines(0, m_cursorPos);
|
||||||
int32_t lineStartPos = m_EdnBuf.StartOfLine(m_cursorPos);
|
int32_t lineStartPos = m_EdnBuf.StartOfLine(m_cursorPos);
|
||||||
cursorPosition.x = m_EdnBuf.CountDispChars(lineStartPos, m_cursorPos);
|
cursorPosition.x = m_EdnBuf.CountDispChars(lineStartPos, m_cursorPos);
|
||||||
@ -896,7 +896,7 @@ void BufferText::RequestPositionUpdate(bool centerPage)
|
|||||||
*/
|
*/
|
||||||
} else {
|
} else {
|
||||||
// center the line at the middle of the screen :
|
// center the line at the middle of the screen :
|
||||||
position_ts cursorPosition;
|
coord2D_ts cursorPosition;
|
||||||
//EDN_DEBUG(" -------------------------------------------------");
|
//EDN_DEBUG(" -------------------------------------------------");
|
||||||
cursorPosition.y = m_EdnBuf.CountLines(0, m_cursorPos);
|
cursorPosition.y = m_EdnBuf.CountLines(0, m_cursorPos);
|
||||||
//EDN_DEBUG(" cursor position : " << m_cursorPos << " ==> ligne=" << cursorPosition.y);
|
//EDN_DEBUG(" cursor position : " << m_cursorPos << " ==> ligne=" << cursorPosition.y);
|
||||||
|
@ -85,7 +85,7 @@ class BufferText : public Buffer {
|
|||||||
|
|
||||||
// Direct buffer IO
|
// Direct buffer IO
|
||||||
EdnBuf m_EdnBuf; //!< buffer associated on this displayer
|
EdnBuf m_EdnBuf; //!< buffer associated on this displayer
|
||||||
position_ts m_displaySize; //!< number of char displayable in the screan
|
coord2D_ts m_displaySize; //!< number of char displayable in the screan
|
||||||
// Cursor :
|
// Cursor :
|
||||||
int32_t m_cursorPos; //!< position in the buffer of the cursor
|
int32_t m_cursorPos; //!< position in the buffer of the cursor
|
||||||
int32_t m_cursorPreferredCol; //!< colomn of the last up and down ...
|
int32_t m_cursorPreferredCol; //!< colomn of the last up and down ...
|
||||||
@ -95,10 +95,10 @@ class BufferText : public Buffer {
|
|||||||
void BasicInit(void);
|
void BasicInit(void);
|
||||||
// moving the current position of the display windows ...
|
// moving the current position of the display windows ...
|
||||||
private:
|
private:
|
||||||
position_ts m_requestDisplayPos; //!< number of char displayable in the screan
|
coord2D_ts m_requestDisplayPos; //!< number of char displayable in the screan
|
||||||
void RequestPositionUpdate(bool centerPage = false);
|
void RequestPositionUpdate(bool centerPage = false);
|
||||||
public:
|
public:
|
||||||
bool RequestPositionRequest(position_ts& newPos);
|
bool RequestPositionRequest(coord2D_ts& newPos);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool TextDMoveUp(int32_t offset);
|
bool TextDMoveUp(int32_t offset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user