Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Added a Rust code example for gtk::DrawingArea #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebastianMeinberger
Copy link

I added the gtk::DrawingArea documentation up to the implemented structs but changed the example code from C++ to Rust. I added it here and not in the documentation itself because it gets overwritten there at each new release.

I added the gtk::DrawingArea documentation up to the implemented structs but changed the example code from C++ to Rust. I added it here and not in the documentation itself because it gets overwritten there at each new release.
@@ -366,3 +366,74 @@ let dialog = FileChooserDialog::with_buttons::<Window>(
&[("_Cancel", ResponseType::Cancel), ("_Open", ResponseType::Accept)]
);
```
# DrawingArea
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line should should be switched with the next line iirc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or removed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even better!

@EPashkin
Copy link
Member

@SebastianMeinberger Note that you can test result docs, if you locally replace gtk's dependency lgpl-docs with you version (git or even path) and run cargo doc --features "dox,embed-lgpl-docs"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants