Add Window::title getter on Windows and macOS
This commit is contained in:
parent
a7a7cc64cd
commit
08f9e374e0
11 changed files with 64 additions and 7 deletions
|
|
@ -952,6 +952,16 @@ impl Window {
|
|||
pub fn theme(&self) -> Option<Theme> {
|
||||
self.window.theme()
|
||||
}
|
||||
|
||||
/// Gets the current title of the window.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **iOS / Android / x11 / Wayland / Web:** Unsupported. Always returns an empty string.
|
||||
#[inline]
|
||||
pub fn title(&self) -> String {
|
||||
self.window.title()
|
||||
}
|
||||
}
|
||||
|
||||
/// Cursor functions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue