pub struct ImageEventData {
pub click_point: (i32, i32),
pub src: Option<String>,
pub data_id: i64,
pub act: String,
pub file: Option<PathBuf>,
pub target_size: (i32, i32),
}Expand description
用于表示鼠标点击图片时的事件信息。
Fields§
§click_point: (i32, i32)鼠标点击位置,相对于图片的左上角。
src: Option<String>图片的来源地址。
data_id: i64图片所属数据段的ID。
act: String执行动作。
file: Option<PathBuf>§target_size: (i32, i32)目标尺寸,可能与图片原始尺寸不同。
Implementations§
Trait Implementations§
Source§impl Clone for ImageEventData
impl Clone for ImageEventData
Source§fn clone(&self) -> ImageEventData
fn clone(&self) -> ImageEventData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImageEventData
impl RefUnwindSafe for ImageEventData
impl Send for ImageEventData
impl Sync for ImageEventData
impl Unpin for ImageEventData
impl UnwindSafe for ImageEventData
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