Custom Notebook's Page and Label widgets access in Rust

I have application that requires access to custom Notebook Page and Label widgets (from outside)

In gtkmm, it’s possible to extend the Label or Page classes and access it features by downcast, for example, by get_nth_page

In rust, class extension feature not available and thoughts to make separated vector registry, but I can’t find the way to make unique ID’s because widget has reorderable option enabled and registry can mismatch without re-index it manually on every reorder event.

How do you work with Notebook widgets? Maybe another solution exist to not write a lot of code.

Found solution for Rust implementation by using RefCell + HashMap where children widgets related by their unique names, generated for every new tab appended.

Useful glib function for these needs:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.