Enum fltk::enums::FrameType[][src]

#[repr(i32)]
pub enum FrameType {
Show variants NoBox, FlatBox, UpBox, DownBox, UpFrame, DownFrame, ThinUpBox, ThinDownBox, ThinUpFrame, ThinDownFrame, EngravedBox, EmbossedBox, EngravedFrame, EmbossedFrame, BorderBox, ShadowBox, BorderFrame, ShadowFrame, RoundedBox, RShadowBox, RoundedFrame, RFlatBox, RoundUpBox, RoundDownBox, DiamondUpBox, DiamondDownBox, OvalBox, OShadowBox, OvalFrame, OFlatFrame, PlasticUpBox, PlasticDownBox, PlasticUpFrame, PlasticDownFrame, PlasticThinUpBox, PlasticThinDownBox, PlasticRoundUpBox, PlasticRoundDownBox, GtkUpBox, GtkDownBox, GtkUpFrame, GtkDownFrame, GtkThinUpBox, GtkThinDownBox, GtkThinUpFrame, GtkThinDownFrame, GtkRoundUpFrame, GtkRoundDownFrame, GleamUpBox, GleamDownBox, GleamUpFrame, GleamDownFrame, GleamThinUpBox, GleamThinDownBox, GleamRoundUpBox, GleamRoundDownBox, FreeBoxType,
}

Defines the frame types which can be set using the set_frame() and set_down_frame() methods

Variants

NoBox

No Box

FlatBox

Flat Box

UpBox

Up Box

DownBox

Down Box

UpFrame

Up Frame

DownFrame

Down Frame

ThinUpBox

Thin Up Box

ThinDownBox

Thin Down Box

ThinUpFrame

Thin Up Frame

ThinDownFrame

Thin Down Frame

EngravedBox

Engraved Box

EmbossedBox

Embossed Box

EngravedFrame

Engraved Frame

EmbossedFrame

Embossed Frame

BorderBox

Border Box

ShadowBox

Shadow Box

BorderFrame

Border Frame

ShadowFrame

Shadow Frame

RoundedBox

Rounded Box

RShadowBox

Rounded Shadow Box

RoundedFrame

Rounded Frame

RFlatBox

Rounded Flat Box

RoundUpBox

Round Up Box

RoundDownBox

Round Down Box

DiamondUpBox

Diamond Up Box

DiamondDownBox

Diamond Down Box

OvalBox

Oval Box

OShadowBox

Oval Shadow Box

OvalFrame

Oval Frame

OFlatFrame

Oval Flat Frame

PlasticUpBox

Plastic Up Box

PlasticDownBox

Plastic Down Box

PlasticUpFrame

Plastic Up Frame

PlasticDownFrame

Plastic Down Frame

PlasticThinUpBox

Plastic Thin Up Box

PlasticThinDownBox

Plastic Thin Down Box

PlasticRoundUpBox

Plastic Round Up Box

PlasticRoundDownBox

Plastic Round Down Box

GtkUpBox

Gtk Up Box

GtkDownBox

Gtk Down Box

GtkUpFrame

Gtk Up Frame

GtkDownFrame

Gtk Down Frame

GtkThinUpBox

Gtk Thin Up Box

GtkThinDownBox

Gtk Thin Down Box

GtkThinUpFrame

Gtk Thin Up Frame

GtkThinDownFrame

Gtk Thin Down Frame

GtkRoundUpFrame

Gtk Round Up Frame

GtkRoundDownFrame

Gtk Round Down Frame

GleamUpBox

Gleam Up Box

GleamDownBox

Gleam Down Box

GleamUpFrame

Gleam Up Frame

GleamDownFrame

Gleam Down Frame

GleamThinUpBox

Gleam Thin Up Box

GleamThinDownBox

Gleam Thin Down Box

GleamRoundUpBox

Gleam Round Up Box

GleamRoundDownBox

Gleam Round Down Box

FreeBoxType

Free BoxType

Implementations

impl FrameType[src]

pub fn by_index(idx: usize) -> FrameType[src]

Gets the Frame type by index

pub fn dx(self) -> i32[src]

Get the frame’s x offset

pub fn dy(self) -> i32[src]

Get the frame’s y offset

pub fn dw(self) -> i32[src]

Get the frame’s width offset

pub fn dh(self) -> i32[src]

Get the frame’s height offset

Trait Implementations

impl Clone for FrameType[src]

fn clone(&self) -> FrameType[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for FrameType[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<FrameType> for FrameType[src]

fn eq(&self, other: &FrameType) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for FrameType[src]

impl StructuralPartialEq for FrameType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.