pub struct ResourcePanel {Show 17 fields
pub resizable: [bool; 4],
pub background: BackgroundType,
pub min_size: [f32; 2],
pub max_size: Option<[f32; 2]>,
pub movable: [bool; 2],
pub scroll_length_method: [Option<ScrollLengthMethod>; 2],
pub scroll_sensitivity: f32,
pub use_smooth_scroll_delta: bool,
pub scroll_bar_display_method: ScrollBarDisplayMethod,
pub overall_layout: PanelLayout,
pub custom_layout: Vec<CustomPanelLayout>,
pub scroll_length: [f32; 2],
pub scroll_progress: [f32; 2],
pub last_frame_mouse_status: Option<([f32; 2], ClickAim, [f32; 2])>,
pub scrolled: [bool; 2],
pub scroll_bar_alpha: [u8; 2],
pub tags: Vec<[String; 2]>,
}Expand description
RC的资源板。
Fields§
§resizable: [bool; 4]是否可通过拖拽更改尺寸。
background: BackgroundType在资源底部显示方框。
min_size: [f32; 2]最小尺寸。
max_size: Option<[f32; 2]>最大尺寸(可选)。
movable: [bool; 2]允许拖动资源板。
scroll_length_method: [Option<ScrollLengthMethod>; 2]滚动长度计算方法(不需要滚动留空即可)。
scroll_sensitivity: f32滚动敏感度。
use_smooth_scroll_delta: bool是否使用平滑滚动。
scroll_bar_display_method: ScrollBarDisplayMethod滚动条显示方法。
overall_layout: PanelLayout全局控制资源的排版方式。
custom_layout: Vec<CustomPanelLayout>自定义资源的排版方式。
scroll_length: [f32; 2]滚动长度。
scroll_progress: [f32; 2]滚动进度。
last_frame_mouse_status: Option<([f32; 2], ClickAim, [f32; 2])>是否按下鼠标与按下后鼠标状态。
scrolled: [bool; 2]本帧是否滚动。
scroll_bar_alpha: [u8; 2]滚动条透明度。
标签。
Implementations§
Source§impl ResourcePanel
impl ResourcePanel
pub fn resizable(self, top: bool, bottom: bool, left: bool, right: bool) -> Self
pub fn background(self, background: &BackgroundType) -> Self
pub fn min_size(self, width: f32, height: f32) -> Self
pub fn max_size(self, max_size: Option<[f32; 2]>) -> Self
pub fn movable(self, horizontal: bool, vertical: bool) -> Self
pub fn scroll_length_method( self, horizontal: Option<ScrollLengthMethod>, vertical: Option<ScrollLengthMethod>, ) -> Self
pub fn scroll_sensitivity(self, scroll_sensitivity: f32) -> Self
pub fn use_smooth_scroll_delta(self, use_smooth_scroll_delta: bool) -> Self
pub fn scroll_bar_display_method( self, scroll_bar_display_method: ScrollBarDisplayMethod, ) -> Self
pub fn overall_layout(self, overall_layout: PanelLayout) -> Self
pub fn push_custom_layout(self, custom_layout: CustomPanelLayout) -> Self
pub fn custom_layout(self, custom_layout: &[CustomPanelLayout]) -> Self
Trait Implementations§
Source§impl Clone for ResourcePanel
impl Clone for ResourcePanel
Source§fn clone(&self) -> ResourcePanel
fn clone(&self) -> ResourcePanel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourcePanel
impl Debug for ResourcePanel
Source§impl Default for ResourcePanel
impl Default for ResourcePanel
Source§impl PartialEq for ResourcePanel
impl PartialEq for ResourcePanel
Source§impl PartialOrd for ResourcePanel
impl PartialOrd for ResourcePanel
Source§impl RustConstructorResource for ResourcePanel
impl RustConstructorResource for ResourcePanel
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
用于可变类型转换。
Source§fn display_display_info(&self) -> Option<DisplayInfo>
fn display_display_info(&self) -> Option<DisplayInfo>
显示显示信息。
Source§fn modify_display_info(&mut self, _display_info: DisplayInfo)
fn modify_display_info(&mut self, _display_info: DisplayInfo)
修改显示信息。
显示已有的标签。
修改已有的标签。
impl StructuralPartialEq for ResourcePanel
Auto Trait Implementations§
impl Freeze for ResourcePanel
impl RefUnwindSafe for ResourcePanel
impl Send for ResourcePanel
impl Sync for ResourcePanel
impl Unpin for ResourcePanel
impl UnsafeUnpin for ResourcePanel
impl UnwindSafe for ResourcePanel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().