pub struct ShapeData {
pub old_width: i32,
pub old_height: i32,
pub new_width: i32,
pub new_height: i32,
pub new_cols: i32,
pub new_rows: i32,
}Expand description
用于表示窗口尺寸变化前后差异的数据结构。
Fields§
§old_width: i32旧的宽度。
old_height: i32旧的高度。
new_width: i32新的宽度。
new_height: i32新的高度。
new_cols: i32按照默认字体设置计算出单行的列数。
new_rows: i32按照默认字体设置计算出可有效显示的行数。 在全部内容均保持默认字体的情况下,由于视图上可以显示被裁剪的行内容,因此视图中可见的行数可能大于这个数值。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeData
impl RefUnwindSafe for ShapeData
impl Send for ShapeData
impl Sync for ShapeData
impl Unpin for ShapeData
impl UnwindSafe for ShapeData
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