pub fn pixel_order(self) -> PixelOrder {
    let bits = (self as u32 >> 20) & 0x0F;
    if self.is_packed() {
      match bits as fermium::_bindgen_ty_4::Type {
        SDL_PACKEDORDER_ABGR => PixelOrder::Packed(PackedPixelOrder::ABGR),
        SDL_PACKEDORDER_ARGB => PixelOrder::Packed(PackedPixelOrder::ARGB),
        SDL_PACKEDORDER_BGRA => PixelOrder::Packed(PackedPixelOrder::BGRA),
        SDL_PACKEDORDER_BGRX => PixelOrder::Packed(PackedPixelOrder::BGRX),
        SDL_PACKEDORDER_RGBA => PixelOrder::Packed(PackedPixelOrder::RGBA),
        SDL_PACKEDORDER_RGBX => PixelOrder::Packed(PackedPixelOrder::RGBX),
        SDL_PACKEDORDER_XBGR => PixelOrder::Packed(PackedPixelOrder::XBGR),
        SDL_PACKEDORDER_XRGB => PixelOrder::Packed(PackedPixelOrder::XRGB),
        _ => PixelOrder::Packed(PackedPixelOrder::None),
      }
    } else if self.is_array() {
      match bits as fermium::_bindgen_ty_4::Type {
        SDL_ARRAYORDER_ABGR => PixelOrder::Array(ArrayPixelOrder::ABGR),
        SDL_ARRAYORDER_ARGB => PixelOrder::Array(ArrayPixelOrder::ARGB),
        SDL_ARRAYORDER_BGR => PixelOrder::Array(ArrayPixelOrder::BGR),
        SDL_ARRAYORDER_BGRA => PixelOrder::Array(ArrayPixelOrder::BGRA),
        SDL_ARRAYORDER_RGB => PixelOrder::Array(ArrayPixelOrder::RGB),
        SDL_ARRAYORDER_RGBA => PixelOrder::Array(ArrayPixelOrder::RGBA),
        _ => PixelOrder::Array(ArrayPixelOrder::None),
      }
    } else {
      match bits as fermium::_bindgen_ty_2::Type {
        SDL_BITMAPORDER_1234 => PixelOrder::Bitmap(BitmapPixelOrder::_1234),
        SDL_BITMAPORDER_4321 => PixelOrder::Bitmap(BitmapPixelOrder::_4321),
        _ => PixelOrder::Bitmap(BitmapPixelOrder::None),
      }
    }
  }
/// Ordering of channel or bits in the pixel format.
///
/// Unknown values convert to one of the `None` variants.
Ordering of channel or bits in the pixel format.
Unknown values convert to one of the `None` variants.
Ordering of channel or bits in the pixel format . Unknown values convert to one of the ` None ` variants .
pub fn pixel_order(self) -> PixelOrder {
    let bits = (self as u32 >> 20) & 0x0F;
    if self.is_packed() {
      match bits as fermium::_bindgen_ty_4::Type {
        SDL_PACKEDORDER_ABGR => PixelOrder::Packed(PackedPixelOrder::ABGR),
        SDL_PACKEDORDER_ARGB => PixelOrder::Packed(PackedPixelOrder::ARGB),
        SDL_PACKEDORDER_BGRA => PixelOrder::Packed(PackedPixelOrder::BGRA),
        SDL_PACKEDORDER_BGRX => PixelOrder::Packed(PackedPixelOrder::BGRX),
        SDL_PACKEDORDER_RGBA => PixelOrder::Packed(PackedPixelOrder::RGBA),
        SDL_PACKEDORDER_RGBX => PixelOrder::Packed(PackedPixelOrder::RGBX),
        SDL_PACKEDORDER_XBGR => PixelOrder::Packed(PackedPixelOrder::XBGR),
        SDL_PACKEDORDER_XRGB => PixelOrder::Packed(PackedPixelOrder::XRGB),
        _ => PixelOrder::Packed(PackedPixelOrder::None),
      }
    } else if self.is_array() {
      match bits as fermium::_bindgen_ty_4::Type {
        SDL_ARRAYORDER_ABGR => PixelOrder::Array(ArrayPixelOrder::ABGR),
        SDL_ARRAYORDER_ARGB => PixelOrder::Array(ArrayPixelOrder::ARGB),
        SDL_ARRAYORDER_BGR => PixelOrder::Array(ArrayPixelOrder::BGR),
        SDL_ARRAYORDER_BGRA => PixelOrder::Array(ArrayPixelOrder::BGRA),
        SDL_ARRAYORDER_RGB => PixelOrder::Array(ArrayPixelOrder::RGB),
        SDL_ARRAYORDER_RGBA => PixelOrder::Array(ArrayPixelOrder::RGBA),
        _ => PixelOrder::Array(ArrayPixelOrder::None),
      }
    } else {
      match bits as fermium::_bindgen_ty_2::Type {
        SDL_BITMAPORDER_1234 => PixelOrder::Bitmap(BitmapPixelOrder::_1234),
        SDL_BITMAPORDER_4321 => PixelOrder::Bitmap(BitmapPixelOrder::_4321),
        _ => PixelOrder::Bitmap(BitmapPixelOrder::None),
      }
    }
  }
pub fn pixel_order ( self ) -> PixelOrder { let bits = ( self as u32 >> 20 ) & 0x0F ; if self . is_packed ( ) { match bits as fermium :: _bindgen_ty_4 :: Type { SDL_PACKEDORDER_ABGR => PixelOrder :: Packed ( PackedPixelOrder :: ABGR ) , SDL_PACKEDORDER_ARGB => PixelOrder :: Packed ( PackedPixelOrder :: ARGB ) , SDL_PACKEDORDER_BGRA => PixelOrder :: Packed ( PackedPixelOrder :: BGRA ) , SDL_PACKEDORDER_BGRX => PixelOrder :: Packed ( PackedPixelOrder :: BGRX ) , SDL_PACKEDORDER_RGBA => PixelOrder :: Packed ( PackedPixelOrder :: RGBA ) , SDL_PACKEDORDER_RGBX => PixelOrder :: Packed ( PackedPixelOrder :: RGBX ) , SDL_PACKEDORDER_XBGR => PixelOrder :: Packed ( PackedPixelOrder :: XBGR ) , SDL_PACKEDORDER_XRGB => PixelOrder :: Packed ( PackedPixelOrder :: XRGB ) , _ => PixelOrder :: Packed ( PackedPixelOrder :: None ) , } } else if self . is_array ( ) { match bits as fermium :: _bindgen_ty_4 :: Type { SDL_ARRAYORDER_ABGR => PixelOrder :: Array ( ArrayPixelOrder :: ABGR ) , SDL_ARRAYORDER_ARGB => PixelOrder :: Array ( ArrayPixelOrder :: ARGB ) , SDL_ARRAYORDER_BGR => PixelOrder :: Array ( ArrayPixelOrder :: BGR ) , SDL_ARRAYORDER_BGRA => PixelOrder :: Array ( ArrayPixelOrder :: BGRA ) , SDL_ARRAYORDER_RGB => PixelOrder :: Array ( ArrayPixelOrder :: RGB ) , SDL_ARRAYORDER_RGBA => PixelOrder :: Array ( ArrayPixelOrder :: RGBA ) , _ => PixelOrder :: Array ( ArrayPixelOrder :: None ) , } } else { match bits as fermium :: _bindgen_ty_2 :: Type { SDL_BITMAPORDER_1234 => PixelOrder :: Bitmap ( BitmapPixelOrder :: _1234 ) , SDL_BITMAPORDER_4321 => PixelOrder :: Bitmap ( BitmapPixelOrder :: _4321 ) , _ => PixelOrder :: Bitmap ( BitmapPixelOrder :: None ) , } } }
Ordering of channel or bits in the pixel format.
Ordering of channel or bits in the pixel format .
self
self