Remove `Focus` in `pane_grid`
Since #608, the `PaneGrid` widget does not handle pane focus.
This commit is contained in:
parent
df712f9ccf
commit
c03d46719e
|
@ -11,8 +11,8 @@
|
|||
use crate::Renderer;
|
||||
|
||||
pub use iced_native::pane_grid::{
|
||||
Axis, Configuration, Direction, DragEvent, Focus, Node, Pane, ResizeEvent,
|
||||
Split, State,
|
||||
Axis, Configuration, Direction, DragEvent, Node, Pane, ResizeEvent, Split,
|
||||
State,
|
||||
};
|
||||
|
||||
/// A collection of panes distributed using either vertical or horizontal splits
|
||||
|
|
|
@ -20,8 +20,8 @@ use iced_native::{
|
|||
};
|
||||
|
||||
pub use iced_native::pane_grid::{
|
||||
Axis, Configuration, Content, Direction, DragEvent, Focus, Pane,
|
||||
ResizeEvent, Split, State, TitleBar,
|
||||
Axis, Configuration, Content, Direction, DragEvent, Pane, ResizeEvent,
|
||||
Split, State, TitleBar,
|
||||
};
|
||||
|
||||
/// A collection of panes distributed using either vertical or horizontal splits
|
||||
|
|
|
@ -25,7 +25,7 @@ pub use direction::Direction;
|
|||
pub use node::Node;
|
||||
pub use pane::Pane;
|
||||
pub use split::Split;
|
||||
pub use state::{Focus, State};
|
||||
pub use state::State;
|
||||
pub use title_bar::TitleBar;
|
||||
|
||||
use crate::container;
|
||||
|
|
|
@ -26,22 +26,6 @@ pub struct State<T> {
|
|||
pub(super) internal: Internal,
|
||||
}
|
||||
|
||||
/// The current focus of a [`Pane`].
|
||||
///
|
||||
/// [`Pane`]: struct.Pane.html
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Focus {
|
||||
/// The [`Pane`] is just focused.
|
||||
///
|
||||
/// [`Pane`]: struct.Pane.html
|
||||
Idle,
|
||||
|
||||
/// The [`Pane`] is being dragged.
|
||||
///
|
||||
/// [`Pane`]: struct.Pane.html
|
||||
Dragging,
|
||||
}
|
||||
|
||||
impl<T> State<T> {
|
||||
/// Creates a new [`State`], initializing the first pane with the provided
|
||||
/// state.
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
use crate::Renderer;
|
||||
|
||||
pub use iced_native::pane_grid::{
|
||||
Axis, Configuration, Direction, DragEvent, Focus, Node, Pane, ResizeEvent,
|
||||
Split, State,
|
||||
Axis, Configuration, Direction, DragEvent, Node, Pane, ResizeEvent, Split,
|
||||
State,
|
||||
};
|
||||
|
||||
/// A collection of panes distributed using either vertical or horizontal splits
|
||||
|
|
Loading…
Reference in New Issue