graphics/nxwidgets: Fix type mismatches
Use int for getCursorPosition/moveCursorToPosition.
This commit is contained in:
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user