Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::platform_abstraction Class Reference

Public Types

using font = font_interface
 
using path_type = ::std::filesystem::path
 

Public Member Functions

static::std::shared_ptr< fontdefault_font (const ::std::shared_ptr< font > &)
 
static::std::shared_ptr< fontmake_font (const ::std::string &font_family, double size_pt, const font::font_style &fs)
 
static::std::shared_ptr< fontmake_font_from_ttf (const path_type &ttf, double size_pt, const font::font_style &fs)
 

Static Public Member Functions

static void initialize ()
 
static void shutdown ()
 Shutdown before destruction of platform_spec. More...
 
static double font_default_pt ()
 
static void font_languages (const std::string &)
 
static void font_resource (bool try_add, const path_type &ttf)
 
static unsigned screen_dpi (bool x_requested)
 

Member Typedef Documentation

using nana::platform_abstraction::path_type = ::std::filesystem::path

Member Function Documentation

std::shared_ptr< platform_abstraction::font > nana::platform_abstraction::default_font ( const ::std::shared_ptr< font > &  new_font)
double nana::platform_abstraction::font_default_pt ( )
static
void nana::platform_abstraction::font_languages ( const std::string langs)
static
void nana::platform_abstraction::font_resource ( bool  try_add,
const path_type ttf 
)
static
void nana::platform_abstraction::initialize ( )
static
std::shared_ptr< platform_abstraction::font > nana::platform_abstraction::make_font ( const ::std::string font_family,
double  size_pt,
const font::font_style fs 
)
std::shared_ptr< platform_abstraction::font > nana::platform_abstraction::make_font_from_ttf ( const path_type ttf,
double  size_pt,
const font::font_style fs 
)
unsigned nana::platform_abstraction::screen_dpi ( bool  x_requested)
static
void nana::platform_abstraction::shutdown ( )
static

Shutdown before destruction of platform_spec.