pub struct BorderTiles {
pub top_left: u8,
pub top: u8,
pub top_right: u8,
pub left: u8,
pub right: u8,
pub bottom_left: u8,
pub bottom: u8,
pub bottom_right: u8,
pub fill: u8,
}Expand description
Tile indices for a Game Boy-style box border.
Each field corresponds to a specific position in the border grid:
┌──────┬──────┬──────┬──────┬──────┐
│ tl │ top │ top │ top │ tr │
├──────┼──────┼──────┼──────┼──────┤
│ left │ fill │ fill │ fill │ right│
├──────┼──────┼──────┼──────┼──────┤
│ left │ fill │ fill │ fill │ right│
├──────┼──────┼──────┼──────┼──────┤
│ bl │ bot │ bot │ bot │ br │
└──────┴──────┴──────┴──────┴──────┘Defaults match the box-drawing tile IDs from the embedded font (0x79–0x7F).
Fields§
§top_left: u8Top-left corner tile.
top: u8Top edge tile (repeated across the top).
top_right: u8Top-right corner tile.
left: u8Left edge tile (repeated down the left side).
right: u8Right edge tile (repeated down the right side).
bottom_left: u8Bottom-left corner tile.
bottom: u8Bottom edge tile (repeated across the bottom).
bottom_right: u8Bottom-right corner tile.
fill: u8Fill tile for the interior.
Trait Implementations§
Source§impl Clone for BorderTiles
impl Clone for BorderTiles
Source§fn clone(&self) -> BorderTiles
fn clone(&self) -> BorderTiles
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BorderTiles
Source§impl Debug for BorderTiles
impl Debug for BorderTiles
Source§impl Default for BorderTiles
impl Default for BorderTiles
impl Eq for BorderTiles
Source§impl PartialEq for BorderTiles
impl PartialEq for BorderTiles
impl StructuralPartialEq for BorderTiles
Auto Trait Implementations§
impl Freeze for BorderTiles
impl RefUnwindSafe for BorderTiles
impl Send for BorderTiles
impl Sync for BorderTiles
impl Unpin for BorderTiles
impl UnsafeUnpin for BorderTiles
impl UnwindSafe for BorderTiles
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.