Mercurial > projects > mde
comparison mde/gui/renderer/SimpleRenderer.d @ 99:5de5810e3516
Implemented an editable TextContent widget; it's now possible to edit text options using the GUI.
The widget supports moving the text entry-point using arrows and home/end, but there's no visual indicator or edit-point setting using the mouse.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 12:44:32 +0000 |
parents | 30470bc19ca4 |
children | 0ea4a3e651ae |
comparison
equal
deleted
inserted
replaced
98:49e7cfed4b34 | 99:5de5810e3516 |
---|---|
131 } | 131 } |
132 | 132 |
133 TextAdapter getAdapter (char[] text, int col) { | 133 TextAdapter getAdapter (char[] text, int col) { |
134 TextAdapter a; | 134 TextAdapter a; |
135 a.font = defaultFont; | 135 a.font = defaultFont; |
136 a.set (text, col); | 136 a.content = text; |
137 a.colour = Colour (col); | |
137 return a; | 138 return a; |
138 } | 139 } |
139 | 140 |
140 protected: | 141 protected: |
141 FontStyle defaultFont; | 142 FontStyle defaultFont; |