Struct bitcoin_qt::BitcoinGUI

source ·
pub struct BitcoinGUI { /* private fields */ }
Expand description

| Bitcoin GUI main class. | | This class represents the main window | of the Bitcoin UI. | | It communicates with both the client | and wallet models to give the user an | up-to-date view of the current core | state. |

Implementations§

source§

impl BitcoinGUI

source

pub fn has_tray_icon(&self) -> bool

| Get the tray icon status. | | Some systems have not “system tray” | or “notification area” available. |

source

pub fn quit_requested(&mut self)

source

pub fn receiveduri(&mut self, uri: &String)

| Signal raised when a URI was entered | or dragged to the GUI |

source

pub fn console_shown(&mut self, console: *mut RPCConsole)

| Signal raised when RPC console shown |

source

pub fn set_privacy(&mut self, privacy: bool)

source

pub fn show_normal_if_minimized_default(&mut self)

| Show window if hidden, unminimize when | minimized, rise when obscured or show | if hidden and fToggleHidden is true |

source§

impl BitcoinGUI

source

pub fn new( node: Rc<RefCell<dyn NodeInterface>>, platform_style: *const PlatformStyle, network_style: *const NetworkStyle, parent: *mut u32 ) -> Self

source

pub fn create_actions(&mut self)

| Create the main UI actions. |

source

pub fn create_menu_bar(&mut self)

| Create the menu bar and sub-menus. |

source

pub fn create_tool_bars(&mut self)

| Create the toolbars |

source

pub fn set_client_model( &mut self, client_model: *mut ClientModel, tip_info: *mut BlockAndHeaderTipInfo )

| Set the client model. | | The client model represents the part | of the core that communicates with the | P2P network, and is wallet-agnostic. |

source

pub fn set_wallet_actions_enabled(&mut self, enabled: bool)

| Enable or disable all wallet-related | actions |

source

pub fn create_tray_icon(&mut self)

| Create system tray icon and notification |

source

pub fn create_tray_icon_menu(&mut self)

| Create system tray menu (or setup the | dock menu) |

source

pub fn tray_icon_activated(&mut self, reason: u32)

| Handle tray icon clicked |

source

pub fn options_clicked(&mut self)

| Show configuration dialog |

source

pub fn about_clicked(&mut self)

| Show about dialog |

source

pub fn show_debug_window(&mut self)

| Show debug window |

source

pub fn show_debug_window_activate_console(&mut self)

| Show debug window and set focus to the | console |

source

pub fn show_help_message_clicked(&mut self)

| Show help message dialog |

source

pub fn update_network_state(&mut self)

| Update UI with latest network info from | model. |

source

pub fn set_num_connections(&mut self, count: i32)

| Set number of connections shown in the | UI |

source

pub fn set_network_active(&mut self, network_active: bool)

| Set network state shown in the UI |

source

pub fn update_headers_sync_progress_label(&mut self)

source

pub fn open_options_dialog_with_tab(&mut self, tab: u32)

| Open the OptionsDialog on the specified | tab index |

source

pub fn set_num_blocks( &mut self, count: i32, block_date: &u32, n_verification_progress: f64, header: bool, sync_state: SynchronizationState )

| Set number of blocks and last block date | shown in the UI |

source

pub fn message( &mut self, title: &str, message: &str, style: u32, ret: *mut bool, detailed_message: &str )

| Notify the user of an event from the core | network or transaction handling code. | | ———– | @param[in] title | | the message box / notification title | ––––– | @param[in] message | | the displayed text | ––––– | @param[in] style | | modality and style definitions (icon | and used buttons - buttons only for message | boxes) @see CClientUIInterface::MessageBoxFlags | ––––– | @param[in] ret | | pointer to a bool that will be modified | to whether Ok was clicked (modal only) | ––––– | @param[in] detailed_message | | the text to be displayed in the details | area |

source

pub fn change_event(&mut self, e: *mut u32)

source

pub fn close_event(&mut self, event: *mut u32)

source

pub fn show_event(&mut self, event: *mut u32)

source

pub fn drag_enter_event(&mut self, event: *mut u32)

source

pub fn drop_event(&mut self, event: *mut u32)

source

pub fn event_filter(&mut self, object: *mut u32, event: *mut u32) -> bool

source

pub fn update_proxy_icon(&mut self)

| Set the proxy-enabled icon as shown | in the UI. |

source

pub fn update_window_title(&mut self)

source

pub fn show_normal_if_minimized(&mut self, toggle_hidden: bool)

source

pub fn toggle_hidden(&mut self)

| Simply calls showNormalIfMinimized(true) | for use in SLOT() macro |

source

pub fn detect_shutdown(&mut self)

| called by a timer to check if ShutdownRequested() | has been set * |

source

pub fn show_progress(&mut self, title: &str, n_progress: i32)

| Show progress dialog e.g. for verifychain |

source

pub fn show_modal_overlay(&mut self)

source

pub fn subscribe_to_core_signals(&mut self)

| Connect core signals to GUI client |

source

pub fn unsubscribe_from_core_signals(&mut self)

| Disconnect core signals from GUI client |

source

pub fn is_privacy_mode_activated(&self) -> bool

Trait Implementations§

source§

impl Drop for BitcoinGUI


source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> StaticUpcast<T> for T

§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V