Kawe Mazidjatari 04bee896be Fix string/wstring type conflict
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.
2022-05-21 21:51:35 +02:00

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;
};
}