Struct cacao::listview::ListViewRow
source · [−]pub struct ListViewRow<T = ()> {Show 14 fields
pub animator: ViewAnimatorProxy,
pub objc: ObjcProperty,
pub delegate: Option<Box<T>>,
pub safe_layout_guide: SafeAreaLayoutGuide,
pub top: LayoutAnchorY,
pub leading: LayoutAnchorX,
pub left: LayoutAnchorX,
pub trailing: LayoutAnchorX,
pub right: LayoutAnchorX,
pub bottom: LayoutAnchorY,
pub width: LayoutAnchorDimension,
pub height: LayoutAnchorDimension,
pub center_x: LayoutAnchorX,
pub center_y: LayoutAnchorY,
}
Expand description
A clone-able handler to a ViewController
reference in the Objective C runtime. We use this
instead of a stock View
for easier recordkeeping, since it’ll need to hold the View
on that
side anyway.
Fields
animator: ViewAnimatorProxy
An object that supports limited animations. Can be cloned into animation closures.
objc: ObjcProperty
A pointer to the Objective-C runtime view controller.
delegate: Option<Box<T>>
A pointer to the delegate for this view.
safe_layout_guide: SafeAreaLayoutGuide
A safe layout guide property.
top: LayoutAnchorY
A pointer to the Objective-C runtime top layout constraint.
leading: LayoutAnchorX
A pointer to the Objective-C runtime leading layout constraint.
left: LayoutAnchorX
A pointer to the Objective-C runtime left layout constraint.
trailing: LayoutAnchorX
A pointer to the Objective-C runtime trailing layout constraint.
right: LayoutAnchorX
A pointer to the Objective-C runtime right layout constraint.
bottom: LayoutAnchorY
A pointer to the Objective-C runtime bottom layout constraint.
width: LayoutAnchorDimension
A pointer to the Objective-C runtime width layout constraint.
height: LayoutAnchorDimension
A pointer to the Objective-C runtime height layout constraint.
center_x: LayoutAnchorX
A pointer to the Objective-C runtime center X layout constraint.
center_y: LayoutAnchorY
A pointer to the Objective-C runtime center Y layout constraint.
Implementations
sourceimpl ListViewRow
impl ListViewRow
sourceimpl<T> ListViewRow<T> where
T: ViewDelegate + 'static,
impl<T> ListViewRow<T> where
T: ViewDelegate + 'static,
pub fn with(delegate: T) -> ListViewRow<T>
sourcepub fn with_boxed(delegate: Box<T>) -> ListViewRow<T>
pub fn with_boxed(delegate: Box<T>) -> ListViewRow<T>
Initializes a new View with a given ViewDelegate
. This enables you to respond to events
and customize the view as a module, similar to class-based systems.
pub fn into_row(self) -> ListViewRow
sourceimpl<T> ListViewRow<T>
impl<T> ListViewRow<T>
sourcepub fn set_identifier(&self, identifier: &'static str)
pub fn set_identifier(&self, identifier: &'static str)
Sets the identifier, which enables cells to be reused and dequeued properly.
sourcepub fn set_background_color<C: AsRef<Color>>(&self, color: C)
pub fn set_background_color<C: AsRef<Color>>(&self, color: C)
Call this to set the background color for the backing layer.
Trait Implementations
sourceimpl<T: Debug> Debug for ListViewRow<T>
impl<T: Debug> Debug for ListViewRow<T>
sourceimpl Default for ListViewRow
impl Default for ListViewRow
sourceimpl<T> Drop for ListViewRow<T>
impl<T> Drop for ListViewRow<T>
sourceimpl<T> Layout for ListViewRow<T>
impl<T> Layout for ListViewRow<T>
sourcefn set_needs_display(&self, needs_display: bool)
fn set_needs_display(&self, needs_display: bool)
Sets whether this needs to be redrawn before being displayed. Read more
sourcefn add_subview<V: Layout>(&self, view: &V)
fn add_subview<V: Layout>(&self, view: &V)
Adds another Layout-backed control or view as a subview of this view.
sourcefn remove_from_superview(&self)
fn remove_from_superview(&self)
Removes a control or view from the superview.
sourcefn set_frame<R: Into<CGRect>>(&self, rect: R)
fn set_frame<R: Into<CGRect>>(&self, rect: R)
Sets the frame
for the view this trait is applied to. Read more
sourcefn set_translates_autoresizing_mask_into_constraints(&self, translates: bool)
fn set_translates_autoresizing_mask_into_constraints(&self, translates: bool)
Sets whether the view for this trait should translate autoresizing masks into layout constraints. Read more
Sets whether the view for this is hidden or not. Read more
Returns whether this is hidden or not. Read more
Returns whether this is hidden, or whether an ancestor view is hidden.
sourcefn register_for_dragged_types(&self, types: &[PasteboardType])
fn register_for_dragged_types(&self, types: &[PasteboardType])
Register this view for drag and drop operations. Read more
sourcefn unregister_dragged_types(&self)
fn unregister_dragged_types(&self)
Unregisters this as a target for drag and drop operations. Read more
sourcefn set_posts_frame_change_notifications(&self, posts: bool)
fn set_posts_frame_change_notifications(&self, posts: bool)
Sets whether this posts notifications when the frame rectangle changes. Read more
sourcefn set_posts_bounds_change_notifications(&self, posts: bool)
fn set_posts_bounds_change_notifications(&self, posts: bool)
Sets whether this posts notifications when the bounds rectangle changes. Read more
Auto Trait Implementations
impl<T = ()> !RefUnwindSafe for ListViewRow<T>
impl<T = ()> !Send for ListViewRow<T>
impl<T = ()> !Sync for ListViewRow<T>
impl<T> Unpin for ListViewRow<T>
impl<T = ()> !UnwindSafe for ListViewRow<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more