pub struct TableGeometry {
pub header: Rect,
pub body: Rect,
pub row_header: Rect,
pub columns: Vec<Rect>,
pub horizontal: ScrollLayout,
/* private fields */
}Expand description
Shared by the row layout, header painting, and header hit testing.
Fields§
§header: Rect§body: Rect§row_header: Rect§columns: Vec<Rect>§horizontal: ScrollLayoutImplementations§
Source§impl TableGeometry
impl TableGeometry
pub fn new(node: &Node, bounds: Rect) -> Option<Self>
pub fn row_header_cell(&self, row: Rect) -> Rect
pub fn visual_columns( &self, ) -> impl DoubleEndedIterator<Item = usize> + ExactSizeIterator
pub fn visual_index(&self, column: usize) -> Option<usize>
pub fn is_column_visible(&self, column: usize) -> bool
pub fn visible_columns(&self) -> impl DoubleEndedIterator<Item = usize>
pub fn visible_column_count(&self) -> usize
pub fn visible_column_index(&self, column: usize) -> Option<usize>
pub fn is_frozen(&self, column: usize) -> bool
pub fn mirrored(&self) -> bool
pub fn scrollable_header(&self) -> Rect
pub fn scrollable_body(&self) -> Rect
Sourcepub fn column_clip(&self, column: usize, band: Rect) -> Rect
pub fn column_clip(&self, column: usize, band: Rect) -> Rect
Clip a logical column to the pane it currently belongs to.
pub fn frozen_boundary(&self) -> Option<f32>
Trait Implementations§
Source§impl Clone for TableGeometry
impl Clone for TableGeometry
Source§impl Debug for TableGeometry
impl Debug for TableGeometry
Source§impl PartialEq for TableGeometry
impl PartialEq for TableGeometry
impl StructuralPartialEq for TableGeometry
Auto Trait Implementations§
impl Forget for TableGeometry
impl Freeze for TableGeometry
impl Move for TableGeometry
impl RefUnwindSafe for TableGeometry
impl Send for TableGeometry
impl Sync for TableGeometry
impl Unpin for TableGeometry
impl UnsafeUnpin for TableGeometry
impl UnwindSafe for TableGeometry
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