Sdk/Binding: Bind Font::GetDefault
Former-commit-id: 5245ada09cd376dfaf69f06ca982c89dc438fae8
This commit is contained in:
parent
823a6f70e6
commit
d1e12a6d2e
|
|
@ -141,7 +141,8 @@ namespace Ndk
|
||||||
fontClass.BindMethod("SetGlyphBorder", &Nz::Font::SetGlyphBorder);
|
fontClass.BindMethod("SetGlyphBorder", &Nz::Font::SetGlyphBorder);
|
||||||
fontClass.BindMethod("SetMinimumStepSize", &Nz::Font::SetMinimumStepSize);
|
fontClass.BindMethod("SetMinimumStepSize", &Nz::Font::SetMinimumStepSize);
|
||||||
|
|
||||||
fontClass.BindStaticMethod("GetDefaultGlyphBorder", &Nz::Font::GetDefaultGlyphBorder);
|
fontClass.BindStaticMethod("GetDefault", &Nz::Font::GetDefault);
|
||||||
|
fontClass.BindStaticMethod("GetDefaultGlyphBorder", &Nz::Font::GetDefaultGlyphBorder);
|
||||||
fontClass.BindStaticMethod("GetDefaultMinimumStepSize", &Nz::Font::GetDefaultMinimumStepSize);
|
fontClass.BindStaticMethod("GetDefaultMinimumStepSize", &Nz::Font::GetDefaultMinimumStepSize);
|
||||||
|
|
||||||
fontClass.BindStaticMethod("SetDefaultGlyphBorder", &Nz::Font::SetDefaultGlyphBorder);
|
fontClass.BindStaticMethod("SetDefaultGlyphBorder", &Nz::Font::SetDefaultGlyphBorder);
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ namespace Nz
|
||||||
Font& operator=(Font&&) = delete;
|
Font& operator=(Font&&) = delete;
|
||||||
|
|
||||||
static std::shared_ptr<AbstractAtlas> GetDefaultAtlas();
|
static std::shared_ptr<AbstractAtlas> GetDefaultAtlas();
|
||||||
static Font* GetDefault();
|
static const FontRef& GetDefault();
|
||||||
static unsigned int GetDefaultGlyphBorder();
|
static unsigned int GetDefaultGlyphBorder();
|
||||||
static unsigned int GetDefaultMinimumStepSize();
|
static unsigned int GetDefaultMinimumStepSize();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,7 @@ namespace Nz
|
||||||
return s_defaultAtlas;
|
return s_defaultAtlas;
|
||||||
}
|
}
|
||||||
|
|
||||||
Font* Font::GetDefault()
|
const FontRef& Font::GetDefault()
|
||||||
{
|
{
|
||||||
// Nous n'initialisons la police par défaut qu'à la demande pour qu'elle prenne
|
// Nous n'initialisons la police par défaut qu'à la demande pour qu'elle prenne
|
||||||
// les paramètres par défaut (qui peuvent avoir étés changés par l'utilisateur),
|
// les paramètres par défaut (qui peuvent avoir étés changés par l'utilisateur),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue