pub struct GammaCtrl { /* private fields */ }Expand description
Interactive gamma correction curve control.
Renders 7 paths: background, border, gamma curve, grid/crosshairs, inactive point, active point, and text display.
Port of C++ gamma_ctrl_impl + gamma_ctrl<ColorT>.
Implementations§
Source§impl GammaCtrl
impl GammaCtrl
pub fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
pub fn border_width(&mut self, t: f64, extra: f64)
pub fn curve_width(&mut self, t: f64)
pub fn grid_width(&mut self, t: f64)
pub fn text_thickness(&mut self, t: f64)
pub fn text_size(&mut self, h: f64, w: f64)
pub fn point_size(&mut self, s: f64)
pub fn set_values(&mut self, kx1: f64, ky1: f64, kx2: f64, ky2: f64)
pub fn get_values(&self) -> (f64, f64, f64, f64)
pub fn gamma(&self) -> &[u8; 256]
pub fn y(&self, x: f64) -> f64
pub fn get_gamma_spline(&self) -> &GammaSpline
pub fn change_active_point(&mut self)
pub fn background_color(&mut self, c: Rgba8)
pub fn border_color(&mut self, c: Rgba8)
pub fn curve_color(&mut self, c: Rgba8)
pub fn grid_color(&mut self, c: Rgba8)
pub fn inactive_pnt_color(&mut self, c: Rgba8)
pub fn active_pnt_color(&mut self, c: Rgba8)
pub fn text_color(&mut self, c: Rgba8)
pub fn in_rect(&self, x: f64, y: f64) -> bool
pub fn on_mouse_move(&mut self, x: f64, y: f64, button_flag: bool) -> bool
pub fn on_arrow_keys( &mut self, left: bool, right: bool, down: bool, up: bool, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GammaCtrl
impl !RefUnwindSafe for GammaCtrl
impl Send for GammaCtrl
impl !Sync for GammaCtrl
impl Unpin for GammaCtrl
impl UnwindSafe for GammaCtrl
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