Struct rstk::toplevel::TkTopLevel [−][src]
pub struct TkTopLevel { pub id: String, }
Expand description
Refers to a top-level widget (window)
Fields
id: String
Implementations
Specifies the background 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”
Size of border around widget.
Expand window to occupy the full screen.
Retrieves the geometry of the window as a tuple: (width, height, x, y).
Sets the size and position of a top-level window.
height
- the vertical height of the window, in pixelswidth
- the horizontal width of the window, in pixelsx
- a positive value gives position relative to left edge of screen, and a negative value gives position relative to right edge.y
- a positive value gives position relative to top edge of screen, and a negative value gives position relative to bottom edge.
Sets the maximum width/height in pixels for the window.
Sets the menu of the top-level window.
Sets the minimum width/height in pixels for the window.
Call given command on closing the window.
Sets if window can be resized vertically or horizontally.
Updates the display.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Binds a command to this widget to call on given event pattern
Retrieve the value of a configuration option as a string. Read more
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
Returns the widget x position in pixels, within its parent.
Returns the widget y position in pixels, within its parent.
Returns the widget height in pixels.
Returns the widget width in pixels.
Returns the position of the mouse on screen of widget as (x,y).
Height of screen of widget in pixels.
Height of screen of widget in millimetres.
Width of screen of widget in pixels.
Width of screen of widget in millimetres.
Sets property for a given column of the grid layout contained within this widget. Read more
Auto Trait Implementations
impl RefUnwindSafe for TkTopLevel
impl Send for TkTopLevel
impl Sync for TkTopLevel
impl Unpin for TkTopLevel
impl UnwindSafe for TkTopLevel
Blanket Implementations
Mutably borrows from an owned value. Read more