pub enum KittyImageDelete {
    All {
        delete: bool,
    },
    ByImageId {
        image_id: u32,
        placement_id: Option<u32>,
        delete: bool,
    },
    ByImageNumber {
        image_number: u32,
        placement_id: Option<u32>,
        delete: bool,
    },
    AtCursorPosition {
        delete: bool,
    },
    AnimationFrames {
        delete: bool,
    },
    DeleteAt {
        x: u32,
        y: u32,
        delete: bool,
    },
    DeleteAtZ {
        x: u32,
        y: u32,
        z: i32,
        delete: bool,
    },
    DeleteColumn {
        x: u32,
        delete: bool,
    },
    DeleteRow {
        y: u32,
        delete: bool,
    },
    DeleteZ {
        z: i32,
        delete: bool,
    },
}
Expand description

When the uppercase form is used, the delete: field is set to true which means that the underlying data is also released. Otherwise, the data is available to be placed again.

Variants

All

Fields

delete: bool

d=‘a’ or d=‘A’. Delete all placements on visible screen

ByImageId

Fields

image_id: u32
placement_id: Option<u32>
delete: bool

d=‘i’ or d=‘I’ Delete all images with specified image_id. If placement_id is specified, then both image_id and placement_id must match

ByImageNumber

Fields

image_number: u32
placement_id: Option<u32>
delete: bool

d=‘n’ or d=‘N’ Delete newest image with specified image number. If placement_id is specified, then placement_id must also match.

AtCursorPosition

Fields

delete: bool

d=‘c’ or d=‘C’ Delete all placements that intersect with the current cursor position.

AnimationFrames

Fields

delete: bool

d=‘f’ or d=‘F’ Delete animation frames

DeleteAt

Fields

x: u32
y: u32
delete: bool

d=‘p’ or d=‘P’ Delete all placements that intersect the specified cell x and y coordinates

DeleteAtZ

Fields

x: u32
y: u32
z: i32
delete: bool

d=‘q’ or d=‘Q’ Delete all placements that intersect the specified cell x and y coordinates, with the specified z-index

DeleteColumn

Fields

x: u32
delete: bool

d=‘x’ or d=‘X’ Delete all placements that intersect the specified column.

DeleteRow

Fields

y: u32
delete: bool

d=‘y’ or d=‘Y’ Delete all placements that intersect the specified row.

DeleteZ

Fields

z: i32
delete: bool

d=‘z’ or d=‘Z’ Delete all placements that have the specified z-index.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.