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,
}
Expand description

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

Variants

NoBox
Expand description

No Box

FlatBox
Expand description

Flat Box

UpBox
Expand description

Up Box

DownBox
Expand description

Down Box

UpFrame
Expand description

Up Frame

DownFrame
Expand description

Down Frame

ThinUpBox
Expand description

Thin Up Box

ThinDownBox
Expand description

Thin Down Box

ThinUpFrame
Expand description

Thin Up Frame

ThinDownFrame
Expand description

Thin Down Frame

EngravedBox
Expand description

Engraved Box

EmbossedBox
Expand description

Embossed Box

EngravedFrame
Expand description

Engraved Frame

EmbossedFrame
Expand description

Embossed Frame

BorderBox
Expand description

Border Box

ShadowBox
Expand description

Shadow Box

BorderFrame
Expand description

Border Frame

ShadowFrame
Expand description

Shadow Frame

RoundedBox
Expand description

Rounded Box

RShadowBox
Expand description

Rounded Shadow Box

RoundedFrame
Expand description

Rounded Frame

RFlatBox
Expand description

Rounded Flat Box

RoundUpBox
Expand description

Round Up Box

RoundDownBox
Expand description

Round Down Box

DiamondUpBox
Expand description

Diamond Up Box

DiamondDownBox
Expand description

Diamond Down Box

OvalBox
Expand description

Oval Box

OShadowBox
Expand description

Oval Shadow Box

OvalFrame
Expand description

Oval Frame

OFlatFrame
Expand description

Oval Flat Frame

PlasticUpBox
Expand description

Plastic Up Box

PlasticDownBox
Expand description

Plastic Down Box

PlasticUpFrame
Expand description

Plastic Up Frame

PlasticDownFrame
Expand description

Plastic Down Frame

PlasticThinUpBox
Expand description

Plastic Thin Up Box

PlasticThinDownBox
Expand description

Plastic Thin Down Box

PlasticRoundUpBox
Expand description

Plastic Round Up Box

PlasticRoundDownBox
Expand description

Plastic Round Down Box

GtkUpBox
Expand description

Gtk Up Box

GtkDownBox
Expand description

Gtk Down Box

GtkUpFrame
Expand description

Gtk Up Frame

GtkDownFrame
Expand description

Gtk Down Frame

GtkThinUpBox
Expand description

Gtk Thin Up Box

GtkThinDownBox
Expand description

Gtk Thin Down Box

GtkThinUpFrame
Expand description

Gtk Thin Up Frame

GtkThinDownFrame
Expand description

Gtk Thin Down Frame

GtkRoundUpFrame
Expand description

Gtk Round Up Frame

GtkRoundDownFrame
Expand description

Gtk Round Down Frame

GleamUpBox
Expand description

Gleam Up Box

GleamDownBox
Expand description

Gleam Down Box

GleamUpFrame
Expand description

Gleam Up Frame

GleamDownFrame
Expand description

Gleam Down Frame

GleamThinUpBox
Expand description

Gleam Thin Up Box

GleamThinDownBox
Expand description

Gleam Thin Down Box

GleamRoundUpBox
Expand description

Gleam Round Up Box

GleamRoundDownBox
Expand description

Gleam Round Down Box

FreeBoxType
Expand description

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.