mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
add no-github badge
This commit is contained in:
parent
38e8cfc214
commit
2b78339e61
4 changed files with 19 additions and 11 deletions
|
|
@ -20,14 +20,14 @@ impl<E: Engine, S, C: Command<S>> MenuBar<E, S, C> {
|
|||
pub struct Menu<E: Engine, S, C: Command<S>> {
|
||||
pub title: String,
|
||||
pub items: Vec<MenuItem<E, S, C>>,
|
||||
pub index: usize,
|
||||
pub index: Option<usize>,
|
||||
}
|
||||
impl<E: Engine, S, C: Command<S>> Menu<E, S, C> {
|
||||
pub fn new (title: impl AsRef<str>) -> Self {
|
||||
Self {
|
||||
title: title.as_ref().to_string(),
|
||||
items: vec![],
|
||||
index: 0
|
||||
index: None,
|
||||
}
|
||||
}
|
||||
pub fn add (mut self, item: MenuItem<E, S, C>) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue