[][src]Struct gtk::JunctionSides

pub struct JunctionSides { /* fields omitted */ }

Describes how a rendered element connects to adjacent elements.

Implementations

impl JunctionSides[src]

pub const NONE: JunctionSides[src]

No junctions.

pub const CORNER_TOPLEFT: JunctionSides[src]

Element connects on the top-left corner.

pub const CORNER_TOPRIGHT: JunctionSides[src]

Element connects on the top-right corner.

pub const CORNER_BOTTOMLEFT: JunctionSides[src]

Element connects on the bottom-left corner.

pub const CORNER_BOTTOMRIGHT: JunctionSides[src]

Element connects on the bottom-right corner.

pub const TOP: JunctionSides[src]

Element connects on the top side.

pub const BOTTOM: JunctionSides[src]

Element connects on the bottom side.

pub const LEFT: JunctionSides[src]

Element connects on the left side.

pub const RIGHT: JunctionSides[src]

Element connects on the right side.

pub const fn empty() -> JunctionSides[src]

Returns an empty set of flags

pub const fn all() -> JunctionSides[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<JunctionSides>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> JunctionSides[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> JunctionSides[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: JunctionSides) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: JunctionSides) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: JunctionSides)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: JunctionSides)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: JunctionSides)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: JunctionSides, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for JunctionSides[src]

impl BitAnd<JunctionSides> for JunctionSides[src]

type Output = JunctionSides

The resulting type after applying the & operator.

fn bitand(self, other: JunctionSides) -> JunctionSides[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<JunctionSides> for JunctionSides[src]

fn bitand_assign(&mut self, other: JunctionSides)[src]

Disables all flags disabled in the set.

impl BitOr<JunctionSides> for JunctionSides[src]

type Output = JunctionSides

The resulting type after applying the | operator.

fn bitor(self, other: JunctionSides) -> JunctionSides[src]

Returns the union of the two sets of flags.

impl BitOrAssign<JunctionSides> for JunctionSides[src]

fn bitor_assign(&mut self, other: JunctionSides)[src]

Adds the set of flags.

impl BitXor<JunctionSides> for JunctionSides[src]

type Output = JunctionSides

The resulting type after applying the ^ operator.

fn bitxor(self, other: JunctionSides) -> JunctionSides[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<JunctionSides> for JunctionSides[src]

fn bitxor_assign(&mut self, other: JunctionSides)[src]

Toggles the set of flags.

impl Clone for JunctionSides[src]

impl Copy for JunctionSides[src]

impl Debug for JunctionSides[src]

impl Eq for JunctionSides[src]

impl Extend<JunctionSides> for JunctionSides[src]

impl FromIterator<JunctionSides> for JunctionSides[src]

impl<'a> FromValue<'a> for JunctionSides[src]

impl<'a> FromValueOptional<'a> for JunctionSides[src]

impl Hash for JunctionSides[src]

impl LowerHex for JunctionSides[src]

impl Not for JunctionSides[src]

type Output = JunctionSides

The resulting type after applying the ! operator.

fn not(self) -> JunctionSides[src]

Returns the complement of this set of flags.

impl Octal for JunctionSides[src]

impl Ord for JunctionSides[src]

impl PartialEq<JunctionSides> for JunctionSides[src]

impl PartialOrd<JunctionSides> for JunctionSides[src]

impl SetValue for JunctionSides[src]

impl StaticType for JunctionSides[src]

impl StructuralEq for JunctionSides[src]

impl StructuralPartialEq for JunctionSides[src]

impl Sub<JunctionSides> for JunctionSides[src]

type Output = JunctionSides

The resulting type after applying the - operator.

fn sub(self, other: JunctionSides) -> JunctionSides[src]

Returns the set difference of the two sets of flags.

impl SubAssign<JunctionSides> for JunctionSides[src]

fn sub_assign(&mut self, other: JunctionSides)[src]

Disables all flags enabled in the set.

impl UpperHex for JunctionSides[src]

Auto Trait Implementations

impl RefUnwindSafe for JunctionSides

impl Send for JunctionSides

impl Sync for JunctionSides

impl Unpin for JunctionSides

impl UnwindSafe for JunctionSides

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.

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.