Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrated Image and ProgressBar widgets #2

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

debris
Copy link
Contributor

@debris debris commented Aug 22, 2019

WIP, I need to add renderers to this PR, but I had a problem with running the example. It fails with #1

Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you.

I need to add renderers to this PR

The tests should pass once we fix the doc examples. The ggez example should work fine. There is no need to implement renderers for all the available widgets, only the ones the example uses.

/// ```
/// use iced::Image;
///
/// let image = Image::new("image");
Copy link
Member

Choose a reason for hiding this comment

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

I would probably write something like:

# let my_image_handle = String::from("some_handle"); // This line will be hidden in docs
let image = Image::new(my_image_handle);

That way, we remark the fact that the handle is generic.

/// # Example
///
/// ```
/// use coffee::ui::ProgressBar;
Copy link
Member

Choose a reason for hiding this comment

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

Should be iced::ProgressBar.

/// A widget that displays a progress of an action.
///
/// It implements [`Widget`] when the associated [`core::Renderer`] implements
/// the [`button::Renderer`] trait.
Copy link
Member

Choose a reason for hiding this comment

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

progress_bar::Renderer here.

@hecrj
Copy link
Member

hecrj commented Aug 27, 2019

I fixed #1 in #3. Let me know if you have any further issues.

@hecrj hecrj merged commit 64fc0ff into iced-rs:master Sep 3, 2019
@hecrj
Copy link
Member

hecrj commented Sep 3, 2019

I fixed the issues and merged the PR manually.

Thank you again! 🎉

@hecrj hecrj added the feature New feature or request label Sep 16, 2019
@hecrj hecrj added this to the 0.1.0 milestone Sep 24, 2019
tarkah pushed a commit to tarkah/iced that referenced this pull request Sep 2, 2022
hecrj added a commit that referenced this pull request Oct 29, 2022
Add `column!` and `row!` macros in `iced_pure`
CurryPseudo pushed a commit to CurryPseudo/iced that referenced this pull request Apr 25, 2023
Move IME candidate window .
sorry for big change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants