Skip to content

Export Image and ImageData by default#1011

Merged
xStrom merged 9 commits intolinebender:masterfrom
covercash2:image_expose
Jun 2, 2020
Merged

Export Image and ImageData by default#1011
xStrom merged 9 commits intolinebender:masterfrom
covercash2:image_expose

Conversation

@covercash2
Copy link
Contributor

this change exposes all of the Image functions and ImageData::empty without exposing the image crate. it also shows hints about the "image" feature in the API docs.

next

this PR doesn't add any functionality, really. still without the "image" feature enabled you can only draw an empty Image widget, but this is just an incremental step toward a more robust API for this feature.
i already have a bunch of documentation changes for image.rs, but i wanted to push this change first (i'm also working on my git habits).

This makes the `Image` widget and associated APIs
more discoverable.

There is also a note added that directs users on
how to enable the "image" feature.
@xStrom xStrom added the widget concerns a particular widget label Jun 2, 2020
Copy link
Member

@xStrom xStrom left a comment

Choose a reason for hiding this comment

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

I think this is a good idea. Need to adjust some details though.

@xStrom xStrom added the S-waiting-on-author waits for changes from the submitter label Jun 2, 2020
@xStrom xStrom added S-needs-review waits for review and removed S-waiting-on-author waits for changes from the submitter labels Jun 2, 2020
Copy link
Member

@xStrom xStrom left a comment

Choose a reason for hiding this comment

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

Thanks!

The CI seems to have some problems right now, will merge once that gets resolved.

@xStrom xStrom removed the S-needs-review waits for review label Jun 2, 2020
@xStrom xStrom merged commit 8e46a06 into linebender:master Jun 2, 2020
@covercash2 covercash2 deleted the image_expose branch June 2, 2020 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

widget concerns a particular widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants