ludus::platform::HostedImageHandle¶
Ludus Wiki · API overview · Browse API
Class
mach_port_deallocate, a file descriptor is closed. The Release calls give ownership back to the caller without releasing anything. Not synchronized; one owner at a time. Declared in modules/platform/include/ludus/platform/hosted_surface.h
#include <ludus/platform/hosted_surface.h>
class ludus::platform::HostedImageHandle final
Methods¶
HostedImageHandle¶
ludus::platform::HostedImageHandle::HostedImageHandle() noexcept=default
Declared in modules/platform/include/ludus/platform/hosted_surface.h
~HostedImageHandle¶
ludus::platform::HostedImageHandle::~HostedImageHandle() noexcept
Declared in modules/platform/include/ludus/platform/hosted_surface.h
HostedImageHandle¶
ludus::platform::HostedImageHandle::HostedImageHandle(const HostedImageHandle &)=delete
Declared in modules/platform/include/ludus/platform/hosted_surface.h
operator=¶
HostedImageHandle & ludus::platform::HostedImageHandle::operator=(const HostedImageHandle &)=delete
Related types: HostedImageHandle
Declared in modules/platform/include/ludus/platform/hosted_surface.h
HostedImageHandle¶
ludus::platform::HostedImageHandle::HostedImageHandle(HostedImageHandle &&other) noexcept
other, leaving it empty. Declared in modules/platform/include/ludus/platform/hosted_surface.h
operator=¶
HostedImageHandle & ludus::platform::HostedImageHandle::operator=(HostedImageHandle &&other) noexcept
other, leaving it empty. Related types: HostedImageHandle
Declared in modules/platform/include/ludus/platform/hosted_surface.h
GetKind¶
LUDUS_INLINE HostedHandleKind ludus::platform::HostedImageHandle::GetKind() const noexcept
Related types: HostedHandleKind
Declared in modules/platform/include/ludus/platform/hosted_surface.h
IsValid¶
LUDUS_INLINE bool ludus::platform::HostedImageHandle::IsValid() const noexcept
Declared in modules/platform/include/ludus/platform/hosted_surface.h
GetMachPort¶
LUDUS_INLINE foundation::uint32 ludus::platform::HostedImageHandle::GetMachPort() const noexcept
Related types: foundation::uint32
Declared in modules/platform/include/ludus/platform/hosted_surface.h
GetFileDescriptor¶
LUDUS_INLINE foundation::int32 ludus::platform::HostedImageHandle::GetFileDescriptor() const noexcept
Related types: foundation::int32
Declared in modules/platform/include/ludus/platform/hosted_surface.h
ReleaseMachPort¶
foundation::uint32 ludus::platform::HostedImageHandle::ReleaseMachPort() noexcept
Returns
Related types: foundation::uint32
Declared in modules/platform/include/ludus/platform/hosted_surface.h
ReleaseFileDescriptor¶
foundation::int32 ludus::platform::HostedImageHandle::ReleaseFileDescriptor() noexcept
Returns
Related types: foundation::int32
Declared in modules/platform/include/ludus/platform/hosted_surface.h
Reset¶
void ludus::platform::HostedImageHandle::Reset() noexcept
Declared in modules/platform/include/ludus/platform/hosted_surface.h
Static methods¶
FromMachPort¶
static HostedImageHandle ludus::platform::HostedImageHandle::FromMachPort(foundation::uint32 sendRight) noexcept
| Parameter | Description |
|---|---|
sendRight |
A
mach_port_t send right owned by the caller; zero yields an empty handle. |
Related types: HostedImageHandle · foundation::uint32
Declared in modules/platform/include/ludus/platform/hosted_surface.h
FromFileDescriptor¶
static HostedImageHandle ludus::platform::HostedImageHandle::FromFileDescriptor(foundation::int32 descriptor) noexcept
| Parameter | Description |
|---|---|
descriptor |
A descriptor owned by the caller; a negative value yields an empty handle.
|
Related types: HostedImageHandle · foundation::int32
Declared in modules/platform/include/ludus/platform/hosted_surface.h