Struct rstk::canvas::TkCanvas [−][src]
pub struct TkCanvas { pub id: String, }
Expand description
Refers to a canvas widget
Fields
id: String
Implementations
Colour of canvas background.
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.
Configures the item(s) with given tag.
Creates an arc where (x1, y1) (x2, y2) define a rectangle enclosing the oval which defines the arc.
Creates an image at (x, y) according to given image reference.
Creates a line using slice of (x, y) coordinates.
Creates an oval where (x1, y1) (x2, y2) define a rectangle enclosing the oval.
Creates a polygon using slice of (x, y) coordinates.
Creates a rectangle with opposite corners (x1, y1) (x2, y2).
Creates a text item at (x, y) with given contents.
Creates a widget at (x, y) according to given widget reference.
Deletes given item from canvas.
Trait Implementations
Creates a GridLayout instance for placing this widget within its parent.
Removes this widget from layout.
Creates a PackLayout instance for placing this widget within its parent
Sets properties for widget layout
Removes this widget from layout
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 TkCanvas
impl UnwindSafe for TkCanvas
Blanket Implementations
Mutably borrows from an owned value. Read more