Home
last modified time | relevance | path

Searched refs:cursorPos (Results 1 – 25 of 1484) sorted by relevance

12345678910>>...60

/dports/games/q2pro/q2pro/shared/
H A Dq_field.c73 field->cursorPos = 0; in IF_Clear()
131 if( field->cursorPos > 0 ) { in IF_KeyEvent()
135 field->cursorPos--; in IF_KeyEvent()
173 field->cursorPos--; in IF_KeyEvent()
180 field->cursorPos++; in IF_KeyEvent()
186 field->cursorPos = 0; in IF_KeyEvent()
230 field->cursorPos++; in IF_CharEvent()
239 field->cursorPos++; in IF_CharEvent()
255 int cursorPos, offset; in IF_Draw() local
265 cursorPos = field->cursorPos; in IF_Draw()
[all …]
/dports/games/dhewm3/dhewm3-1.5.1/neo/ui/
H A DEditWindow.cpp96 cursorPos = 0; in CommonInit()
160 cursorPos = len; in Draw()
246 memmove( &buffer[ cursorPos - 1 ], &buffer[ cursorPos ], len + 1 - cursorPos); in HandleEvent()
247 cursorPos--; in HandleEvent()
280 memmove( &buffer[ cursorPos + 1 ], &buffer[ cursorPos ], len + 1 - cursorPos ); in HandleEvent()
290 cursorPos++; in HandleEvent()
305 memmove( &buffer[cursorPos], &buffer[cursorPos + 1], len - cursorPos); in HandleEvent()
340 cursorPos--; in HandleEvent()
344 cursorPos--; in HandleEvent()
348 cursorPos--; in HandleEvent()
[all …]
/dports/games/bzflag-server/bzflag-2.4.22/src/bzflag/
H A DHUDuiTypeIn.cxx32 , cursorPos(0) in HUDuiTypeIn()
62 if (cursorPos > maxLength) in setMaxLength()
101 cursorPos--; in doKeyPress()
106 cursorPos++; in doKeyPress()
110 cursorPos = 0; in doKeyPress()
124 cursorPos++; in doKeyPress()
146 if (cursorPos == 0) in doKeyPress()
149 cursorPos--; in doKeyPress()
150 …string = string.substr(0, cursorPos) + string.substr(cursorPos + 1, string.length() - cursorPos + … in doKeyPress()
160 … string = string.substr(0, cursorPos) + c + string.substr( cursorPos, string.length() - cursorPos); in doKeyPress()
[all …]
/dports/games/bzflag/bzflag-2.4.22/src/bzflag/
H A DHUDuiTypeIn.cxx32 , cursorPos(0) in HUDuiTypeIn()
62 if (cursorPos > maxLength) in setMaxLength()
101 cursorPos--; in doKeyPress()
106 cursorPos++; in doKeyPress()
110 cursorPos = 0; in doKeyPress()
124 cursorPos++; in doKeyPress()
146 if (cursorPos == 0) in doKeyPress()
149 cursorPos--; in doKeyPress()
150 …string = string.substr(0, cursorPos) + string.substr(cursorPos + 1, string.length() - cursorPos + … in doKeyPress()
160 … string = string.substr(0, cursorPos) + c + string.substr( cursorPos, string.length() - cursorPos); in doKeyPress()
[all …]
/dports/games/maxr/maxr-0.2.9/src/ui/graphical/menu/widgets/
H A Dlineedit.cpp41 cursorPos (0), in cLineEdit()
205 cursorPos = cursor; in handleClicked()
257 cursorPos = endOffset; in resetTextPosition()
304 if (changeCursor && cursorPos > 0) doPosDecrease (cursorPos); in scrollLeft()
320 if (cursorPos < (int)text.length()) doPosIncrease (cursorPos, cursorPos); in scrollRight()
330 if (cursorPos > 0) in deleteLeft()
335 if (cursorPos <= 1) in deleteLeft()
342 cursorPos--; in deleteLeft()
346 cursorPos--; in deleteLeft()
388 cursorPos = 0; in handleKeyPressed()
[all …]
/dports/devel/kf5-ktexteditor/ktexteditor-5.89.0/src/vimode/
H A Dcompletionreplayer.cpp49 …if (!doc->characterAt(cursorPos).isLetterOrNumber() && doc->characterAt(cursorPos) != QLatin1Char(… in replay()
50 cursorPos.setColumn(cursorPos.column() - 1); in replay()
52 …while (cursorPos.column() >= 0 && (doc->characterAt(cursorPos).isLetterOrNumber() || doc->characte… in replay()
53 wordStart = cursorPos; in replay()
54 cursorPos.setColumn(cursorPos.column() - 1); in replay()
57 cursorPos = m_view->cursorPosition(); in replay()
58 KTextEditor::Cursor wordEnd = KTextEditor::Cursor(cursorPos.line(), cursorPos.column() - 1); in replay()
59 while (cursorPos.column() < doc->lineLength(cursorPos.line()) in replay()
60 …&& (doc->characterAt(cursorPos).isLetterOrNumber() || doc->characterAt(cursorPos) == QLatin1Char('… in replay()
61 wordEnd = cursorPos; in replay()
[all …]
/dports/devel/kyra/kyra/gui/
H A Dtextwidget.cpp57 cursorPos = 0; in KrTextWidget()
79 cursorPos = 0; in KrTextWidget()
163 if ( cursorPos > 0 ) in KeyEvent()
167 --cursorPos; in KeyEvent()
183 --cursorPos; in KeyEvent()
188 ++cursorPos; in KeyEvent()
192 cursorPos = 0; in KeyEvent()
196 cursorPos = length; in KeyEvent()
218 ++cursorPos; in KeyEvent()
245 cursorPos = Clamp( cursorPos, in PositionCursor()
[all …]
/dports/sysutils/go-wtf/wtf-0.21.0/vendor/github.com/rivo/tview/tview-2e907d29e475/
H A Dinputfield.go69 cursorPos int member
104 i.cursorPos = len(text)
291 if i.cursorPos < 0 {
292 i.cursorPos = 0
294 i.cursorPos = len(text)
299 i.offset = i.cursorPos
344 i.cursorPos -= textWidth
350 i.cursorPos += textWidth
364 newText := i.text[:i.cursorPos] + string(r) + i.text[i.cursorPos:]
400 i.cursorPos = 0
[all …]
/dports/games/spring/spring_98.0/rts/aGui/
H A DLineEdit.cpp17 , cursorPos(0) in LineEdit()
35 cursorPos = content.size(); in SetContent()
67 char c = tempText[cursorPos]; in DrawSelf()
101 if (cursorPos > 0) { in HandleEventSelf()
102 content.erase(--cursorPos, 1); in HandleEventSelf()
108 content.erase(cursorPos, 1); in HandleEventSelf()
118 ++cursorPos; in HandleEventSelf()
123 if (cursorPos > 0) { in HandleEventSelf()
124 --cursorPos; in HandleEventSelf()
129 cursorPos = 0; in HandleEventSelf()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/liblouis/src/tests/braille-specs/
H A Dfr-bfu-comp8.yaml22 cursorPos: [7,7]
28 cursorPos: [7,7]
32 cursorPos: [7,7]
36 cursorPos: [7,7]
40 cursorPos: [7,7]
64 cursorPos: [7,7]
70 cursorPos: [7,7]
74 cursorPos: [7,7]
78 cursorPos: [7,7]
82 cursorPos: [7,7]
/dports/devel/lab/lab-0.17.2/vendor/github.com/rivo/tview/
H A Dinputfield.go70 cursorPos int member
115 i.cursorPos = len(text)
366 if i.cursorPos < 0 {
367 i.cursorPos = 0
369 i.cursorPos = len(text)
374 i.offset = i.cursorPos
454 i.cursorPos -= textWidth
460 i.cursorPos += textWidth
474 newText := i.text[:i.cursorPos] + string(r) + i.text[i.cursorPos:]
522 i.cursorPos = 0
[all …]
/dports/sysutils/go-wtf/wtf-0.21.0/vendor/github.com/rivo/tview/
H A Dinputfield.go70 cursorPos int member
115 i.cursorPos = len(text)
366 if i.cursorPos < 0 {
367 i.cursorPos = 0
369 i.cursorPos = len(text)
374 i.offset = i.cursorPos
454 i.cursorPos -= textWidth
460 i.cursorPos += textWidth
474 newText := i.text[:i.cursorPos] + string(r) + i.text[i.cursorPos:]
522 i.cursorPos = 0
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/sci/graphics/
H A Dcontrols16.cpp174 uint16 oldCursorPos = cursorPos; in kernelTexteditChange()
189 if (cursorPos > 0) { in kernelTexteditChange()
190 cursorPos--; text.deleteChar(cursorPos); in kernelTexteditChange()
195 if (cursorPos < textSize) { in kernelTexteditChange()
196 text.deleteChar(cursorPos); in kernelTexteditChange()
208 if (cursorPos > 0) { in kernelTexteditChange()
212 if (cursorPos + 1 <= textSize) { in kernelTexteditChange()
219 if (cursorPos + 1 <= textSize) { in kernelTexteditChange()
223 if (cursorPos > 0) { in kernelTexteditChange()
231 cursorPos = 0; text.clear(); in kernelTexteditChange()
[all …]
/dports/net-im/tut/tut-0.0.17/vendor/github.com/rivo/tview/
H A Dinputfield.go70 cursorPos int member
115 i.cursorPos = len(text)
367 if i.cursorPos < 0 {
368 i.cursorPos = 0
370 i.cursorPos = len(text)
375 i.offset = i.cursorPos
455 i.cursorPos -= textWidth
461 i.cursorPos += textWidth
475 newText := i.text[:i.cursorPos] + string(r) + i.text[i.cursorPos:]
523 i.cursorPos = 0
[all …]
/dports/audio/stmp/stmp-0.0.2/vendor/github.com/rivo/tview/
H A Dinputfield.go70 cursorPos int member
115 i.cursorPos = len(text)
367 if i.cursorPos < 0 {
368 i.cursorPos = 0
370 i.cursorPos = len(text)
375 i.offset = i.cursorPos
455 i.cursorPos -= textWidth
461 i.cursorPos += textWidth
475 newText := i.text[:i.cursorPos] + string(r) + i.text[i.cursorPos:]
523 i.cursorPos = 0
[all …]
/dports/science/jmol/jmol-14.32.7/src/org/jmol/util/
H A DCommandHistory.java54 private int cursorPos; field in CommandHistory
83 cursorPos = 0; in reset()
102 cursorPos = nextCommand; in setMaxSize()
112 if (cursorPos <= 0) in getCommandUp()
114 cursorPos--; in getCommandUp()
118 if (cursorPos < 0) in getCommandUp()
119 cursorPos = 0; in getCommandUp()
131 cursorPos++; in getCommandDown()
211 int cpos = cursorPos; in find()
220 cursorPos = cpos; in find()
[all …]
/dports/math/kmplot/kmplot-21.12.3/kmplot/
H A Dequationhighlighter.cpp103 int cursorPos = m_parent->m_equationEditWidget->textCursor().position(); in highlightBlock() local
104 if (cursorPos < 0) in highlightBlock()
105 cursorPos = 0; in highlightBlock()
108 if (cursorPos >= text.size()) in highlightBlock()
109 cursorPos = text.size() - 1; in highlightBlock()
110 else if (cursorPos > 0 && (text[cursorPos-1] == '(' || text[cursorPos-1] == ')')) in highlightBlock()
111 cursorPos--; in highlightBlock()
113 bool haveOpen = text[cursorPos] == '('; in highlightBlock()
114 bool haveClose = text[cursorPos] == ')'; in highlightBlock()
122 for (int i = cursorPos; i >= 0 && i < text.size(); i += inc) { in highlightBlock()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/sci/graphics/
H A Dcontrols16.cpp154 uint16 oldCursorPos = cursorPos; in kernelTexteditChange()
169 if (cursorPos > 0) { in kernelTexteditChange()
170 cursorPos--; text.deleteChar(cursorPos); in kernelTexteditChange()
175 if (cursorPos < textSize) { in kernelTexteditChange()
176 text.deleteChar(cursorPos); in kernelTexteditChange()
187 if (cursorPos > 0) { in kernelTexteditChange()
188 cursorPos--; textChanged = true; in kernelTexteditChange()
192 if (cursorPos + 1 <= textSize) { in kernelTexteditChange()
193 cursorPos++; textChanged = true; in kernelTexteditChange()
199 cursorPos = 0; text.clear(); in kernelTexteditChange()
[all …]
/dports/games/hedgewars-server/hedgewars-src-1.0.0/hedgewars/
H A DuChat.pas132 str[0]:= char(cursorPos);
156 cursorPos:= 0;
694 if cursorPos > 0 then
696 dec(cursorPos);
697 until ((cursorPos = 0) or IsFirstCharByte(InputStr.s[cursorPos + 1]));
707 until ((cursorPos = len) or IsFirstCharByte(InputStr.s[cursorPos + 1]));
731 cursorPos:= min(cursorPos, selectedPos);
796 while (cursorPos > 0) and (GetInputCharSkipClass(cursorPos) = skip) do
1026 cursorPos:= min(cursorPos, selectedPos);
1051 cursorPos:= max(cursorPos, selectedPos);
[all …]
/dports/games/hedgewars/hedgewars-src-1.0.0/hedgewars/
H A DuChat.pas132 str[0]:= char(cursorPos);
156 cursorPos:= 0;
694 if cursorPos > 0 then
696 dec(cursorPos);
697 until ((cursorPos = 0) or IsFirstCharByte(InputStr.s[cursorPos + 1]));
707 until ((cursorPos = len) or IsFirstCharByte(InputStr.s[cursorPos + 1]));
731 cursorPos:= min(cursorPos, selectedPos);
796 while (cursorPos > 0) and (GetInputCharSkipClass(cursorPos) = skip) do
1026 cursorPos:= min(cursorPos, selectedPos);
1051 cursorPos:= max(cursorPos, selectedPos);
[all …]
/dports/devel/bullet/bullet3-3.21/examples/ThirdPartyLibs/Gwen/Controls/
H A DColorControls.cpp158 return GetColorAtPos(cursorPos.x, cursorPos.y); in GetSelectedColor()
180 if (cursorPos.x < 0) in OnMouseMoved()
181 cursorPos.x = 0; in OnMouseMoved()
183 cursorPos.x = Width(); in OnMouseMoved()
185 if (cursorPos.y < 0) in OnMouseMoved()
186 cursorPos.y = 0; in OnMouseMoved()
188 cursorPos.y = Height(); in OnMouseMoved()
238 Gwen::Rect testRect = Gwen::Rect(cursorPos.x - 3, cursorPos.y - 3, 6, 6); in Render()
295 if (cursorPos.y < 0) in OnMouseMoved()
296 cursorPos.y = 0; in OnMouseMoved()
[all …]
/dports/devel/py-bullet3/bullet3-3.21/examples/ThirdPartyLibs/Gwen/Controls/
H A DColorControls.cpp158 return GetColorAtPos(cursorPos.x, cursorPos.y); in GetSelectedColor()
180 if (cursorPos.x < 0) in OnMouseMoved()
181 cursorPos.x = 0; in OnMouseMoved()
183 cursorPos.x = Width(); in OnMouseMoved()
185 if (cursorPos.y < 0) in OnMouseMoved()
186 cursorPos.y = 0; in OnMouseMoved()
188 cursorPos.y = Height(); in OnMouseMoved()
238 Gwen::Rect testRect = Gwen::Rect(cursorPos.x - 3, cursorPos.y - 3, 6, 6); in Render()
295 if (cursorPos.y < 0) in OnMouseMoved()
296 cursorPos.y = 0; in OnMouseMoved()
[all …]
/dports/devel/liblouis/liblouis-3.20.0/tests/braille-specs/
H A Dfr-bfu-comp8.yaml29 cursorPos: [7,7]
35 cursorPos: [7,7]
39 cursorPos: [7,7]
43 cursorPos: [7,7]
47 cursorPos: [7,7]
71 cursorPos: [7,7]
77 cursorPos: [7,7]
81 cursorPos: [7,7]
85 cursorPos: [7,7]
89 cursorPos: [7,7]
/dports/audio/fasttracker2/ft2-clone-1.49/src/
H A Dft2_textboxes.c161 t->cursorPos = start; in deleteMarkedText()
173 t->cursorPos = start; in setCursorToMarkStart()
197 t->cursorPos = end; in setCursorToMarkEnd()
415 t->cursorPos = 0; in moveTextCursorToMouseX()
433 t->cursorPos = i; in moveTextCursorToMouseX()
641 assert(t->cursorPos >= 0 && t->cursorPos <= getTextLength(t, 0)); in setMarkX2ToMouseX()
1019 i = t->cursorPos; in handleTextEditControl()
1054 i = t->cursorPos; in handleTextEditControl()
1126 if (t->cursorPos >= 0 && t->cursorPos < t->maxChars) in handleTextEditInputChar()
1154 t->cursorPos--; in moveTextCursorLeft()
[all …]
/dports/graphics/okular/okular-21.12.3/autotests/
H A Deditannotationcontentstest.cpp59 int cursorPos() in cursorPos() function in MockEditor
94 m_cursorPos = cursorPos; in slotAnnotationContentsChangedByUndoRedo()
159 QCOMPARE(12, m_editor1->cursorPos()); in testConsecutiveCharBackspacesMerged()
165 QCOMPARE(10, m_editor1->cursorPos()); in testConsecutiveCharBackspacesMerged()
184 QCOMPARE(12, m_editor1->cursorPos()); in testConsecutiveCharBackspacesMerged()
190 QCOMPARE(7, m_editor1->cursorPos()); in testConsecutiveCharBackspacesMerged()
220 QCOMPARE(7, m_editor1->cursorPos()); in testConsecutiveNewlineBackspacesNotMerged()
227 QCOMPARE(8, m_editor1->cursorPos()); in testConsecutiveNewlineBackspacesNotMerged()
233 QCOMPARE(9, m_editor1->cursorPos()); in testConsecutiveNewlineBackspacesNotMerged()
259 QCOMPARE(7, m_editor1->cursorPos()); in testConsecutiveCharInsertionsMerged()
[all …]

12345678910>>...60