mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
cppkore uses string/wstring as StringBase while we use std::string/std::wstring as string/wstring. Changed all types in cppkore to String/WString instead.
35 lines
779 B
C++
35 lines
779 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include "StringBase.h"
|
|
#include "DrawingBase.h"
|
|
|
|
namespace Drawing
|
|
{
|
|
// Represents a drawable windows icon.
|
|
class Icon
|
|
{
|
|
public:
|
|
Icon();
|
|
Icon(HICON Icon);
|
|
~Icon();
|
|
|
|
// Gets a handle to the large rendition of this icon.
|
|
HICON LargeHandle();
|
|
// Gets a handle to the small rendition of this icon.
|
|
HICON SmallHandle();
|
|
|
|
// Loads an icon resouce from a file.
|
|
static std::unique_ptr<Icon> FromFile(const String& File);
|
|
// Loads an icon resource from a resource.
|
|
static std::unique_ptr<Icon> FromResource(const int32_t ID);
|
|
// Loads the application defined icon.
|
|
static std::unique_ptr<Icon> ApplicationIcon();
|
|
|
|
private:
|
|
// The internal icon handles
|
|
HICON _IconHandleSm;
|
|
HICON _IconHandleLg;
|
|
};
|
|
} |