20,741
edits
m (→2023: https://sourceforge.net/p/flightgear/mailman/message/37795864/) |
m (→Pango Text: https://sourceforge.net/p/flightgear/mailman/message/37781788/) |
||
Line 10: | Line 10: | ||
=== Pango Text === | === Pango Text === | ||
{{Stub}} | {{Stub}} | ||
On the long hand we need to implement simple, GTK like markup support for | |||
canvas.Text, mainly for easy selection handling (I have that working for | |||
single-line text, but it's got visual artifacts and it would be incredibly | |||
complicated to make it work for multi-line text), but there are other use | |||
cases too (like syntax highlighting in the Nasal console, etc.).<ref>https://sourceforge.net/p/flightgear/mailman/message/37781788/</ref> | |||
Successfully subclassed Pango::Renderer, and | Successfully subclassed Pango::Renderer, and | ||
I'm also successfully showing an osg::Texture2D as element on the canvas, | I'm also successfully showing an osg::Texture2D as element on the canvas, | ||
Line 34: | Line 40: | ||
w.show(); | w.show(); | ||
</pre> | </pre> | ||
=== PUI Emulation === | === PUI Emulation === | ||
[[File:Gc-monitoring-via-new-canvas-proptree-widget.png|thumb|Screen shot showing a [[Canvas GUI]] dialog rendering the new [[Property browser]] dialog based on porting the legacy [[PUI]] widget, showing GC stats]] | [[File:Gc-monitoring-via-new-canvas-proptree-widget.png|thumb|Screen shot showing a [[Canvas GUI]] dialog rendering the new [[Property browser]] dialog based on porting the legacy [[PUI]] widget, showing GC stats]] |