segmented button: support tab drag + drop
This commit is contained in:
parent
709044891e
commit
7f321cb0a3
5 changed files with 950 additions and 33 deletions
|
|
@ -88,6 +88,19 @@ pub use self::style::{Appearance, ItemAppearance, ItemStatusAppearance, StyleShe
|
|||
pub use self::vertical::{VerticalSegmentedButton, vertical};
|
||||
pub use self::widget::{Id, SegmentedButton, SegmentedVariant, focus};
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum InsertPosition {
|
||||
Before,
|
||||
After,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct ReorderEvent {
|
||||
pub dragged: Entity,
|
||||
pub target: Entity,
|
||||
pub position: InsertPosition,
|
||||
}
|
||||
|
||||
/// Associates extra data with an external secondary map.
|
||||
///
|
||||
/// The secondary map internally uses a `Vec`, so should only be used for data that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue