mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-03 07:48:41 +08:00
18 lines
248 B
Rust
18 lines
248 B
Rust
// ANCHOR: here
|
|
use gui::Draw;
|
|
|
|
struct SelectBox {
|
|
width: u32,
|
|
height: u32,
|
|
options: Vec<String>,
|
|
}
|
|
|
|
impl Draw for SelectBox {
|
|
fn draw(&self) {
|
|
// code to actually draw a select box
|
|
}
|
|
}
|
|
// ANCHOR_END: here
|
|
|
|
fn main() {}
|