class::sys::Assets

class sys::Assets
  : public api::InfoObject

The Assets class is a static class that allows the application to access kernel assets such as fonts, bitmaps, and vector graphics.

This class will search the following locations for fonts and graphics files:

  • /assets
  • /home
  • /home/assets

Several other classes within the StratifyAPI use this class without the user ever needed to reference it.

  • draw::Text will lookup fonts using this class
  • draw::Icon will lookup icons files installed as assets

Summary

static const sgfx::FontInfo * find_font(

const arg::FontPointSize point_size,
const arg::FontStyle style,
const arg::FontName name,
const arg::IsExactMatch is_exact_match
)

static sgfx::VectorPath find_vector_path(

const var::ConstString & name
)

static var::Vector< sgfx::FontInfo > & font_info_list()

static int initialize()

static const var::Vector< fmt::Svic > & vector_path_list()

Members

static const sgfx::FontInfo * find_font(

const arg::FontPointSize point_size,
const arg::FontStyle style,
const arg::FontName name,
const arg::IsExactMatch is_exact_match
)


static sgfx::VectorPath find_vector_path(

const var::ConstString & name
)


static var::Vector< sgfx::FontInfo > & font_info_list()

Returns a read-only reference to the font information list.

This list contains a list of the fonts that are available in the system assets.


static int initialize()

Initializes system assets.

Returns

Zero

This method can be called explicitly, but will be called whenever as needed if not.


static const var::Vector< fmt::Svic > & vector_path_list()

Returns a read-only reference to the vector path list.

This list contains a list of the vector path icons that are available in the system assets.


X

Thanks for Coming!

Subscribe to news and updates