pub struct TextMagnifierConfiguration {
pub should_display_handles_in_magnifier: bool,
/* private fields */
}Expand description
A configuration object for a magnifier (e.g. in a text field).
In general, most features of the magnifier can be configured by controlling
the widgets built by the magnifier_builder.
Fields§
§should_display_handles_in_magnifier: boolWhether a magnifier should show the text editing handles or not.
This flag is used by SelectionOverlay.showMagnifier to control the order
of layers in the rendering; specifically, whether to place the layer
containing the handles above or below the layer containing the magnifier
in the Overlay.
Implementations§
Source§impl TextMagnifierConfiguration
impl TextMagnifierConfiguration
Sourcepub const DISABLED: TextMagnifierConfiguration
pub const DISABLED: TextMagnifierConfiguration
A constant for a TextMagnifierConfiguration that is disabled, meaning it
never builds anything, regardless of platform.
Sourcepub const fn new() -> TextMagnifierConfiguration
pub const fn new() -> TextMagnifierConfiguration
Constructs a TextMagnifierConfiguration from parts.
If magnifier_builder is not set, a default
MagnifierBuilder will be used that does not build a magnifier.
Sourcepub fn magnifier_builder(&self) -> MagnifierBuilder
pub fn magnifier_builder(&self) -> MagnifierBuilder
The builder callback that creates the widget that renders the magnifier.
Sourcepub fn with_magnifier_builder(
self,
magnifier_builder: MagnifierBuilder,
) -> TextMagnifierConfiguration
pub fn with_magnifier_builder( self, magnifier_builder: MagnifierBuilder, ) -> TextMagnifierConfiguration
Dart TextMagnifierConfiguration(magnifierBuilder:).
Sourcepub fn should_display_handles_in_magnifier(
self,
should_display_handles_in_magnifier: bool,
) -> TextMagnifierConfiguration
pub fn should_display_handles_in_magnifier( self, should_display_handles_in_magnifier: bool, ) -> TextMagnifierConfiguration
Dart TextMagnifierConfiguration(shouldDisplayHandlesInMagnifier:).