Struct multiboot2::VBEModeInfo

source ·
#[repr(C, packed(1))]
pub struct VBEModeInfo {
Show 25 fields pub mode_attributes: VBEModeAttributes, pub window_a_attributes: VBEWindowAttributes, pub window_b_attributes: VBEWindowAttributes, pub window_granularity: u16, pub window_size: u16, pub window_a_segment: u16, pub window_b_segment: u16, pub window_function_ptr: u32, pub pitch: u16, pub resolution: (u16, u16), pub character_size: (u8, u8), pub number_of_planes: u8, pub bpp: u8, pub number_of_banks: u8, pub memory_model: VBEMemoryModel, pub bank_size: u8, pub number_of_image_pages: u8, pub red_field: VBEField, pub green_field: VBEField, pub blue_field: VBEField, pub reserved_field: VBEField, pub direct_color_attributes: VBEDirectColorAttributes, pub framebuffer_base_ptr: u32, pub offscreen_memory_offset: u32, pub offscreen_memory_size: u16, /* private fields */
}
Expand description

Extended information about a specific VBE display mode from the mode list returned by VBEControlInfo (VBE Function 00h).

Fields§

§mode_attributes: VBEModeAttributes

Mode attributes.

§window_a_attributes: VBEWindowAttributes

Window A attributes.

§window_b_attributes: VBEWindowAttributes

Window B attributes.

§window_granularity: u16

Window granularity (Measured in Kilobytes.)

§window_size: u16

Window size.

§window_a_segment: u16

Window A start segment.

§window_b_segment: u16

Window B start segment.

§window_function_ptr: u32

Real mode pointer to window function.

§pitch: u16

Bytes per scan line

§resolution: (u16, u16)

Horizontal and vertical resolution in pixels or characters.

§character_size: (u8, u8)

Character cell width and height in pixels.

§number_of_planes: u8

Number of memory planes.

§bpp: u8

Bits per pixel

§number_of_banks: u8

Number of banks

§memory_model: VBEMemoryModel

Memory model type

§bank_size: u8

Bank size (Measured in Kilobytes.)

§number_of_image_pages: u8

Number of images.

§red_field: VBEField

Red colour field.

§green_field: VBEField

Green colour field.

§blue_field: VBEField

Blue colour field.

§reserved_field: VBEField

Reserved colour field.

§direct_color_attributes: VBEDirectColorAttributes

Direct colour mode attributes.

§framebuffer_base_ptr: u32

Physical address for flat memory frame buffer

§offscreen_memory_offset: u32

A pointer to the start of off screen memory.

§Deprecated

In VBE3.0 and above these fields are reserved and unused.

§offscreen_memory_size: u16

The amount of off screen memory in 1k units.

§Deprecated

In VBE3.0 and above these fields are reserved and unused.

Trait Implementations§

source§

impl Clone for VBEModeInfo

source§

fn clone(&self) -> VBEModeInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VBEModeInfo

source§

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

Formats the value using the given formatter. Read more
source§

impl Hash for VBEModeInfo

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for VBEModeInfo

source§

fn cmp(&self, other: &VBEModeInfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for VBEModeInfo

source§

fn eq(&self, other: &VBEModeInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for VBEModeInfo

source§

fn partial_cmp(&self, other: &VBEModeInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for VBEModeInfo

source§

impl Eq for VBEModeInfo

source§

impl StructuralPartialEq for VBEModeInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.