Struct bitcoin_qt::AmountSpinBox
source · pub struct AmountSpinBox { /* private fields */ }
Expand description
| QSpinBox that uses fixed-point numbers | internally and uses our own formatting/parsing | functions. |
Implementations§
source§impl AmountSpinBox
impl AmountSpinBox
pub fn new(parent: *mut u32) -> Self
pub fn validate(&self, text: &mut String, pos: &mut i32) -> u32
pub fn fixup(&self, input: &mut String)
pub fn value(&self, valid_out: Option<*mut bool>) -> Amount
pub fn set_value(&mut self, value: &Amount)
pub fn set_allow_empty(&mut self, allow: bool)
pub fn set_min_value(&mut self, value: &Amount)
pub fn set_max_value(&mut self, value: &Amount)
pub fn step_by(&mut self, steps: i32)
pub fn set_display_unit(&mut self, unit: i32)
pub fn set_single_step(&mut self, step: &Amount)
pub fn minimum_size_hint(&self) -> QSize
sourcepub fn parse(&self, text: &String, valid_out: Option<*mut bool>) -> Amount
pub fn parse(&self, text: &String, valid_out: Option<*mut bool>) -> Amount
| Parse a string into a number of base monetary | units and return validity. | | ———– | @note | | Must return 0 if !valid. |
pub fn event(&mut self, event: *mut u32) -> bool
pub fn step_enabled(&self) -> u32
pub fn value_changed(&mut self)
Auto Trait Implementations§
impl !RefUnwindSafe for AmountSpinBox
impl Send for AmountSpinBox
impl !Sync for AmountSpinBox
impl Unpin for AmountSpinBox
impl UnwindSafe for AmountSpinBox
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