pub trait StylePopup {
Show 18 methods
// Provided methods
fn flyout_pad(&self, _ui: &mut Ui) -> i32 { ... }
fn flyout_box(&self, _ui: &mut Ui) -> u32 { ... }
fn flyout_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn menu_item_h(&self, _ui: &mut Ui) -> i32 { ... }
fn menu_item_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn menu_item(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn menu_sep_size(&self, _ui: &mut Ui) -> i32 { ... }
fn menu_sep(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn menubar_item_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn menubar_item(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn dropdown_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn dropdown(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn split_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn split(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn combo_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn combo(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn tooltip_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn tooltip(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
}Expand description
flyouts, menus, menu bars, drop-downs, split buttons, combo boxes, tooltips (popup.s)
Provided Methods§
Sourcefn flyout_pad(&self, _ui: &mut Ui) -> i32
fn flyout_pad(&self, _ui: &mut Ui) -> i32
px
Sourcefn flyout_box(&self, _ui: &mut Ui) -> u32
fn flyout_box(&self, _ui: &mut Ui) -> u32
BOX_* | PAD_* flags of the content
Sourcefn flyout_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn flyout_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>)
shadow + surface of a flyout / menu (rect = the flyout)
row height px
flags MIF_*, label, label2 accelerator text, icon, ev; size must set s[1] = accelerator width
flags 1 open, 2 current item, value mnemonic byte index or -1, label, ev
Sourcefn dropdown_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn dropdown_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
flags ST_*, icon, label, value open, value2 disabled
fn dropdown(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn split_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn split_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
size sets s[0] / s[1] = main / chevron part width; paint: ev main, s[2] chevron events, value open, value2 1 main / 2 chevron disabled
fn split(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn combo_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn combo_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
size: value widest text px; paint: label the selected text, ev, value2 disabled
fn combo(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn tooltip_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn tooltip_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
size sets s[0] text width, s[1] / s[2] gap below / above the pointer; paint: label
fn tooltip(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".