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: VBEModeAttributesMode attributes.
window_a_attributes: VBEWindowAttributesWindow A attributes.
window_b_attributes: VBEWindowAttributesWindow B attributes.
window_granularity: u16Window granularity (Measured in Kilobytes.)
window_size: u16Window size.
window_a_segment: u16Window A start segment.
window_b_segment: u16Window B start segment.
window_function_ptr: u32Real mode pointer to window function.
pitch: u16Bytes 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: u8Number of memory planes.
bpp: u8Bits per pixel
number_of_banks: u8Number of banks
memory_model: VBEMemoryModelMemory model type
bank_size: u8Bank size (Measured in Kilobytes.)
number_of_image_pages: u8Number of images.
red_field: VBEFieldRed colour field.
green_field: VBEFieldGreen colour field.
blue_field: VBEFieldBlue colour field.
reserved_field: VBEFieldReserved colour field.
direct_color_attributes: VBEDirectColorAttributesDirect colour mode attributes.
framebuffer_base_ptr: u32Physical address for flat memory frame buffer
offscreen_memory_offset: u32A pointer to the start of off screen memory.
Deprecated
In VBE3.0 and above these fields are reserved and unused.
offscreen_memory_size: u16The 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
impl Clone for VBEModeInfo
source§fn clone(&self) -> VBEModeInfo
fn clone(&self) -> VBEModeInfo
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VBEModeInfo
impl Debug for VBEModeInfo
source§impl Hash for VBEModeInfo
impl Hash for VBEModeInfo
source§impl Ord for VBEModeInfo
impl Ord for VBEModeInfo
source§impl PartialEq for VBEModeInfo
impl PartialEq for VBEModeInfo
source§impl PartialOrd for VBEModeInfo
impl PartialOrd for VBEModeInfo
impl Copy for VBEModeInfo
impl Eq for VBEModeInfo
impl StructuralEq for VBEModeInfo
impl StructuralPartialEq for VBEModeInfo
Auto Trait Implementations§
impl RefUnwindSafe for VBEModeInfo
impl Send for VBEModeInfo
impl Sync for VBEModeInfo
impl Unpin for VBEModeInfo
impl UnwindSafe for VBEModeInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Self::dst_size implementation. Read more