Adding non-UI fields to "classes" #34
Replies: 2 comments
-
Currently fl2rust just deals with global declarations, that's why you find your declarations are moved to the module's namespace. Your suggestion is useful, however it would be hard to implement correctly. Any declaration in a struct would need to be properly initialized in a constructor function. I'll try to have a go at it at some point. |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying. At the moment, I am still learning FLTK and FLUID; I think that now I can code up what I need (I have now realised that I can write an extra code file that does anything that FLUID/fl2rust does not generate). Actually, the most useful things at the moment would be
|
Beta Was this translation helpful? Give feedback.
-
This is more of a discussion point rather than an issue, but I can't find a discussion forum for this project...
Is there any way to add lines of code to a "class" i.e. a struct? I wanted to add some field declarations but the "declaration" item puts the code somewhere else.
Beta Was this translation helpful? Give feedback.
All reactions