pub struct TkEntry {
pub id: String,
/* private fields */
}
Expand description
Refers to an entry widget
Fields§
§id: String
Implementations§
Source§impl TkEntry
impl TkEntry
Sourcepub fn foreground(&self, colour: &str)
pub fn foreground(&self, colour: &str)
Specifies the foreground (text) colour.
Colours are specified as a string, by either:
name
- using one of the values in the tk colours listrgb
- as a 6-digit hexadecimal value in form “#RRGGBB”
Trait Implementations§
Source§impl TkGridLayout for TkEntry
impl TkGridLayout for TkEntry
Source§fn grid(&self) -> GridLayout
fn grid(&self) -> GridLayout
Creates a GridLayout instance for placing this widget within its parent.
Source§fn grid_configure(&self, option: &str, value: &str)
fn grid_configure(&self, option: &str, value: &str)
Source§fn grid_forget(&self)
fn grid_forget(&self)
Removes this widget from layout.
Source§impl TkPackLayout for TkEntry
impl TkPackLayout for TkEntry
Source§fn pack(&self) -> PackLayout
fn pack(&self) -> PackLayout
Creates a PackLayout instance for placing this widget within its parent
Source§fn pack_configure(&self, option: &str, value: &str)
fn pack_configure(&self, option: &str, value: &str)
Sets properties for widget layout
Source§fn pack_forget(&self)
fn pack_forget(&self)
Removes this widget from layout
Source§impl TkWidget for TkEntry
impl TkWidget for TkEntry
Source§fn bind(&self, pattern: &str, command: impl Fn(TkEvent) + Send + 'static)
fn bind(&self, pattern: &str, command: impl Fn(TkEvent) + Send + 'static)
Binds a command to this widget to call on given event pattern
Source§fn cget(&self, option: &str) -> String
fn cget(&self, option: &str) -> String
Retrieve the value of a configuration option
as a string. Read more
Source§fn configure(&self, option: &str, value: &str)
fn configure(&self, option: &str, value: &str)
Used to change properties of a widget.
This function can be used to directly configure
the widget using an option-value string pair: Read more
Source§fn position_x(&self) -> u64
fn position_x(&self) -> u64
Returns the widget x position in pixels, within its parent.
Source§fn position_y(&self) -> u64
fn position_y(&self) -> u64
Returns the widget y position in pixels, within its parent.
Source§fn widget_height(&self) -> u64
fn widget_height(&self) -> u64
Returns the widget height in pixels.
Source§fn widget_width(&self) -> u64
fn widget_width(&self) -> u64
Returns the widget width in pixels.
Source§fn mouse_position(&self) -> (i64, i64)
fn mouse_position(&self) -> (i64, i64)
Returns the position of the mouse on screen of widget as (x,y).
Source§fn screen_height(&self) -> u64
fn screen_height(&self) -> u64
Height of screen of widget in pixels.
Source§fn screen_height_mm(&self) -> u64
fn screen_height_mm(&self) -> u64
Height of screen of widget in millimetres.
Source§fn screen_width(&self) -> u64
fn screen_width(&self) -> u64
Width of screen of widget in pixels.
Source§fn screen_width_mm(&self) -> u64
fn screen_width_mm(&self) -> u64
Width of screen of widget in millimetres.
impl StructuralPartialEq for TkEntry
Auto Trait Implementations§
impl Freeze for TkEntry
impl RefUnwindSafe for TkEntry
impl Send for TkEntry
impl Sync for TkEntry
impl Unpin for TkEntry
impl UnwindSafe for TkEntry
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