You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using cargo docs online for people to work on Loupe and I'm sometimes using it myself.
With using the Properties macro the docs got a bit worse. Before, getters also had documentation. Now I have to lookup the field in the struct to see it's documentation.
Is it possible to either link to the field in getter/setter docs or do create an overview of all properties for the object or maybe both?
The text was updated successfully, but these errors were encountered:
I'm wondering if the field documentation on the imp struct can be forwarded to the generated setters and getters docs. For example,
#[derive(glib::Properties)]#[properties(wrapper_type = Paintable)]pubstructPaintableImp{/// The width of the paintable.#[property(get, set)]pub(super)width:OnceCell<u32>,/// The height of the paintable.#[property(get, set)]pub(super)height:OnceCell<u32>,}
will generate the following getters:
implPaintable{/// The width of the paintable.pubfnwidth(&self) -> u32{
...}/// The height of the paintable.pubfnheight(&self) -> u32{
...}}
Not sure though of a great API to specialize the documentation for the setters.
I'm using cargo docs online for people to work on Loupe and I'm sometimes using it myself.
With using the
Properties
macro the docs got a bit worse. Before, getters also had documentation. Now I have to lookup the field in the struct to see it's documentation.Is it possible to either link to the field in getter/setter docs or do create an overview of all properties for the object or maybe both?
The text was updated successfully, but these errors were encountered: