pub struct ManipulateWidget { /* private fields */ }Implementations§
Source§impl ManipulateWidget
impl ManipulateWidget
pub fn new(app: &mut App, selected_pixels: HashSet<PixelPosition>) -> Self
pub fn is_dragging(&self) -> bool
pub fn with_imported_image(app: &App, image: &Sprite) -> Self
pub fn selected_pixels(&self) -> &HashSet<PixelPosition>
pub fn is_terminated(&self) -> bool
pub fn tool_region(&self) -> Region
pub fn is_consumed_by_tool(&self, event: &Event) -> bool
Trait Implementations§
Source§impl Debug for ManipulateWidget
impl Debug for ManipulateWidget
Source§impl VariableSizeWidget for ManipulateWidget
impl VariableSizeWidget for ManipulateWidget
fn set_region(&mut self, app: &App, region: Region)
Source§impl Widget for ManipulateWidget
impl Widget for ManipulateWidget
fn region(&self) -> Region
fn render(&self, app: &App, canvas: &mut Canvas<'_>)
fn handle_event(&mut self, app: &mut App, event: &mut Event) -> Result<()>
fn handle_event_after(&mut self, app: &mut App) -> Result<()>
fn children(&mut self) -> Vec<&mut dyn Widget>
fn handle_event_before(&mut self, app: &mut App) -> Result<()>
fn render_if_need(&self, app: &App, canvas: &mut Canvas<'_>)
Auto Trait Implementations§
impl Freeze for ManipulateWidget
impl RefUnwindSafe for ManipulateWidget
impl Send for ManipulateWidget
impl Sync for ManipulateWidget
impl Unpin for ManipulateWidget
impl UnwindSafe for ManipulateWidget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more