Struct bitcoin_qt::UnitDisplayStatusBarControl
source · pub struct UnitDisplayStatusBarControl { /* private fields */ }
Expand description
Implementations§
source§impl UnitDisplayStatusBarControl
impl UnitDisplayStatusBarControl
pub fn new(platform_style: *const PlatformStyle) -> Self
sourcepub fn mouse_press_event(&mut self, event: *mut u32)
pub fn mouse_press_event(&mut self, event: *mut u32)
| So that it responds to button clicks |
pub fn change_event(&mut self, e: *mut u32)
| Creates context menu, its actions, | and wires up all the relevant signals | for mouse events. |
sourcepub fn set_options_model(&mut self, options_model: *mut OptionsModel)
pub fn set_options_model(&mut self, options_model: *mut OptionsModel)
| Lets the control know about the Options | Model (and its signals) |
sourcepub fn update_display_unit(&mut self, new_units: i32)
pub fn update_display_unit(&mut self, new_units: i32)
| When Display Units are changed on OptionsModel | it will refresh the display text of the | control on the status bar |
sourcepub fn on_display_units_clicked(&mut self, point: &u32)
pub fn on_display_units_clicked(&mut self, point: &u32)
| Shows context menu with Display Unit | options by the mouse coordinates |
| Tells underlying optionsModel to update | its current display unit. |
Auto Trait Implementations§
impl !RefUnwindSafe for UnitDisplayStatusBarControl
impl !Send for UnitDisplayStatusBarControl
impl !Sync for UnitDisplayStatusBarControl
impl Unpin for UnitDisplayStatusBarControl
impl !UnwindSafe for UnitDisplayStatusBarControl
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more