ferroui_controls/
native_menu_item_separator.rs1use crate::NativeMenuItem;
2use ferroui_base::{ferro_class, ferro_class_info, instantiate, FerroObjectImpl, FerroObjectImplExt, Ref};
3
4#[repr(C)]
6pub struct NativeMenuItemSeparator {
7 base: NativeMenuItem,
8}
9
10ferro_class!(NativeMenuItemSeparator: NativeMenuItem);
11ferro_class_info!(NativeMenuItemSeparator { new: NativeMenuItemSeparator::new });
12
13impl FerroObjectImpl for NativeMenuItemSeparator {
14 fn constructed(this: &Self) {
15 Self::parent_constructed(this);
16 this.set_current_value(NativeMenuItem::header_property(), Some("-".to_string()));
17 }
18}
19
20impl NativeMenuItemSeparator {
21 pub fn new() -> Ref<Self> {
22 instantiate(Self { base: NativeMenuItem::construct() })
23 }
24
25}