pub struct TitleBar { /* private fields */ }Implementations§
Source§impl TitleBar
impl TitleBar
pub fn new() -> Self
pub fn preferred_height(self, height: WindowTitleBarHeight) -> Self
pub fn title(self, value: impl Into<String>) -> Self
pub fn title_optional<T>(self, value: Option<T>) -> Self
pub fn subtitle(self, value: impl Into<String>) -> Self
pub fn subtitle_optional<T>(self, value: Option<T>) -> Self
pub fn on_back_requested(self, callback: impl IntoUnitCallback) -> Self
pub fn on_pane_toggle_requested(self, callback: impl IntoUnitCallback) -> Self
Trait Implementations§
Source§impl LayoutControl for TitleBar
impl LayoutControl for TitleBar
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl SlotsControl for TitleBar
impl SlotsControl for TitleBar
impl StructuralPartialEq for TitleBar
Auto Trait Implementations§
impl !RefUnwindSafe for TitleBar
impl !Send for TitleBar
impl !Sync for TitleBar
impl !UnwindSafe for TitleBar
impl Freeze for TitleBar
impl Unpin for TitleBar
impl UnsafeUnpin for TitleBar
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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