Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewinternal.h
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Line(s) | 172 | public: | |||
---|---|---|---|---|---|
185 | void bottomOfView(bool sel = false); | 185 | void bottomOfView(bool sel = false); | ||
186 | void pageUp(bool sel = false, bool half = false); | 186 | void pageUp(bool sel = false, bool half = false); | ||
187 | void pageDown(bool sel = false, bool half = false); | 187 | void pageDown(bool sel = false, bool half = false); | ||
188 | void top(bool sel = false); | 188 | void top(bool sel = false); | ||
189 | void bottom(bool sel = false); | 189 | void bottom(bool sel = false); | ||
190 | void top_home(bool sel = false); | 190 | void top_home(bool sel = false); | ||
191 | void bottom_end(bool sel = false); | 191 | void bottom_end(bool sel = false); | ||
192 | 192 | | |||
193 | KTextEditor::Cursor getCursor() const | 193 | /** | ||
194 | * Accessor to the current caret position | ||||
195 | * @return position of the caret as @c KTextEditor::Cursor | ||||
196 | * @see KTextEditor::Cursor | ||||
197 | */ | ||||
198 | KTextEditor::Cursor cursorPosition() const | ||||
194 | { | 199 | { | ||
195 | return m_cursor; | 200 | return m_cursor; | ||
196 | } | 201 | } | ||
197 | KTextEditor::Cursor getMouse() const | 202 | | ||
203 | /** | ||||
204 | * Accessor to the current mouse position | ||||
205 | * @return position of the mouse as @c KTextEditor::Cursor | ||||
206 | * @see KTextEditor::Cursor | ||||
207 | */ | ||||
208 | KTextEditor::Cursor mousePosition() const | ||||
198 | { | 209 | { | ||
199 | return m_mouse; | 210 | return m_mouse; | ||
200 | } | 211 | } | ||
201 | 212 | | |||
202 | QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor, bool realCursor = true, bool includeBorder = true) const; | 213 | QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor, bool realCursor = true, bool includeBorder = true) const; | ||
203 | // by default, works on coordinates of the whole widget, eg. offsetted by the border | 214 | // by default, works on coordinates of the whole widget, eg. offsetted by the border | ||
204 | KTextEditor::Cursor coordinatesToCursor(const QPoint &coord, bool includeBorder = true) const; | 215 | KTextEditor::Cursor coordinatesToCursor(const QPoint &coord, bool includeBorder = true) const; | ||
205 | QPoint cursorCoordinates(bool includeBorder = true) const; | 216 | QPoint cursorCoordinates(bool includeBorder = true) const; | ||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |