pub struct BackdropGroup {
pub key: Option<KeyRef>,
pub backdrop_key: BackdropKey,
pub child: WidgetRef,
}Expand description
A widget that groups multiple BackdropFilter widgets so that they share one backdrop.
Every BackdropFilter::grouped descendant of this widget applies its filter to the
same snapshot of the scene, at the cost of one filter pass for the whole group. The
grouped filters must lie over the same background for the result to look right.
Fields§
§key: Option<KeyRef>§backdrop_key: BackdropKeyThe key the grouped filters share; a fresh one unless the caller supplies it.
child: WidgetRefThe widget below this widget in the tree.
Implementations§
Source§impl BackdropGroup
impl BackdropGroup
Sourcepub fn new<K>(child: impl IntoWidget<K>) -> BackdropGroup
pub fn new<K>(child: impl IntoWidget<K>) -> BackdropGroup
Creates a group with a fresh BackdropKey; Dart’s named arguments are the setters.
Sourcepub fn key(self, key: KeyRef) -> BackdropGroup
pub fn key(self, key: KeyRef) -> BackdropGroup
Dart BackdropGroup(key:).
Sourcepub fn backdrop_key(self, backdrop_key: BackdropKey) -> BackdropGroup
pub fn backdrop_key(self, backdrop_key: BackdropKey) -> BackdropGroup
Dart BackdropGroup(backdropKey:).
Sourcepub fn of(app: &mut App, context: BuildContext) -> Option<&BackdropGroup>
pub fn of(app: &mut App, context: BuildContext) -> Option<&BackdropGroup>
Returns the BackdropGroup enclosing context, if any, creating a dependency on it.
Trait Implementations§
Source§impl Debug for BackdropGroup
impl Debug for BackdropGroup
Source§impl InheritedWidget for BackdropGroup
impl InheritedWidget for BackdropGroup
Source§fn update_should_notify(&self, old_widget: &BackdropGroup) -> bool
fn update_should_notify(&self, old_widget: &BackdropGroup) -> bool
Whether the framework should notify widgets that inherit from this widget. Read more
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
Dart’s
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.Auto Trait Implementations§
impl !RefUnwindSafe for BackdropGroup
impl !Send for BackdropGroup
impl !Sync for BackdropGroup
impl !UnwindSafe for BackdropGroup
impl Forget for BackdropGroup
impl Freeze for BackdropGroup
impl Move for BackdropGroup
impl Unpin for BackdropGroup
impl UnsafeUnpin for BackdropGroupwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.