Trait fltk::prelude::WidgetType

source ·
pub trait WidgetType {
    // Required methods
    fn to_i32(self) -> i32;
    fn from_i32(val: i32) -> Self;
}
Expand description

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

Required Methods§

source

fn to_i32(self) -> i32

Get the integral representation of the widget type

source

fn from_i32(val: i32) -> Self

Get the widget type from its integral representation

Object Safety§

This trait is not object safe.

Implementors§