pub struct RboxCtrl { /* private fields */ }Expand description
Radio button box control rendered via AGG.
Renders 5 paths: background, border (hollow), item text labels, inactive radio circles (stroked), active radio circle (filled).
Port of C++ rbox_ctrl_impl.
Implementations§
Source§impl RboxCtrl
impl RboxCtrl
pub fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
pub fn add_item(&mut self, text: &str)
pub fn cur_item(&self) -> i32
pub fn set_cur_item(&mut self, i: i32)
pub fn text_size(&mut self, h: f64, w: f64)
pub fn border_width(&mut self, t: f64, extra: f64)
pub fn text_thickness(&mut self, t: f64)
pub fn background_color(&mut self, c: Rgba8)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RboxCtrl
impl RefUnwindSafe for RboxCtrl
impl Send for RboxCtrl
impl Sync for RboxCtrl
impl Unpin for RboxCtrl
impl UnsafeUnpin for RboxCtrl
impl UnwindSafe for RboxCtrl
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