fltk-rs / fltk-table

A smart table widget for fltk-rs
MIT License
16 stars 4 forks source link

WidgetExt not implemented for SmartTable #3

Closed jlgerber closed 2 years ago

jlgerber commented 2 years ago

When trying to make the table resizable within a pack, I get the following error:

the trait bound `SmartTable: fltk::prelude::WidgetExt` is not satisfied
  --> src/main.rs:75:20
   |
75 |     pack.resizable(&table);
   |          --------- ^^^^^^ the trait `fltk::prelude::WidgetExt` is not implemented for `SmartTable`
   |          |
   |          required by a bound introduced by this call

I see that WidgetExt is implemented for Table and TableRow...

MoAlyousef commented 2 years ago

You can try:

pack.resizable(&*table);

Since SmartTable only implements WidgetExt via Deref.