Skip to main content

StylePopup

Trait StylePopup 

Source
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§

Source

fn flyout_pad(&self, _ui: &mut Ui) -> i32

px

Source

fn flyout_box(&self, _ui: &mut Ui) -> u32

BOX_* | PAD_* flags of the content

Source

fn flyout_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>)

shadow + surface of a flyout / menu (rect = the flyout)

Source

fn menu_item_h(&self, _ui: &mut Ui) -> i32

row height px

Source

fn menu_item_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)

flags MIF_*, label, label2 accelerator text, icon, ev; size must set s[1] = accelerator width

Source

fn menu_item(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

fn menu_sep_size(&self, _ui: &mut Ui) -> i32

Source

fn menu_sep(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

fn menubar_item_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)

flags 1 open, 2 current item, value mnemonic byte index or -1, label, ev

Source

fn menubar_item(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

fn dropdown_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)

flags ST_*, icon, label, value open, value2 disabled

Source

fn dropdown(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

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

Source

fn split(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

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

Source

fn combo(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

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

Source

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".

Implementors§