mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-24 11:33:50 +08:00
graphics/nxwidgets: Fix type mismatches
Use int for getCursorPosition/moveCursorToPosition.
This commit is contained in:
committed by
Xiang Xiao
parent
10a0764175
commit
cbec960c59
@@ -312,7 +312,7 @@ void CScrollingTextBox::wrapCursor(bool wrap)
|
|||||||
* @param position The new cursor position.
|
* @param position The new cursor position.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void CScrollingTextBox::moveCursorToPosition(const int32_t position)
|
void CScrollingTextBox::moveCursorToPosition(const int position)
|
||||||
{
|
{
|
||||||
m_texbox->moveCursorToPosition(position);
|
m_texbox->moveCursorToPosition(position);
|
||||||
m_scrollbar->redraw();
|
m_scrollbar->redraw();
|
||||||
@@ -325,7 +325,7 @@ void CScrollingTextBox::moveCursorToPosition(const int32_t position)
|
|||||||
* @return position The cursor position.
|
* @return position The cursor position.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const int32_t CScrollingTextBox::getCursorPosition(void) const
|
const int CScrollingTextBox::getCursorPosition(void) const
|
||||||
{
|
{
|
||||||
return m_texbox->getCursorPosition();
|
return m_texbox->getCursorPosition();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ namespace NXWidgets
|
|||||||
* @param position The new cursor position.
|
* @param position The new cursor position.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
virtual void moveCursorToPosition(const int32_t position);
|
virtual void moveCursorToPosition(const int position);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the cursor position. This is the index within the string that
|
* Get the cursor position. This is the index within the string that
|
||||||
@@ -326,7 +326,7 @@ namespace NXWidgets
|
|||||||
* @return position The cursor position.
|
* @return position The cursor position.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
virtual const int32_t getCursorPosition(void) const;
|
virtual const int getCursorPosition(void) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Insert text at the specified index.
|
* Insert text at the specified index.
|
||||||
|
|||||||
Reference in New Issue
Block a user