Skip to main content

SystemMonitorPane

Struct SystemMonitorPane 

Source
pub struct SystemMonitorPane {
Show 15 fields pub x: i32, pub y: i32, pub width: u32, pub height: u32, pub last_update_ticks: usize, pub sort_col: SortColumn, pub sort_asc: bool, pub selected_idx: Option<usize>, pub focused: bool, pub last_mouse_btn: bool, pub last_click_ms: u64, pub wants_power_menu: bool, pub core_loads: [u32; 4], pub last_core_update_ticks: usize, pub dhcp_status: String,
}

Fields§

§x: i32§y: i32§width: u32§height: u32§last_update_ticks: usize§sort_col: SortColumn§sort_asc: bool§selected_idx: Option<usize>§focused: bool§last_mouse_btn: bool§last_click_ms: u64§wants_power_menu: bool§core_loads: [u32; 4]§last_core_update_ticks: usize§dhcp_status: String

Implementations§

Source§

impl SystemMonitorPane

Source

pub fn new(x: i32, y: i32, w: u32, h: u32) -> Self

Source

pub fn draw(&mut self, screen: &Screen)

システムモニターペインのプレミアムな描画処理 (チラつき防止のため右側領域に部分限定描画)

Source

fn draw_process_list( &self, screen: &Screen, ux0: u32, y_start: u32, ux1: u32, uy1: u32, )

Source

pub fn build_process_list(&self) -> Vec<ProcessInfo>

Source

pub fn handle_mouse(&mut self, mx: i32, my: i32, btn_left: bool) -> bool

Source

pub fn handle_key(&mut self, keycode: u8, _ascii: Option<char>) -> bool

Source

fn activate_selected(&mut self)

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.