Enum tauri_utils::TitleBarStyle
source · pub enum TitleBarStyle {
Visible,
Transparent,
Overlay,
}
Expand description
How the window title bar should be displayed on macOS.
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 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.