mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
248 B
18 lines
248 B
3 years ago
|
// 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() {}
|