iced_split 0.1.0

resizeable splits for iced
Documentation
  • Coverage
  • 100%
    47 out of 47 items documented1 out of 34 items with examples
  • Size
  • Source code size: 38.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.55 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • edwloef/iced_split
    16 3 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • edwloef

iced_split - resizeable splits for iced

iced license crates.io docs.rs

Overview

iced_split provides a pane-style resizeable split widget for use with the iced GUI library.

use iced::Element;
use iced_split::vertical_split;

enum Message {
	OnDrag(f32),
}

struct State {
	split_at: f32,
}

impl State {
	fn update(&mut self, message: Message) {
		match message {
			Message::OnDrag(split_at) => self.split_at = split_at,
		}
	}

	fn view(&self) -> Element<'_, Message> {
		vertical_split(
			"left pane",
			"right pane",
			self.split_at,
			Message::OnDrag,
		)
		.into()
	}
}

Compatibility

Refer to the table below to determine which version(s) of iced_split are compatible with your version of iced.

iced iced_split
0.14.0 0.1.0
0.15-dev 0.2-dev

License

iced_split is licensed under the MIT License. By contributing to iced_split, you agree that your contributions will be licensed under the MIT as well.