Documentation ¶
Index ¶
- Constants
- func ApplySubWindowClass()
- func InitImgui(title string, width, height int)
- func RS(text string) string
- func Run(fn func())
- func SetBeforeDestroyContextCallback(f func())
- func T(translateKey string, options ...goeasyi18n.Options) string
- type FontAtlas
- func (a *FontAtlas) AddFont(fontName string, size float32) *FontInfo
- func (a *FontAtlas) AddFontFromBytes(fontName string, fontBytes []byte, size float32) *FontInfo
- func (a *FontAtlas) GetDefaultFonts() []FontInfo
- func (a *FontAtlas) RegisterString(str string) string
- func (a *FontAtlas) SetDefaultFont(fontName string, size float32)
- func (a *FontAtlas) SetDefaultFontFromBytes(fontBytes []byte, size float32)
- func (a *FontAtlas) SetDefaultFontSize(size float32)
- type FontInfo
- type ImguiDPI
- type ImguiWContext
- type PlotSetupArgs
- type PlotWidget
- type Widget
- type Window
Constants ¶
View Source
const ( PretendardGOV_Regular = "PretendardGOV-Regular.ttf" Fontawesome = "fa-regular-400.ttf" )
Variables ¶
This section is empty.
Functions ¶
func ApplySubWindowClass ¶
func ApplySubWindowClass()
func SetBeforeDestroyContextCallback ¶
func SetBeforeDestroyContextCallback(f func())
Types ¶
type FontAtlas ¶
type FontAtlas struct {
// contains filtered or unexported fields
}
func (*FontAtlas) AddFont ¶
AddFont adds font by name, if the font is found, return *FontInfo, otherwise return nil. To use added font, use giu.Style().SetFont(...).
func (*FontAtlas) AddFontFromBytes ¶
AddFontFromBytes does similar to AddFont, but using data from memory.
func (*FontAtlas) GetDefaultFonts ¶
func (*FontAtlas) RegisterString ¶
RegisterString register string to font atlas builder. Note only register strings that will be displayed on the UI.
func (*FontAtlas) SetDefaultFont ¶
SetDefaultFont changes default font.
func (*FontAtlas) SetDefaultFontFromBytes ¶
SetDefaultFontFromBytes changes default font by bytes of the font file.
func (*FontAtlas) SetDefaultFontSize ¶
SetDefaultFontSize sets the default font size. Invoke this before MasterWindow.NewMasterWindow(..).
type FontInfo ¶
type FontInfo struct {
// contains filtered or unexported fields
}
FontInfo represents a giu implementation of imgui font.
type ImguiDPI ¶
type ImguiDPI struct {
// contains filtered or unexported fields
}
func NewImguiDPI ¶
type ImguiWContext ¶
type ImguiWContext struct { FontAtlas *FontAtlas // contains filtered or unexported fields }
var Context *ImguiWContext
func (*ImguiWContext) Backend ¶
func (ic *ImguiWContext) Backend() imgui.Backend[imgui.GLFWWindowFlags]
func (*ImguiWContext) ID ¶
func (ic *ImguiWContext) ID() int
func (*ImguiWContext) IO ¶
func (ic *ImguiWContext) IO() *imgui.IO
func (*ImguiWContext) WaitGroup ¶
func (ic *ImguiWContext) WaitGroup() *sync.WaitGroup
type PlotSetupArgs ¶
type PlotWidget ¶
type PlotWidget interface { Title() string PlotSetup(args PlotSetupArgs) Plot() UpdateData() EventHandler(eventArgs any) IsDisposed() bool }
Click to show internal directories.
Click to hide internal directories.