Struct bitcoin_qt::BitcoinAmountField
source · pub struct BitcoinAmountField { /* private fields */ }
Expand description
| Widget for entering bitcoin amounts. |
Implementations§
source§impl BitcoinAmountField
impl BitcoinAmountField
pub fn value_changed(&mut self)
pub fn new(parent: *mut u32) -> Self
sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
| Enable/Disable. |
sourcepub fn validate(&mut self) -> bool
pub fn validate(&mut self) -> bool
| Perform input validation, mark field | as invalid if entered value is not valid. |
sourcepub fn event_filter(&mut self, object: *mut u32, event: *mut u32) -> bool
pub fn event_filter(&mut self, object: *mut u32, event: *mut u32) -> bool
| Intercept focus-in event and ‘,’ key | presses |
sourcepub fn setup_tab_chain(&mut self, prev: *mut u32) -> *mut u32
pub fn setup_tab_chain(&mut self, prev: *mut u32) -> *mut u32
| Qt messes up the tab chain by default | in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), | in these cases we have to set it up manually. |
pub fn value(&self, valid_out: *mut bool) -> Amount
pub fn set_value(&mut self, value: &Amount)
sourcepub fn set_allow_empty(&mut self, allow: bool)
pub fn set_allow_empty(&mut self, allow: bool)
| If allow empty is set to false the field | will be set to the minimum allowed value | if left empty. * |
sourcepub fn set_min_value(&mut self, value: &Amount)
pub fn set_min_value(&mut self, value: &Amount)
| Set the minimum value in satoshis * |
sourcepub fn set_max_value(&mut self, value: &Amount)
pub fn set_max_value(&mut self, value: &Amount)
| Set the maximum value in satoshis * |
sourcepub fn set_read_only(&mut self, read_only: bool)
pub fn set_read_only(&mut self, read_only: bool)
| Make read-only * |
pub fn unit_changed(&mut self, idx: i32)
sourcepub fn set_display_unit(&mut self, new_unit: i32)
pub fn set_display_unit(&mut self, new_unit: i32)
| Change unit used to display amount. |
sourcepub fn set_single_step(&mut self, step: &Amount)
pub fn set_single_step(&mut self, step: &Amount)
| Set single step in satoshis * |
Auto Trait Implementations§
impl !RefUnwindSafe for BitcoinAmountField
impl !Send for BitcoinAmountField
impl !Sync for BitcoinAmountField
impl Unpin for BitcoinAmountField
impl !UnwindSafe for BitcoinAmountField
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