Trait WidgetType

pub trait WidgetType {
    // Required methods
    fn to_i32(self) -> i32;
    fn from_i32(val: i32) -> Self;
}
Available on crate feature dep_fltk only.
Expand description

A trait defined for all enums passable to the WidgetExt::set_type() method

Required Methods§

fn to_i32(self) -> i32

Get the integral representation of the widget type

fn from_i32(val: i32) -> Self

Get the widget type from its integral representation

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§