mirror of https://github.com/linebender/xilem
Fix doc links by either correcting the item name, or making these public (#499)
I don't think anything speaks against making the items public in masonry?
This commit is contained in:
parent
2dc7b80153
commit
8ecdd876dc
|
@ -131,7 +131,7 @@ pub use action::Action;
|
||||||
pub use box_constraints::BoxConstraints;
|
pub use box_constraints::BoxConstraints;
|
||||||
pub use contexts::{
|
pub use contexts::{
|
||||||
AccessCtx, EventCtx, IsContext, LayoutCtx, LifeCycleCtx, PaintCtx, RawWrapper, RawWrapperMut,
|
AccessCtx, EventCtx, IsContext, LayoutCtx, LifeCycleCtx, PaintCtx, RawWrapper, RawWrapperMut,
|
||||||
WidgetCtx,
|
WidgetCtx, WorkerCtx,
|
||||||
};
|
};
|
||||||
pub use event::{
|
pub use event::{
|
||||||
AccessEvent, InternalLifeCycle, LifeCycle, PointerButton, PointerEvent, PointerState,
|
AccessEvent, InternalLifeCycle, LifeCycle, PointerButton, PointerEvent, PointerState,
|
||||||
|
|
|
@ -14,7 +14,7 @@ mod screenshots;
|
||||||
#[cfg(not(tarpaulin_include))]
|
#[cfg(not(tarpaulin_include))]
|
||||||
mod snapshot_utils;
|
mod snapshot_utils;
|
||||||
|
|
||||||
pub use harness::{TestHarness, HARNESS_DEFAULT_SIZE};
|
pub use harness::{TestHarness, HARNESS_DEFAULT_BACKGROUND_COLOR, HARNESS_DEFAULT_SIZE};
|
||||||
pub use helper_widgets::{ModularWidget, Record, Recorder, Recording, ReplaceChild, TestWidgetExt};
|
pub use helper_widgets::{ModularWidget, Record, Recorder, Recording, ReplaceChild, TestWidgetExt};
|
||||||
|
|
||||||
use crate::WidgetId;
|
use crate::WidgetId;
|
||||||
|
|
|
@ -10,7 +10,7 @@ use crate::{DynMessage, Message, NoElement, View, ViewId, ViewPathTracker};
|
||||||
/// A `Context` for a [`View`](crate::View) implementation which supports
|
/// A `Context` for a [`View`](crate::View) implementation which supports
|
||||||
/// asynchronous message reporting.
|
/// asynchronous message reporting.
|
||||||
pub trait AsyncCtx<Message = DynMessage>: ViewPathTracker {
|
pub trait AsyncCtx<Message = DynMessage>: ViewPathTracker {
|
||||||
/// Get a [`Proxy`] for this context.
|
/// Get a [`RawProxy`] for this context.
|
||||||
// TODO: Maybe store the current path within this Proxy?
|
// TODO: Maybe store the current path within this Proxy?
|
||||||
fn proxy(&mut self) -> Arc<dyn RawProxy<Message>>;
|
fn proxy(&mut self) -> Arc<dyn RawProxy<Message>>;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ pub trait AsyncCtx<Message = DynMessage>: ViewPathTracker {
|
||||||
///
|
///
|
||||||
/// ## Lifetimes
|
/// ## Lifetimes
|
||||||
///
|
///
|
||||||
/// It is valid for a [`Proxy`] to outlive the [`View`](crate::View) it is associated with.
|
/// It is valid for a [`RawProxy`] to outlive the [`View`](crate::View) it is associated with.
|
||||||
pub trait RawProxy<Message = DynMessage>: Send + Sync + 'static {
|
pub trait RawProxy<Message = DynMessage>: Send + Sync + 'static {
|
||||||
/// Send a `message` to the view at `path` in this driver.
|
/// Send a `message` to the view at `path` in this driver.
|
||||||
///
|
///
|
||||||
|
@ -87,7 +87,7 @@ where
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The potential error conditions from a [`Proxy`] sending a message
|
/// The potential error conditions from a [`RawProxy`] sending a message
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum ProxyError {
|
pub enum ProxyError {
|
||||||
/// The underlying driver (such as an event loop) is no longer running.
|
/// The underlying driver (such as an event loop) is no longer running.
|
||||||
|
|
|
@ -58,7 +58,7 @@ where
|
||||||
|
|
||||||
/// Await a future returned by `init_future` invoked with the argument `data`, `callback` is called with the output of the resolved future. `init_future` will be invoked again, when `data` changes.
|
/// Await a future returned by `init_future` invoked with the argument `data`, `callback` is called with the output of the resolved future. `init_future` will be invoked again, when `data` changes.
|
||||||
///
|
///
|
||||||
/// The update behavior can be controlled, by [`debounce`](`MemoizedAwait::debounce`) and [`reset_debounce_on_update`](`MemoizedAwait::reset_debounce_on_update`)
|
/// The update behavior can be controlled, by [`debounce_ms`](`MemoizedAwait::debounce_ms`) and [`reset_debounce_on_update`](`MemoizedAwait::reset_debounce_on_update`)
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue