-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1193 from iced-rs/responsive-widget
`Responsive` widget
- Loading branch information
Showing
34 changed files
with
765 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use iced_native::overlay; | ||
use iced_native::Element; | ||
|
||
use ouroboros::self_referencing; | ||
|
||
#[self_referencing(pub_extras)] | ||
pub struct Cache<'a, Message: 'a, Renderer: 'a> { | ||
pub element: Element<'a, Message, Renderer>, | ||
|
||
#[borrows(mut element)] | ||
#[covariant] | ||
pub overlay: Option<overlay::Element<'this, Message, Renderer>>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
pub mod component; | ||
pub mod responsive; | ||
|
||
pub use component::Component; | ||
pub use responsive::Responsive; | ||
|
||
mod cache; | ||
|
||
use cache::{Cache, CacheBuilder}; |
Oops, something went wrong.