font.hpp 521 B

123456789101112131415161718
  1. #if defined(Hiro_Font)
  2. namespace hiro {
  3. struct pFont {
  4. static auto size(const Font& font, const string& text) -> Size;
  5. static auto size(PangoFontDescription* font, const string& text) -> Size;
  6. static auto family(const string& family) -> string;
  7. static auto create(const Font& font) -> PangoFontDescription*;
  8. static auto free(PangoFontDescription* font) -> void;
  9. static auto setFont(GtkWidget* widget, const Font& font) -> void;
  10. static auto setFont(GtkWidget* widget, gpointer font) -> void;
  11. };
  12. }
  13. #endif