Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserConfigPath = filepath.Join(glib.GetUserConfigDir(), "catnip-gtk", "config.json")
UserConfigPath is the default path to the user's config file.
Functions ¶
This section is empty.
Types ¶
type Appearance ¶
type Appearance struct { LineCap LineCap ForegroundColor OptionalColor BackgroundColor OptionalColor BarWidth float64 SpaceWidth float64 // gap width MinimumClamp float64 AntiAlias AntiAlias DrawStyle catnip.DrawStyle CustomCSS string }
func NewAppearance ¶
func NewAppearance() Appearance
func (*Appearance) Page ¶
func (ac *Appearance) Page(apply func()) *handy.PreferencesPage
type Config ¶
type Config struct { Input Input Appearance Appearance Visualizer Visualizer WindowSize struct { Width int Height int } }
func ReadConfig ¶
ReadConfig reads the config at the given path.
func ReadUserConfig ¶
ReadUserConfig reads the user's config file at the default user path.
func (*Config) PreferencesWindow ¶
func (cfg *Config) PreferencesWindow(apply func()) *handy.PreferencesWindow
type Input ¶
type Input struct { Backend string Device string DualChannel bool // .Monophonic // contains filtered or unexported fields }
func (*Input) InputBackend ¶
func (*Input) InputDevice ¶
func (*Input) Page ¶
func (ic *Input) Page(apply func()) *handy.PreferencesPage
type OptionalColor ¶
type OptionalColor = *catnip.CairoColor
type Session ¶
type Session struct { gtk.Stack Error *gtk.Label Area *gtk.DrawingArea Drawer *catnip.Drawer // contains filtered or unexported fields }
func NewSession ¶
type Visualizer ¶
type Visualizer struct { SampleRate float64 SampleSize int FrameRate int WindowFn WindowFn SmoothFactor float64 ScaleSlowWindow float64 ScaleFastWindow float64 ScaleDumpPercent float64 ScaleResetDeviation float64 }
func NewVisualizer ¶
func NewVisualizer() Visualizer
func (*Visualizer) Page ¶
func (v *Visualizer) Page(apply func()) *handy.PreferencesPage
type WindowFn ¶
type WindowFn string
const ( BartlettHann WindowFn = "Bartlett–Hann" Blackman WindowFn = "Blackman" BlackmanHarris WindowFn = "Blackman–Harris" BlackmanNuttall WindowFn = "Blackman–Nuttall" FlatTop WindowFn = "Flat Top" Hamming WindowFn = "Hamming" Hann WindowFn = "Hann" Lanczos WindowFn = "Lanczos" Nuttall WindowFn = "Nuttall" Rectangular WindowFn = "Rectangular" Sine WindowFn = "Sine" Triangular WindowFn = "Triangular" CosineSum WindowFn = "Cosine-Sum" PlanckTaper WindowFn = "Planck–Taper" )
func (WindowFn) AsFunction ¶
func (wfn WindowFn) AsFunction() catnipwindow.Function
Click to show internal directories.
Click to hide internal directories.