Canvas wrappers: Difference between revisions

Jump to navigation Jump to search
m
Line 35: Line 35:
For example, if someone creates a new Canvas-based widget, say a "button" - all that is needed to start using it in FG, would be modifying the corresponding GUI XML files, and replacing the  
For example, if someone creates a new Canvas-based widget, say a "button" - all that is needed to start using it in FG, would be modifying the corresponding GUI XML files, and replacing the  


<type>button</type>
<syntaxhighlight lang="cpp">
<type>button</type>
</syntaxhighlight>  


with this instead:
with this instead:


<type>canvas</type>
<syntaxhighlight lang="cpp">
<widget>button</widget>
<type>canvas</type>
<widget>button</widget>
</syntaxhighlight>  


(i.e. rename type and add a new "widget" node)
(i.e. rename type and add a new "widget" node)

Navigation menu