-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:iced-rs/iced_aw
- Loading branch information
Showing
22 changed files
with
113 additions
and
93 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
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 |
---|---|---|
@@ -1,47 +1,39 @@ | ||
//! Use a floating button to overlay a button over some content | ||
//! Use a floating element to overlay a button over some content | ||
//! | ||
//! *This API requires the following crate features to be activated: `floating_button`* | ||
//! *This API requires the following crate features to be activated: `floating_element`* | ||
|
||
/// Positional [`Anchor`](Anchor) for the [`FloatingButton`](super::FloatingButton). | ||
/// Positional [`Anchor`](Anchor) for the [`FloatingElement`](super::FloatingElement). | ||
#[derive(Copy, Clone, Debug, Hash)] | ||
pub enum Anchor { | ||
/// NorthWest [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the top left of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the top left of the underlying element. | ||
NorthWest, | ||
|
||
/// NorthEast [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the top right of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the top right of the underlying element. | ||
NorthEast, | ||
|
||
/// SouthWest [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the bottom left of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the bottom left of the underlying element. | ||
SouthWest, | ||
|
||
/// SouthEast [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the bottom right of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the bottom right of the underlying element. | ||
SouthEast, | ||
|
||
/// North [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the top of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the top of the underlying element. | ||
North, | ||
|
||
/// East [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the right of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the right of the underlying element. | ||
East, | ||
|
||
/// South [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the bottom of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the bottom of the underlying element. | ||
South, | ||
|
||
/// West [`Anchor`](Anchor) for positioning the | ||
/// [`Button`](iced_native::widget::button::Button) on the left of the | ||
/// underlying element. | ||
/// [`Button`](iced_widget::Button) on the left of the underlying element. | ||
West, | ||
} |
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
Oops, something went wrong.