fltk-rs / fl2rust

A fluid (fltk ui designer) file to Rust transpiler
MIT License
52 stars 3 forks source link

Failed to resolve: use of undeclared type "OutputType" #4

Closed AllenDang closed 3 years ago

AllenDang commented 3 years ago

Here is the fluid file

Fl_Output output {
  xywh {5 45 570 370} type Multiline
}

It generates like this

let mut output = Output::new(5, 45, 570, 370, None);
output.set_type(OutputType::Multiline);

Error message is

undeclared type "OutputType"
MoAlyousef commented 3 years ago

Hi I just published a fix in 0.4.6

AllenDang commented 3 years ago

@MoAlyousef Thanks! It is fixed.