pub struct TextBox { /* private fields */ }Available on neither Windows nor macOS.
Implementations§
Source§impl TextBox
impl TextBox
pub fn new(parent: impl AsContainer) -> Result<Self>
pub fn is_visible(&self) -> Result<bool>
pub fn set_visible(&mut self, v: bool) -> Result<()>
pub fn is_enabled(&self) -> Result<bool>
pub fn set_enabled(&mut self, v: bool) -> Result<()>
pub fn preferred_size(&self) -> Result<Size>
pub fn min_size(&self) -> Result<Size>
pub fn loc(&self) -> Result<Point>
pub fn set_loc(&mut self, p: Point) -> Result<()>
pub fn size(&self) -> Result<Size>
pub fn set_size(&mut self, s: Size) -> Result<()>
pub fn tooltip(&self) -> Result<String>
pub fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn text(&self) -> Result<String>
pub fn set_text(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn halign(&self) -> Result<HAlign>
pub fn set_halign(&mut self, align: HAlign) -> Result<()>
pub fn is_readonly(&self) -> Result<bool>
pub fn set_readonly(&mut self, r: bool) -> Result<()>
pub async fn wait_change(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TextBox
impl !RefUnwindSafe for TextBox
impl !Send for TextBox
impl !Sync for TextBox
impl Unpin for TextBox
impl UnsafeUnpin for TextBox
impl !UnwindSafe for TextBox
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