voxelman ~master (2018-10-12T19:51:42Z)
Dub
Repo
TextEditorViewportData
voxelman
gui
textedit
texteditorview
Undocumented in source.
@
Component
("gui.TextEditorViewportData",
Replication
.
none
)
struct
TextEditorViewportData {
TextModel
editor
;
TextViewSettingsRef
settings
;
MonoTime
blinkStart
;
ivec2
textPos
;
int
autoscrollY
;
int
firstVisibleLine
;
int
lastVisibleLine
;
bool
autoscroll
;
bool
hardAutoscroll
;
void
resetBlinkTimer
();
void
scroll
(ivec2 delta);
void
update
(GuiContext ctx, ivec2 size);
}
Members
Functions
resetBlinkTimer
void
resetBlinkTimer
()
Undocumented in source. Be warned that the author may not have intended to support it.
scroll
void
scroll
(ivec2 delta)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void
update
(GuiContext ctx, ivec2 size)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
autoscroll
bool
autoscroll
;
Undocumented in source.
autoscrollY
int
autoscrollY
;
Undocumented in source.
blinkStart
MonoTime
blinkStart
;
Undocumented in source.
editor
TextModel
editor
;
Undocumented in source.
firstVisibleLine
int
firstVisibleLine
;
Undocumented in source.
hardAutoscroll
bool
hardAutoscroll
;
Undocumented in source.
lastVisibleLine
int
lastVisibleLine
;
Undocumented in source.
settings
TextViewSettingsRef
settings
;
Undocumented in source.
textPos
ivec2
textPos
;
Undocumented in source.
Meta
Source
See Implementation
voxelman
gui
textedit
texteditorview
functions
glyphWidthRange
keyPressToCommand
registerComponents
textWidth
structs
GlyphWidthRange
TextEditorLineNumbersData
TextEditorLineNumbersLogic
TextEditorViewportData
TextEditorViewportLogic