added support for language, topic, and preset acquisition and detection functions

This commit is contained in:
2025-07-19 11:47:25 +08:00
parent 5783f40de7
commit 43d4349293
12 changed files with 988 additions and 499 deletions

View File

@@ -241,6 +241,23 @@ func (qf *QuickFreeze) IsLanguageSupported(language string) bool {
return generator.IsLanguageSupported(language)
}
// GetSupportedThemes returns a list of all supported themes
func (qf *QuickFreeze) GetSupportedThemes() []string {
generator := NewGenerator(qf.config)
return generator.GetSupportedThemes()
}
// IsThemeSupported checks if a theme is supported
func (qf *QuickFreeze) IsThemeSupported(theme string) bool {
generator := NewGenerator(qf.config)
return generator.IsThemeSupported(theme)
}
// GetAvailablePresets returns a list of all available presets
func (qf *QuickFreeze) GetAvailablePresets() []string {
return GetAvailablePresets()
}
// FileToSVG generates SVG from a source code file
func (qf *QuickFreeze) FileToSVG(filename string) ([]byte, error) {
generator := NewGenerator(qf.config)