1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//! A Rust binding for the Tk graphics toolkit.
//!
//! afrish opens and communicates with Tk's wish program as a separate process.
//! The library provides:
//!
//! * low-level functions to directly communicate with wish, suitable for
//! writing additional extensions
//! * high-level API to write GUI applications with minimal knowledge of Tk.
//!
//! The top-level functions to start/stop the GUI are contained
//! in the [wish] module.
//!
//! The remaining modules describe a widget or supporting component
//! (such as a font or image). Each widget has a constructor function,
//! usually named "make_WIDGET", and this returns a struct of name "TkWIDGET".
//!
//! Click on the struct name to get a list of methods supported by the
//! widget; functionality is divided between various traits, such as
//! [TkWidget](widget::TkWidget).
//!
//! # Example
//!
//! A simple hello-world example:
//!
//! ```ignore
//! use afrish::*;
//!
//! fn main() {
//! let root = afrish::start_wish().unwrap();
//!
//! let hello = afrish::make_label(&root);
//! hello.text("Hello from Rust/Tk");
//!
//! hello.grid().layout();
//!
//! afrish::mainloop();
//! }
//! ```
//!
//! ## Widget lifetimes
//!
//! The Tk process operates independently of your rust program. All references
//! to widgets in rust are merely string names used to 'lookup' the widget
//! when calling out to Tk. As such, widgets will remain live and visible even
//! if a variable referring to them goes out of scope in your rust code.
//! If you wish to destroy a widget, use the [destroy](widget::TkWidget::destroy)
//! method available on all widgets.
//!
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;