Struct orbtk::menu::Menu
[−]
[src]
pub struct Menu { pub core: WidgetCore, // some fields omitted }
Fields
core: WidgetCore
pub struct Menu { pub core: WidgetCore, // some fields omitted }
core: WidgetCore
impl Menu
[src]fn new<S: Into<String>>(name: S) -> Self
fn add_action(&mut self, action: Action)
fn add_separator(&mut self)
fn text<S: Into<String>>(self, text: S) -> Self
fn text_offset(self, x: i32, y: i32) -> Self
impl Click for Menu
[src]fn emit_click(&self, point: Point)
fn on_click<T: Fn(&Self, Point) + 'static>(self, func: T) -> Self
impl Placeable for Menu
[src]fn place(self, window: &Window) -> Arc<Self>
fn position(self, x: i32, y: i32) -> Self
fn size(self, width: u32, height: u32) -> Self
impl Widget for Menu
[src]