pub struct HeadlessVncFramebufferSource { /* private fields */ }Expand description
The framebuffer source of a VNC server session that shows a headless window.
Implementations§
Source§impl HeadlessVncFramebufferSource
impl HeadlessVncFramebufferSource
Sourcepub fn new(
session: &VncServerSession,
window: Ref<Window>,
) -> Arc<HeadlessVncFramebufferSource> ⓘ
pub fn new( session: &VncServerSession, window: Ref<Window>, ) -> Arc<HeadlessVncFramebufferSource> ⓘ
Creates the source of session for window, and handles the
pointer and key events of the session.
Called on the UI thread, which the window belongs to.
Sourcepub fn set_window(&self, value: Option<Ref<Window>>)
pub fn set_window(&self, value: Option<Ref<Window>>)
Sourcepub fn framebuffer(&self) -> Arc<VncFramebuffer> ⓘ
pub fn framebuffer(&self) -> Arc<VncFramebuffer> ⓘ
The framebuffer the source captured last (_framebuffer).
Trait Implementations§
Source§impl IVncFramebufferSource for HeadlessVncFramebufferSource
impl IVncFramebufferSource for HeadlessVncFramebufferSource
Source§fn supports_resizing(&self) -> bool
fn supports_resizing(&self) -> bool
Gets a value indicating whether the source supports resizing.
Source§fn capture(&self) -> Option<Arc<VncFramebuffer>>
fn capture(&self) -> Option<Arc<VncFramebuffer>>
Called when a framebuffer update is needed. You can use this
opportunity to switch framebuffers if desired. Read more
Source§fn set_desktop_size(&self, width: i32, height: i32) -> ExtendedDesktopSizeStatus
fn set_desktop_size(&self, width: i32, height: i32) -> ExtendedDesktopSizeStatus
Auto Trait Implementations§
impl !Freeze for HeadlessVncFramebufferSource
impl !RefUnwindSafe for HeadlessVncFramebufferSource
impl !UnwindSafe for HeadlessVncFramebufferSource
impl Send for HeadlessVncFramebufferSource
impl Sync for HeadlessVncFramebufferSource
impl Unpin for HeadlessVncFramebufferSource
impl UnsafeUnpin for HeadlessVncFramebufferSource
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more