Struct openvr_sys2::IVROverlay

source ·
#[repr(C)]
pub struct IVROverlay { /* private fields */ }

Implementations§

source§

impl IVROverlay

source

pub unsafe fn FindOverlay( self: Pin<&mut IVROverlay>, pchOverlayKey: *const c_char, pOverlayHandle: *mut u64 ) -> EVROverlayError

Finds an existing overlay with the specified key.

source

pub unsafe fn CreateOverlay( self: Pin<&mut IVROverlay>, pchOverlayKey: *const c_char, pchOverlayName: *const c_char, pOverlayHandle: *mut u64 ) -> EVROverlayError

Creates a new named overlay. All overlays start hidden and with default settings.

source

pub fn DestroyOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> EVROverlayError

Destroys the specified overlay. When an application calls VR_Shutdown all overlays created by that app are automatically destroyed.

source

pub unsafe fn GetOverlayKey( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pchValue: *mut c_char, unBufferSize: u32, pError: *mut EVROverlayError ) -> u32

Fills the provided buffer with the string key of the overlay. Returns the size of buffer required to store the key, including the terminating null character. k_unVROverlayMaxKeyLength will be enough bytes to fit the string.

source

pub unsafe fn GetOverlayName( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pchValue: *mut c_char, unBufferSize: u32, pError: *mut EVROverlayError ) -> u32

Fills the provided buffer with the friendly name of the overlay. Returns the size of buffer required to store the key, including the terminating null character. k_unVROverlayMaxNameLength will be enough bytes to fit the string.

source

pub unsafe fn SetOverlayName( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pchName: *const c_char ) -> EVROverlayError

set the name to use for this overlay

source

pub unsafe fn GetOverlayImageData( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pvBuffer: *mut c_void, unBufferSize: u32, punWidth: *mut u32, punHeight: *mut u32 ) -> EVROverlayError

Gets the raw image data from an overlay. Overlay image data is always returned as RGBA data, 4 bytes per pixel. If the buffer is not large enough, width and height will be set and VROverlayError_ArrayTooSmall is returned.

source

pub fn GetOverlayErrorNameFromEnum( self: Pin<&mut IVROverlay>, error: EVROverlayError ) -> *const c_char

returns a string that corresponds with the specified overlay error. The string will be the name of the error enum value for all valid error codes

source

pub fn SetOverlayRenderingPid( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, unPID: u32 ) -> EVROverlayError

Sets the pid that is allowed to render to this overlay (the creator pid is always allow to render), by default this is the pid of the process that made the overlay

source

pub fn GetOverlayRenderingPid( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> u32

Gets the pid that is allowed to render to this overlay

source

pub fn SetOverlayFlag( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eOverlayFlag: VROverlayFlags, bEnabled: bool ) -> EVROverlayError

Specify flag setting for a given overlay

source

pub unsafe fn GetOverlayFlag( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eOverlayFlag: VROverlayFlags, pbEnabled: *mut bool ) -> EVROverlayError

Sets flag setting for a given overlay

source

pub unsafe fn GetOverlayFlags( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pFlags: *mut u32 ) -> EVROverlayError

Gets all the flags for a given overlay

source

pub fn SetOverlayColor( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fRed: f32, fGreen: f32, fBlue: f32 ) -> EVROverlayError

Sets the color tint of the overlay quad. Use 0.0 to 1.0 per channel.

source

pub unsafe fn GetOverlayColor( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pfRed: *mut f32, pfGreen: *mut f32, pfBlue: *mut f32 ) -> EVROverlayError

Gets the color tint of the overlay quad.

source

pub fn SetOverlayAlpha( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fAlpha: f32 ) -> EVROverlayError

Sets the alpha of the overlay quad. Use 1.0 for 100 percent opacity to 0.0 for 0 percent opacity.

source

pub unsafe fn GetOverlayAlpha( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pfAlpha: *mut f32 ) -> EVROverlayError

Gets the alpha of the overlay quad. By default overlays are rendering at 100 percent alpha (1.0).

source

pub fn SetOverlayTexelAspect( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fTexelAspect: f32 ) -> EVROverlayError

Sets the aspect ratio of the texels in the overlay. 1.0 means the texels are square. 2.0 means the texels are twice as wide as they are tall. Defaults to 1.0.

source

pub unsafe fn GetOverlayTexelAspect( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pfTexelAspect: *mut f32 ) -> EVROverlayError

Gets the aspect ratio of the texels in the overlay. Defaults to 1.0

source

pub fn SetOverlaySortOrder( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, unSortOrder: u32 ) -> EVROverlayError

Sets the rendering sort order for the overlay. Overlays are rendered this order: Overlays owned by the scene application Overlays owned by some other application

Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same sort order are rendered back to front base on distance from the HMD.

Sort order defaults to 0.

source

pub unsafe fn GetOverlaySortOrder( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, punSortOrder: *mut u32 ) -> EVROverlayError

Gets the sort order of the overlay. See SetOverlaySortOrder for how this works.

source

pub fn SetOverlayWidthInMeters( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fWidthInMeters: f32 ) -> EVROverlayError

Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across

source

pub unsafe fn GetOverlayWidthInMeters( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pfWidthInMeters: *mut f32 ) -> EVROverlayError

Returns the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across

source

pub fn SetOverlayCurvature( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fCurvature: f32 ) -> EVROverlayError

Use to draw overlay as a curved surface. Curvature is a percentage from (0..1] where 1 is a fully closed cylinder. For a specific radius, curvature can be computed as: overlay.width / (2 PI r).

source

pub unsafe fn GetOverlayCurvature( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pfCurvature: *mut f32 ) -> EVROverlayError

Returns the curvature of the overlay as a percentage from (0..1] where 1 is a fully closed cylinder.

source

pub fn SetOverlayPreCurvePitch( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fRadians: f32 ) -> EVROverlayError

Sets the pitch angle (in radians) of the overlay before curvature is applied – to form a fan or disk.

source

pub unsafe fn GetOverlayPreCurvePitch( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pfRadians: *mut f32 ) -> EVROverlayError

Returns the overlay’s set pre-curve pitch angle (in radians).

source

pub fn SetOverlayTextureColorSpace( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eTextureColorSpace: EColorSpace ) -> EVROverlayError

Sets the colorspace the overlay texture’s data is in. Defaults to ‘auto’. If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead.

source

pub unsafe fn GetOverlayTextureColorSpace( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, peTextureColorSpace: *mut EColorSpace ) -> EVROverlayError

Gets the overlay’s current colorspace setting.

source

pub unsafe fn SetOverlayTextureBounds( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pOverlayTextureBounds: *const VRTextureBounds_t ) -> EVROverlayError

Sets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner.

source

pub unsafe fn GetOverlayTextureBounds( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pOverlayTextureBounds: *mut VRTextureBounds_t ) -> EVROverlayError

Gets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner.

source

pub unsafe fn GetOverlayTransformType( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, peTransformType: *mut VROverlayTransformType ) -> EVROverlayError

Returns the transform type of this overlay.

source

pub unsafe fn SetOverlayTransformAbsolute( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eTrackingOrigin: ETrackingUniverseOrigin, pmatTrackingOriginToOverlayTransform: *const HmdMatrix34_t ) -> EVROverlayError

Sets the transform to absolute tracking origin.

source

pub unsafe fn GetOverlayTransformAbsolute( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, peTrackingOrigin: *mut ETrackingUniverseOrigin, pmatTrackingOriginToOverlayTransform: *mut HmdMatrix34_t ) -> EVROverlayError

Gets the transform if it is absolute. Returns an error if the transform is some other type.

source

pub unsafe fn SetOverlayTransformTrackedDeviceRelative( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, unTrackedDevice: u32, pmatTrackedDeviceToOverlayTransform: *const HmdMatrix34_t ) -> EVROverlayError

Sets the transform to relative to the transform of the specified tracked device.

source

pub unsafe fn GetOverlayTransformTrackedDeviceRelative( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, punTrackedDevice: *mut u32, pmatTrackedDeviceToOverlayTransform: *mut HmdMatrix34_t ) -> EVROverlayError

Gets the transform if it is relative to a tracked device. Returns an error if the transform is some other type.

source

pub unsafe fn SetOverlayTransformTrackedDeviceComponent( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, unDeviceIndex: u32, pchComponentName: *const c_char ) -> EVROverlayError

Sets the transform to draw the overlay on a rendermodel component mesh instead of a quad. This will only draw when the system is drawing the device. Overlays with this transform type cannot receive mouse events.

source

pub unsafe fn GetOverlayTransformTrackedDeviceComponent( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, punDeviceIndex: *mut u32, pchComponentName: *mut c_char, unComponentNameSize: u32 ) -> EVROverlayError

Gets the transform information when the overlay is rendering on a component.

source

pub unsafe fn GetOverlayTransformOverlayRelative( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, ulOverlayHandleParent: *mut u64, pmatParentOverlayToOverlayTransform: *mut HmdMatrix34_t ) -> EVROverlayError

Gets the transform if it is relative to another overlay. Returns an error if the transform is some other type.

source

pub unsafe fn SetOverlayTransformOverlayRelative( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, ulOverlayHandleParent: u64, pmatParentOverlayToOverlayTransform: *const HmdMatrix34_t ) -> EVROverlayError

Sets the transform to relative to the transform of the specified overlay. This overlays visibility will also track the parents visibility

source

pub unsafe fn SetOverlayTransformCursor( self: Pin<&mut IVROverlay>, ulCursorOverlayHandle: u64, pvHotspot: *const HmdVector2_t ) -> EVROverlayError

Sets the hotspot for the specified overlay when that overlay is used as a cursor. These are in texture space with 0,0 in the upper left corner of the texture and 1,1 in the lower right corner of the texture.

source

pub unsafe fn GetOverlayTransformCursor( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pvHotspot: *mut HmdVector2_t ) -> EVROverlayError

Gets cursor hotspot/transform for the specified overlay

source

pub unsafe fn SetOverlayTransformProjection( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eTrackingOrigin: ETrackingUniverseOrigin, pmatTrackingOriginToOverlayTransform: *const HmdMatrix34_t, pProjection: *const VROverlayProjection_t, eEye: EVREye ) -> EVROverlayError

Sets the overlay as a projection overlay

source

pub fn ShowOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> EVROverlayError

Shows the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this.

source

pub fn HideOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> EVROverlayError

Hides the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this.

source

pub fn IsOverlayVisible( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> bool

Returns true if the overlay is visible.

source

pub unsafe fn GetTransformForOverlayCoordinates( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eTrackingOrigin: ETrackingUniverseOrigin, coordinatesInOverlay: impl ValueParam<HmdVector2_t>, pmatTransform: *mut HmdMatrix34_t ) -> EVROverlayError

Get the transform in 3d space associated with a specific 2d point in the overlay’s coordinate space (where 0,0 is the lower left). -Z points out of the overlay

source

pub fn WaitFrameSync( self: Pin<&mut IVROverlay>, nTimeoutMs: u32 ) -> EVROverlayError

This function will block until the top of each frame, and can therefore be used to synchronize with the runtime’s update rate. Note: In non-async mode, some signals may be dropped due to scene app performance, so passing a timeout of 1000/refresh rate may be useful depending on the overlay app’s desired behavior.

source

pub unsafe fn PollNextOverlayEvent( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pEvent: *mut VREvent_t, uncbVREvent: u32 ) -> bool

Returns true and fills the event with the next event on the overlay’s event queue, if there is one. If there are no events this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct

source

pub unsafe fn GetOverlayInputMethod( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, peInputMethod: *mut VROverlayInputMethod ) -> EVROverlayError

Returns the current input settings for the specified overlay.

source

pub fn SetOverlayInputMethod( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eInputMethod: VROverlayInputMethod ) -> EVROverlayError

Sets the input settings for the specified overlay.

source

pub unsafe fn GetOverlayMouseScale( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pvecMouseScale: *mut HmdVector2_t ) -> EVROverlayError

Gets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is typically the size of the underlying UI in pixels.

source

pub unsafe fn SetOverlayMouseScale( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pvecMouseScale: *const HmdVector2_t ) -> EVROverlayError

Sets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is typically the size of the underlying UI in pixels (not in world space).

source

pub unsafe fn ComputeOverlayIntersection( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pParams: *const VROverlayIntersectionParams_t, pResults: *mut VROverlayIntersectionResults_t ) -> bool

Computes the overlay-space pixel coordinates of where the ray intersects the overlay with the specified settings. Returns false if there is no intersection.

source

pub fn IsHoverTargetOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> bool

Returns true if the specified overlay is the hover target. An overlay is the hover target when it is the last overlay “moused over” by the virtual mouse pointer

source

pub unsafe fn SetOverlayIntersectionMask( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pMaskPrimitives: *mut VROverlayIntersectionMaskPrimitive_t, unNumMaskPrimitives: u32, unPrimitiveSize: u32 ) -> EVROverlayError

Sets a list of primitives to be used for controller ray intersection typically the size of the underlying UI in pixels (not in world space).

source

pub fn TriggerLaserMouseHapticVibration( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, fDurationSeconds: f32, fFrequency: f32, fAmplitude: f32 ) -> EVROverlayError

Triggers a haptic event on the laser mouse controller for the specified overlay

source

pub fn SetOverlayCursor( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, ulCursorHandle: u64 ) -> EVROverlayError

Sets the cursor to use for the specified overlay. This will be drawn instead of the generic blob when the laser mouse is pointed at the specified overlay

source

pub unsafe fn SetOverlayCursorPositionOverride( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pvCursor: *const HmdVector2_t ) -> EVROverlayError

Sets the override cursor position to use for this overlay in overlay mouse coordinates. This position will be used to draw the cursor instead of whatever the laser mouse cursor position is.

source

pub fn ClearOverlayCursorPositionOverride( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> EVROverlayError

Clears the override cursor position for this overlay

source

pub unsafe fn SetOverlayTexture( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pTexture: *const Texture_t ) -> EVROverlayError

Texture to draw for the overlay. This function can only be called by the overlay’s creator or renderer process (see SetOverlayRenderingPid) .

OpenGL dirty state: glBindTexture

source

pub fn ClearOverlayTexture( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> EVROverlayError

Use this to tell the overlay system to release the texture set for this overlay.

source

pub unsafe fn SetOverlayRaw( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pvBuffer: *mut c_void, unWidth: u32, unHeight: u32, unBytesPerPixel: u32 ) -> EVROverlayError

Separate interface for providing the data as a stream of bytes, but there is an upper bound on data that can be sent. This function can only be called by the overlay’s renderer process.

source

pub unsafe fn SetOverlayFromFile( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pchFilePath: *const c_char ) -> EVROverlayError

Separate interface for providing the image through a filename: can be png or jpg, and should not be bigger than 1920x1080. This function can only be called by the overlay’s renderer process

source

pub unsafe fn ReleaseNativeOverlayHandle( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pNativeTextureHandle: *mut c_void ) -> EVROverlayError

Release the pNativeTextureHandle provided from the GetOverlayTexture call, this allows the system to free the underlying GPU resources for this object, so only do it once you stop rendering this texture.

source

pub unsafe fn GetOverlayTextureSize( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, pWidth: *mut u32, pHeight: *mut u32 ) -> EVROverlayError

Get the size of the overlay texture

source

pub unsafe fn CreateDashboardOverlay( self: Pin<&mut IVROverlay>, pchOverlayKey: *const c_char, pchOverlayFriendlyName: *const c_char, pMainHandle: *mut u64, pThumbnailHandle: *mut u64 ) -> EVROverlayError

Creates a dashboard overlay and returns its handle

source

pub fn IsDashboardVisible(self: Pin<&mut IVROverlay>) -> bool

Returns true if the dashboard is visible

source

pub fn IsActiveDashboardOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64 ) -> bool

returns true if the dashboard is visible and the specified overlay is the active system Overlay

source

pub fn SetDashboardOverlaySceneProcess( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, unProcessId: u32 ) -> EVROverlayError

Sets the dashboard overlay to only appear when the specified process ID has scene focus

source

pub unsafe fn GetDashboardOverlaySceneProcess( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, punProcessId: *mut u32 ) -> EVROverlayError

Gets the process ID that this dashboard overlay requires to have scene focus

source

pub unsafe fn ShowDashboard( self: Pin<&mut IVROverlay>, pchOverlayToShow: *const c_char )

Shows the dashboard.

source

pub fn GetPrimaryDashboardDevice(self: Pin<&mut IVROverlay>) -> u32

Returns the tracked device that has the laser pointer in the dashboard

source

pub unsafe fn ShowKeyboard( self: Pin<&mut IVROverlay>, eInputMode: EGamepadTextInputMode, eLineInputMode: EGamepadTextInputLineMode, unFlags: u32, pchDescription: *const c_char, unCharMax: u32, pchExistingText: *const c_char, uUserValue: u64 ) -> EVROverlayError

Show the virtual keyboard to accept input. In most cases, you should pass KeyboardFlag_Modal to enable modal overlay behavior on the keyboard itself. See EKeyboardFlags for more.

source

pub unsafe fn ShowKeyboardForOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, eInputMode: EGamepadTextInputMode, eLineInputMode: EGamepadTextInputLineMode, unFlags: u32, pchDescription: *const c_char, unCharMax: u32, pchExistingText: *const c_char, uUserValue: u64 ) -> EVROverlayError

Show the virtual keyboard to accept input for an overlay. In most cases, you should pass KeyboardFlag_Modal to enable modal overlay behavior on the keyboard itself. See EKeyboardFlags for more.

source

pub unsafe fn GetKeyboardText( self: Pin<&mut IVROverlay>, pchText: *mut c_char, cchText: u32 ) -> u32

Get the text that was entered into the text input

source

pub fn HideKeyboard(self: Pin<&mut IVROverlay>)

Hide the virtual keyboard

source

pub unsafe fn SetKeyboardTransformAbsolute( self: Pin<&mut IVROverlay>, eTrackingOrigin: ETrackingUniverseOrigin, pmatTrackingOriginToKeyboardTransform: *const HmdMatrix34_t )

Set the position of the keyboard in world space

source

pub fn SetKeyboardPositionForOverlay( self: Pin<&mut IVROverlay>, ulOverlayHandle: u64, avoidRect: impl ValueParam<HmdRect2_t> )

Set the position of the keyboard in overlay space by telling it to avoid a rectangle in the overlay. Rectangle coords have (0,0) in the bottom left

source

pub unsafe fn ShowMessageOverlay( self: Pin<&mut IVROverlay>, pchText: *const c_char, pchCaption: *const c_char, pchButton0Text: *const c_char, pchButton1Text: *const c_char, pchButton2Text: *const c_char, pchButton3Text: *const c_char ) -> VRMessageOverlayResponse

Show the message overlay. This will block and return you a result.

source

pub fn CloseMessageOverlay(self: Pin<&mut IVROverlay>)

If the calling process owns the overlay and it’s open, this will close it.

Trait Implementations§

source§

impl Drop for IVROverlay

source§

fn drop(self: &mut IVROverlay)

Synthesized destructor.

source§

impl ExternType for IVROverlay

§

type Kind = Opaque

§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
source§

impl MakeCppStorage for IVROverlay

source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut IVROverlay

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
source§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut IVROverlay)

Frees a C++ allocation which has not yet had a constructor called. Read more
source§

impl SharedPtrTarget for IVROverlay

source§

impl UniquePtrTarget for IVROverlay

source§

impl VectorElement for IVROverlay

source§

impl WeakPtrTarget for IVROverlay

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for Twhere 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 Twhere 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.