Trait winsafe::prelude::GuiWindowText
source · pub trait GuiWindowText: GuiWindow {
// Provided methods
fn set_text(&self, text: &str) { ... }
fn text(&self) -> String { ... }
}
Available on crate features
kernel
and gui
only.Expand description
Any window which can get/set text.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn set_text(&self, text: &str)
fn set_text(&self, text: &str)
Sets the text by calling
HWND::SetWindowText
.
sourcefn text(&self) -> String
fn text(&self) -> String
Retrieves the text by calling
HWND::GetWindowText
.