pub struct Context { /* private fields */ }
Implementations
sourceimpl Context
impl Context
pub fn new(
nv_kind: NvDrvServiceKind,
vi_kind: ViServiceKind,
transfer_mem_size: usize
) -> Result<Self>
pub fn from(
vi_srv: Shared<dyn IObject>,
application_display_srv: Shared<dyn IApplicationDisplayService>,
nvdrv_srv: Shared<dyn INvDrvServices>,
transfer_mem_size: usize
) -> Result<Self>
pub fn get_nvdrv_service(&self) -> Shared<dyn INvDrvServices>
pub fn get_application_display_service(
&self
) -> Shared<dyn IApplicationDisplayService>
pub fn get_hos_binder_driver(&self) -> Shared<dyn IHOSBinderDriver>
pub fn create_stray_layer_surface(
&mut self,
display_name: &str,
buffer_count: u32,
color_fmt: ColorFormat,
pixel_fmt: PixelFormat,
layout: Layout
) -> Result<Surface>
pub fn create_managed_layer_surface(
&mut self,
display_name: &str,
aruid: AppletResourceUserId,
layer_flags: LayerFlags,
x: f32,
y: f32,
width: u32,
height: u32,
z: LayerZ,
buffer_count: u32,
color_fmt: ColorFormat,
pixel_fmt: PixelFormat,
layout: Layout
) -> Result<Surface>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more