#[non_exhaustive]pub enum TitleBarStyle {
Visible,
Transparent,
Overlay,
}
Expand description
How the window title bar should be displayed on macOS.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Visible
A normal title bar.
Transparent
Makes the title bar transparent, so the window background color is shown instead.
Useful if you don’t need to have actual HTML under the title bar. This lets you avoid the caveats of using TitleBarStyle::Overlay
. Will be more useful when Tauri lets you set a custom window background color.
Overlay
Shows the title bar as a transparent overlay over the window’s content.
Keep in mind:
- The height of the title bar is different on different OS versions, which can lead to window the controls and title not being where you don’t expect.
- You need to define a custom drag region to make your window draggable, however due to a limitation you can’t drag the window when it’s not in focus https://github.com/tauri-apps/tauri/issues/4316.
- The color of the window title depends on the system theme.
Trait Implementations§
Source§impl Clone for TitleBarStyle
impl Clone for TitleBarStyle
Source§fn clone(&self) -> TitleBarStyle
fn clone(&self) -> TitleBarStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TitleBarStyle
impl Debug for TitleBarStyle
Source§impl Default for TitleBarStyle
impl Default for TitleBarStyle
Source§impl<'de> Deserialize<'de> for TitleBarStyle
impl<'de> Deserialize<'de> for TitleBarStyle
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TitleBarStyle
impl Display for TitleBarStyle
Source§impl PartialEq for TitleBarStyle
impl PartialEq for TitleBarStyle
Source§impl Serialize for TitleBarStyle
impl Serialize for TitleBarStyle
impl Copy for TitleBarStyle
impl Eq for TitleBarStyle
impl StructuralPartialEq for TitleBarStyle
Auto Trait Implementations§
impl Freeze for TitleBarStyle
impl RefUnwindSafe for TitleBarStyle
impl Send for TitleBarStyle
impl Sync for TitleBarStyle
impl Unpin for TitleBarStyle
impl UnwindSafe for TitleBarStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.