pub struct FileListBoxProperties {Show 29 fields
pub appearance: Appearance,
pub archive: ArchiveAttribute,
pub back_color: Color,
pub causes_validation: CausesValidation,
pub drag_icon: Option<ReferenceOrValue<DynamicImage>>,
pub drag_mode: DragMode,
pub enabled: Activation,
pub font: Option<Font>,
pub fore_color: Color,
pub height: i32,
pub help_context_id: i32,
pub hidden: HiddenAttribute,
pub left: i32,
pub mouse_icon: Option<ReferenceOrValue<DynamicImage>>,
pub mouse_pointer: MousePointer,
pub multi_select: MultiSelect,
pub normal: NormalAttribute,
pub ole_drag_mode: OLEDragMode,
pub ole_drop_mode: OLEDropMode,
pub pattern: String,
pub read_only: ReadOnlyAttribute,
pub system: SystemAttribute,
pub tab_index: i32,
pub tab_stop: TabStop,
pub tool_tip_text: String,
pub top: i32,
pub visible: Visibility,
pub whats_this_help_id: i32,
pub width: i32,
}Expand description
Properties for a FileListBox control.
This is used as an enum variant of
ControlKind::FileListBox.
tag, name, and index are not included in this struct, but instead are part
of the parent Control struct.
Fields§
§appearance: AppearanceThe appearance of the FileListBox.
archive: ArchiveAttributeThe archive attribute of the FileListBox.
back_color: ColorThe background color of the FileListBox.
causes_validation: CausesValidationWhether the FileListBox causes validation.
drag_icon: Option<ReferenceOrValue<DynamicImage>>The drag icon of the FileListBox.
drag_mode: DragModeThe drag mode of the FileListBox.
enabled: ActivationWhether the FileListBox is enabled.
font: Option<Font>The font style for the form.
fore_color: ColorThe foreground color of the FileListBox.
height: i32The height of the FileListBox.
help_context_id: i32The help context ID of the FileListBox.
The hidden attribute of the FileListBox.
left: i32The left position of the FileListBox.
mouse_icon: Option<ReferenceOrValue<DynamicImage>>The mouse icon of the FileListBox.
mouse_pointer: MousePointerThe mouse pointer of the FileListBox.
multi_select: MultiSelectThe multi-select mode of the FileListBox.
normal: NormalAttributeThe normal attribute of the FileListBox.
ole_drag_mode: OLEDragModeThe OLE drag mode of the FileListBox.
ole_drop_mode: OLEDropModeThe OLE drop mode of the FileListBox.
pattern: StringThe file pattern filter of the FileListBox.
read_only: ReadOnlyAttributeThe read-only attribute of the FileListBox.
system: SystemAttributeThe system attribute of the FileListBox.
tab_index: i32The tab index of the FileListBox.
tab_stop: TabStopThe tab stop of the FileListBox.
tool_tip_text: StringThe tool tip text of the FileListBox.
top: i32The top position of the FileListBox.
visible: VisibilityThe visibility of the FileListBox.
whats_this_help_id: i32The “What’s This?” help ID of the FileListBox.
width: i32The width of the FileListBox.
Trait Implementations§
Source§impl Clone for FileListBoxProperties
impl Clone for FileListBoxProperties
Source§fn clone(&self) -> FileListBoxProperties
fn clone(&self) -> FileListBoxProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileListBoxProperties
impl Debug for FileListBoxProperties
Source§impl Default for FileListBoxProperties
impl Default for FileListBoxProperties
Source§impl From<Properties> for FileListBoxProperties
impl From<Properties> for FileListBoxProperties
Source§fn from(prop: Properties) -> Self
fn from(prop: Properties) -> Self
Source§impl PartialEq for FileListBoxProperties
impl PartialEq for FileListBoxProperties
Source§impl Serialize for FileListBoxProperties
impl Serialize for FileListBoxProperties
impl StructuralPartialEq for FileListBoxProperties
Auto Trait Implementations§
impl Freeze for FileListBoxProperties
impl RefUnwindSafe for FileListBoxProperties
impl Send for FileListBoxProperties
impl Sync for FileListBoxProperties
impl Unpin for FileListBoxProperties
impl UnsafeUnpin for FileListBoxProperties
impl UnwindSafe for FileListBoxProperties
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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>
ReadEndian::read_from_little_endian().