pub struct TrackbarOpts {
pub position: (i32, i32),
pub size: (i32, i32),
pub control_style: TBS,
pub window_style: WS,
pub window_ex_style: WS_EX,
pub ctrl_id: u16,
pub resize_behavior: (Horz, Vert),
pub range: (u32, u32),
pub value: u32,
}
Available on crate feature
gui
only.Expand description
Options to create a Trackbar
programmatically with
Trackbar::new
.
Fields§
§position: (i32, i32)
Left and top position coordinates of control within parent’s client area, to be created.
Defaults to gui::dpi(0, 0)
.
size: (i32, i32)
Width and height of control to be created.
Defaults to gui::dpi(120, 23)
.
control_style: TBS
Trackbar styles to be created.
Defaults to TBS::HORZ | TBS::AUTOTICKS
.
window_style: WS
Window styles to be created.
Defaults to WS::CHILD | WS::GROUP | WS::TABSTOP | WS::VISIBLE
.
window_ex_style: WS_EX
Extended window styles to be created.
Defaults to WS_EX::LEFT
.
ctrl_id: u16
The control ID.
Defaults to an auto-generated ID.
resize_behavior: (Horz, Vert)
Horizontal and vertical behavior of the control when the parent window is resized.
Defaults to (gui::Horz::None, gui::Vert::None)
.
range: (u32, u32)
The minimum and maximum position values.
Defaults to (0, 100)
.
value: u32
Initial position value.
Defaults to 0
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackbarOpts
impl RefUnwindSafe for TrackbarOpts
impl Send for TrackbarOpts
impl Sync for TrackbarOpts
impl Unpin for TrackbarOpts
impl UnwindSafe for TrackbarOpts
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