()
| 39 | } |
| 40 | |
| 41 | func (ed *Editor) RenderWidget() { |
| 42 | if ed.PushBounds() { |
| 43 | if ed.needsLayout { |
| 44 | ed.renderLayout() |
| 45 | ed.needsLayout = false |
| 46 | } |
| 47 | if ed.targetSet { |
| 48 | ed.scrollCursorToTarget() |
| 49 | } |
| 50 | ed.PositionScrolls() |
| 51 | ed.renderAllLines() |
| 52 | if ed.StateIs(states.Focused) { |
| 53 | ed.startCursor() |
| 54 | } else { |
| 55 | ed.stopCursor() |
| 56 | } |
| 57 | ed.RenderChildren() |
| 58 | ed.RenderScrolls() |
| 59 | ed.PopBounds() |
| 60 | } else { |
| 61 | ed.stopCursor() |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // textStyleProperties returns the styling properties for text based on HiStyle Markup |
| 66 | func (ed *Editor) textStyleProperties() map[string]any { |
nothing calls this directly
no test coverage detected