Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::Windows::BitmapHandle Class Referencefinal

#include <HWHandles.h>

Inheritance diagram for Harlinn::Windows::BitmapHandle:
[legend]
Collaboration diagram for Harlinn::Windows::BitmapHandle:
[legend]

Public Types

using Base = Handle<BitmapHandle, HBITMAP>
 
- Public Types inherited from Harlinn::Common::Core::Handle< BitmapHandle, HBITMAP >
using DerivedType
 
using HandleType
 

Public Member Functions

constexpr BitmapHandle () noexcept
 
constexpr BitmapHandle (HBITMAP handle, bool ownsHandle=true) noexcept
 
 BitmapHandle (int resourceId, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const wchar_t *bitmapName, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const WideString &bitmapName, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const char *bitmapName, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const AnsiString &bitmapName, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const ModuleHandle &module, int resourceId, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const ModuleHandle &module, const wchar_t *bitmapName, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
 BitmapHandle (const ModuleHandle &module, const WideString &bitmapName, int width=0, int height=0, DWORD flags=LR_SHARED|LR_DEFAULTSIZE)
 
void Close () noexcept
 
SIZE Size () const
 
- Public Member Functions inherited from Harlinn::Common::Core::Handle< BitmapHandle, HBITMAP >
 Handle (const Handle &other)=delete
 
 Handle (Handle &&other) noexcept
 
virtual ~Handle () noexcept
 
constexpr bool IsValid () const noexcept
 
Handleoperator= (Handle &other)=delete
 
Handleoperator= (Handle &&other) noexcept
 
constexpr auto operator<=> (const Handle &other) const noexcept
 
constexpr auto operator<=> (HandleType handle) const noexcept
 
constexpr bool operator== (const Handle &other) const noexcept
 
constexpr bool operator== (HandleType handle) const noexcept
 
constexpr operator HandleType () const noexcept
 
constexpr HandleType Value () const noexcept
 
constexpr bool OwnsHandle () const noexcept
 

Static Public Member Functions

static HW_EXPORT BitmapHandle LoadFromFile (const WideString &fileMame)
 
- Static Public Member Functions inherited from Harlinn::Common::Core::Handle< BitmapHandle, HBITMAP >
static constexpr HandleType InvalidHandleValue () noexcept
 

Friends

class DeviceContextHandle
 

Additional Inherited Members

- Protected Member Functions inherited from Harlinn::Common::Core::Handle< BitmapHandle, HBITMAP >
constexpr Handle () noexcept
 
constexpr Handle (HandleType handle, bool ownsHandle=true) noexcept
 
void SetValue (HandleType handle, bool ownsHandle=true)
 
- Protected Attributes inherited from Harlinn::Common::Core::Handle< BitmapHandle, HBITMAP >
HandleType value_
 

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ BitmapHandle() [1/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( )
inlineconstexprnoexcept

◆ BitmapHandle() [2/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( HBITMAP handle,
bool ownsHandle = true )
inlineexplicitconstexprnoexcept

◆ BitmapHandle() [3/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( int resourceId,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [4/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const wchar_t * bitmapName,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [5/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const WideString & bitmapName,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [6/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const char * bitmapName,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [7/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const AnsiString & bitmapName,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [8/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const ModuleHandle & module,
int resourceId,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [9/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const ModuleHandle & module,
const wchar_t * bitmapName,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

◆ BitmapHandle() [10/10]

Harlinn::Windows::BitmapHandle::BitmapHandle ( const ModuleHandle & module,
const WideString & bitmapName,
int width = 0,
int height = 0,
DWORD flags = LR_SHARED | LR_DEFAULTSIZE )
inline

Member Function Documentation

◆ Close()

void Harlinn::Windows::BitmapHandle::Close ( )
inlinenoexcept

◆ LoadFromFile()

BitmapHandle Harlinn::Windows::BitmapHandle::LoadFromFile ( const WideString & fileMame)
static

◆ Size()

SIZE Harlinn::Windows::BitmapHandle::Size ( ) const
inline

Friends And Related Symbol Documentation

◆ DeviceContextHandle

friend class DeviceContextHandle
friend

The documentation for this class was generated from the following files: