Font.go 448 B

12345678910111213141516171819
  1. package imgui
  2. // #include "FontWrapper.h"
  3. import "C"
  4. // Font describes one loaded font in an atlas.
  5. type Font uintptr
  6. // DefaultFont can be used to refer to the default font of the current font atlas without
  7. // having the actual font reference.
  8. const DefaultFont Font = 0
  9. func (font Font) handle() C.IggFont {
  10. return C.IggFont(font)
  11. }
  12. func (font Font) FindGlyph(c rune) C.IggFontGlyph {
  13. return C.iggFontFindGlyph(font.handle(), C.uint(c))
  14. }