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
impl BitcoinGUI
sourcepub fn has_tray_icon(&self) -> bool
pub fn has_tray_icon(&self) -> bool
| Get the tray icon status. | | Some systems have not “system tray” | or “notification area” available. |
pub fn quit_requested(&mut self)
sourcepub fn receiveduri(&mut self, uri: &String)
pub fn receiveduri(&mut self, uri: &String)
| Signal raised when a URI was entered | or dragged to the GUI |
sourcepub fn console_shown(&mut self, console: *mut RPCConsole)
pub fn console_shown(&mut self, console: *mut RPCConsole)
| Signal raised when RPC console shown |
pub fn set_privacy(&mut self, privacy: bool)
sourcepub fn show_normal_if_minimized_default(&mut self)
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
impl BitcoinGUI
pub fn new( node: Rc<RefCell<dyn NodeInterface>>, platform_style: *const PlatformStyle, network_style: *const NetworkStyle, parent: *mut u32 ) -> Self
sourcepub fn create_actions(&mut self)
pub fn create_actions(&mut self)
| Create the main UI actions. |
| Create the menu bar and sub-menus. |
sourcepub fn create_tool_bars(&mut self)
pub fn create_tool_bars(&mut self)
| Create the toolbars |
sourcepub fn set_client_model(
&mut self,
client_model: *mut ClientModel,
tip_info: *mut BlockAndHeaderTipInfo
)
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. |
sourcepub fn set_wallet_actions_enabled(&mut self, enabled: bool)
pub fn set_wallet_actions_enabled(&mut self, enabled: bool)
| Enable or disable all wallet-related | actions |
sourcepub fn create_tray_icon(&mut self)
pub fn create_tray_icon(&mut self)
| Create system tray icon and notification |
| Create system tray menu (or setup the | dock menu) |
sourcepub fn tray_icon_activated(&mut self, reason: u32)
pub fn tray_icon_activated(&mut self, reason: u32)
| Handle tray icon clicked |
sourcepub fn options_clicked(&mut self)
pub fn options_clicked(&mut self)
| Show configuration dialog |
sourcepub fn about_clicked(&mut self)
pub fn about_clicked(&mut self)
| Show about dialog |
sourcepub fn show_debug_window(&mut self)
pub fn show_debug_window(&mut self)
| Show debug window |
sourcepub fn show_debug_window_activate_console(&mut self)
pub fn show_debug_window_activate_console(&mut self)
| Show debug window and set focus to the | console |
sourcepub fn show_help_message_clicked(&mut self)
pub fn show_help_message_clicked(&mut self)
| Show help message dialog |
sourcepub fn update_network_state(&mut self)
pub fn update_network_state(&mut self)
| Update UI with latest network info from | model. |
sourcepub fn set_num_connections(&mut self, count: i32)
pub fn set_num_connections(&mut self, count: i32)
| Set number of connections shown in the | UI |
sourcepub fn set_network_active(&mut self, network_active: bool)
pub fn set_network_active(&mut self, network_active: bool)
| Set network state shown in the UI |
pub fn update_headers_sync_progress_label(&mut self)
sourcepub fn open_options_dialog_with_tab(&mut self, tab: u32)
pub fn open_options_dialog_with_tab(&mut self, tab: u32)
| Open the OptionsDialog on the specified | tab index |
sourcepub fn set_num_blocks(
&mut self,
count: i32,
block_date: &u32,
n_verification_progress: f64,
header: bool,
sync_state: SynchronizationState
)
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 |
sourcepub fn message(
&mut self,
title: &str,
message: &str,
style: u32,
ret: *mut bool,
detailed_message: &str
)
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 |
pub fn change_event(&mut self, e: *mut u32)
pub fn close_event(&mut self, event: *mut u32)
pub fn show_event(&mut self, event: *mut u32)
pub fn drag_enter_event(&mut self, event: *mut u32)
pub fn drop_event(&mut self, event: *mut u32)
pub fn event_filter(&mut self, object: *mut u32, event: *mut u32) -> bool
sourcepub fn update_proxy_icon(&mut self)
pub fn update_proxy_icon(&mut self)
| Set the proxy-enabled icon as shown | in the UI. |
pub fn update_window_title(&mut self)
pub fn show_normal_if_minimized(&mut self, toggle_hidden: bool)
| Simply calls showNormalIfMinimized(true) | for use in SLOT() macro |
sourcepub fn detect_shutdown(&mut self)
pub fn detect_shutdown(&mut self)
| called by a timer to check if ShutdownRequested() | has been set * |
sourcepub fn show_progress(&mut self, title: &str, n_progress: i32)
pub fn show_progress(&mut self, title: &str, n_progress: i32)
| Show progress dialog e.g. for verifychain |
pub fn show_modal_overlay(&mut self)
sourcepub fn subscribe_to_core_signals(&mut self)
pub fn subscribe_to_core_signals(&mut self)
| Connect core signals to GUI client |
sourcepub fn unsubscribe_from_core_signals(&mut self)
pub fn unsubscribe_from_core_signals(&mut self)
| Disconnect core signals from GUI client |