OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Icon Struct Reference

アイコン More...

#include <Icon.hpp>

Public Types

enum  Type : uint8 { Type::Awesome, Type::MaterialDesign }
 

Public Member Functions

SIV3D_NODISCARD_CXX20 Icon ()=default
 
constexpr SIV3D_NODISCARD_CXX20 Icon (uint32 _code) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 Icon (Type _type, uint32 _code) noexcept
 

Static Public Member Functions

static bool HasGlyph (uint32 code)
 
static bool HasGlyph (Type type, uint32 code)
 
static Image CreateImage (uint32 code, int32 size)
 
static Image CreateImage (Type type, uint32 code, int32 size)
 
static Image CreateSDFImage (uint32 code, int32 size, int32 buffer=3)
 
static Image CreateSDFImage (Type type, uint32 code, int32 size, int32 buffer=3)
 
static Image CreateMSDFImage (uint32 code, int32 size, int32 buffer=3)
 
static Image CreateMSDFImage (Type type, uint32 code, int32 size, int32 buffer=3)
 

Public Attributes

Type type = Type::Awesome
 アイコンパッケージの種類 More...
 
uint32 code = 0
 アイコンのコードポイント More...
 

Detailed Description

アイコン

Member Enumeration Documentation

◆ Type

enum s3d::Icon::Type : uint8
strong
Enumerator
Awesome 
MaterialDesign 

Constructor & Destructor Documentation

◆ Icon() [1/3]

SIV3D_NODISCARD_CXX20 s3d::Icon::Icon ( )
default

◆ Icon() [2/3]

constexpr SIV3D_NODISCARD_CXX20 s3d::Icon::Icon ( uint32  _code)
explicitconstexprnoexcept

◆ Icon() [3/3]

constexpr SIV3D_NODISCARD_CXX20 s3d::Icon::Icon ( Type  _type,
uint32  _code 
)
constexprnoexcept

Member Function Documentation

◆ CreateImage() [1/2]

static Image s3d::Icon::CreateImage ( Type  type,
uint32  code,
int32  size 
)
static

◆ CreateImage() [2/2]

static Image s3d::Icon::CreateImage ( uint32  code,
int32  size 
)
static

◆ CreateMSDFImage() [1/2]

static Image s3d::Icon::CreateMSDFImage ( Type  type,
uint32  code,
int32  size,
int32  buffer = 3 
)
static

◆ CreateMSDFImage() [2/2]

static Image s3d::Icon::CreateMSDFImage ( uint32  code,
int32  size,
int32  buffer = 3 
)
static

◆ CreateSDFImage() [1/2]

static Image s3d::Icon::CreateSDFImage ( Type  type,
uint32  code,
int32  size,
int32  buffer = 3 
)
static

◆ CreateSDFImage() [2/2]

static Image s3d::Icon::CreateSDFImage ( uint32  code,
int32  size,
int32  buffer = 3 
)
static

◆ HasGlyph() [1/2]

static bool s3d::Icon::HasGlyph ( Type  type,
uint32  code 
)
static

◆ HasGlyph() [2/2]

static bool s3d::Icon::HasGlyph ( uint32  code)
static

Member Data Documentation

◆ code

uint32 s3d::Icon::code = 0

アイコンのコードポイント

◆ type

Type s3d::Icon::type = Type::Awesome

アイコンパッケージの種類


The documentation for this struct was generated from the following file: