[−][src]Struct polyhorn_android::raw::OpaqueContainer
Opaque wrapper around a container with two optional layouts attached. If both are given, the first refers to the container's layout itself, whereas the second refers to the container's content layout. These can be different when working with scroll views for example, which are essentially treated as two adjacent nodes in the layout tree.
Implementations
impl OpaqueContainer[src]
pub fn new<T>(
layout: LayoutNode,
content_layout: Option<LayoutNode>,
view: T
) -> OpaqueContainer where
T: Container, [src]
layout: LayoutNode,
content_layout: Option<LayoutNode>,
view: T
) -> OpaqueContainer where
T: Container,
Returns a new opaque container with the given layout, view and optionally a separate content layout.
pub unsafe fn activity(env: *mut c_void, object: *mut c_void) -> OpaqueContainer[src]
pub fn layout(&self) -> Option<&LayoutNode>[src]
Returns the layout of this container (if applicable).
pub fn content_layout(&self) -> Option<&LayoutNode>[src]
Returns the content layout of this container (if applicable). Returns
None if not applicable, even if the container has a regular layout.
pub fn container(&self) -> &dyn Container[src]
Returns the container wrapped in this opaque container.
pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
T: 'static, [src]
T: 'static,
Attempts to downcast this container to a concrete type and if successful, returns a mutable reference.
Trait Implementations
impl Container<Platform> for OpaqueContainer[src]
fn mount(
&mut self,
container: &mut OpaqueContainer,
environment: &mut Environment
)[src]
&mut self,
container: &mut OpaqueContainer,
environment: &mut Environment
)
fn unmount(&mut self)[src]
Auto Trait Implementations
impl !RefUnwindSafe for OpaqueContainer
impl Send for OpaqueContainer
impl !Sync for OpaqueContainer
impl Unpin for OpaqueContainer
impl !UnwindSafe for OpaqueContainer
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float, [src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>, [src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any, [src]
T: Any,
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
fn type_name(&self) -> &'static str[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>, [src]
U: ConvertFrom<T>,
fn convert_into(self) -> U[src]
fn convert_unclamped_into(self) -> U[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>[src]
impl<'a, T> Desc<'a, T> for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,