Documentation ¶
Index ¶
- Constants
- func GetAbsolutePosition(w, root fyne.CanvasObject) fyne.Position
- func NewTimersUI(ctx context.Context, panel *Panel) *timersUI
- func NewTriggerRulesUI(ctx context.Context, panel *Panel) *triggerRulesUI
- type AutoUpdater
- type BackendStatusCode
- type Config
- type HintWidget
- type LoopOption
- type LoopOptionAutoUpdater
- type LoopOptionStartingPage
- type Option
- type OptionOAuthListenPortTwitch
- type OptionOAuthListenPortYouTube
- type OptionRemoteStreamDAddr
- type Options
- type Panel
- func (p *Panel) Close() error
- func (p *Panel) DisplayError(err error)
- func (p *Panel) GetStreamDConfig(ctx context.Context) (*streamdconfig.Config, error)
- func (p *Panel) InputKickUserInfo(ctx context.Context, ...) BackendStatusCode
- func (p *Panel) InputOBSConnectInfo(ctx context.Context, ...) BackendStatusCode
- func (p *Panel) InputTwitchUserInfo(ctx context.Context, ...) BackendStatusCode
- func (p *Panel) InputYouTubeUserInfo(ctx context.Context, ...) BackendStatusCode
- func (p *Panel) LazyInitStreamD(ctx context.Context) (_err error)
- func (p *Panel) Loop(ctx context.Context, opts ...LoopOption) error
- func (p *Panel) NewUpdateProgressBar() *UpdateProgressBar
- func (p *Panel) OAuthHandlerKick(ctx context.Context, arg oauthhandler.OAuthHandlerArgument) error
- func (p *Panel) OAuthHandlerTwitch(ctx context.Context, arg oauthhandler.OAuthHandlerArgument) error
- func (p *Panel) OAuthHandlerYouTube(ctx context.Context, arg oauthhandler.OAuthHandlerArgument) error
- func (p *Panel) OnSubmittedOAuthCode(ctx context.Context, platID streamcontrol.PlatformName, code string) error
- func (p *Panel) OpenBrowser(ctx context.Context, url string) error
- func (p *Panel) ReportError(err error)
- func (p *Panel) SaveConfig(ctx context.Context) error
- func (p *Panel) SetLoggingLevel(ctx context.Context, level logger.Level)
- func (p *Panel) SetStatus(msg string)
- func (p *Panel) SetStreamDConfig(ctx context.Context, newCfg *streamdconfig.Config) (_err error)
- func (p *Panel) ShowErrorReports()
- type Profile
- type ProgressBar
- type Screenshoter
- type Update
- type UpdateProgressBar
Constants ¶
View Source
const ( BackendStatusCodeUndefined = BackendStatusCode(iota) BackendStatusCodeReady BackendStatusCodeNotNow BackendStatusCodeDisable )
View Source
const ( ScreenshotMaxWidth = 384 ScreenshotMaxHeight = 216 )
Variables ¶
This section is empty.
Functions ¶
func GetAbsolutePosition ¶
func GetAbsolutePosition(w, root fyne.CanvasObject) fyne.Position
GetAbsolutePosition calculates the absolute position of a widget.
func NewTimersUI ¶
func NewTriggerRulesUI ¶
Types ¶
type BackendStatusCode ¶
type BackendStatusCode uint
type HintWidget ¶
type HintWidget struct { *widget.Label Locker xsync.Mutex Text string Hint *widget.PopUp Window fyne.Window RecheckerCancelFn context.CancelFunc }
func NewHintWidget ¶
func NewHintWidget(window fyne.Window, text string) *HintWidget
func (*HintWidget) MouseIn ¶
func (w *HintWidget) MouseIn(ev *desktop.MouseEvent)
func (*HintWidget) MouseMoved ¶
func (w *HintWidget) MouseMoved(*desktop.MouseEvent)
func (*HintWidget) MouseOut ¶
func (w *HintWidget) MouseOut()
type LoopOption ¶
type LoopOption interface {
// contains filtered or unexported methods
}
type LoopOptionAutoUpdater ¶
type LoopOptionAutoUpdater struct{ AutoUpdater }
type LoopOptionStartingPage ¶
type LoopOptionStartingPage string
type OptionOAuthListenPortTwitch ¶
type OptionOAuthListenPortTwitch uint16
func (OptionOAuthListenPortTwitch) Apply ¶
func (o OptionOAuthListenPortTwitch) Apply(cfg *Config)
type OptionOAuthListenPortYouTube ¶
type OptionOAuthListenPortYouTube uint16
func (OptionOAuthListenPortYouTube) Apply ¶
func (o OptionOAuthListenPortYouTube) Apply(cfg *Config)
type OptionRemoteStreamDAddr ¶
type OptionRemoteStreamDAddr string
func (OptionRemoteStreamDAddr) Apply ¶
func (o OptionRemoteStreamDAddr) Apply(cfg *Config)
type Panel ¶
type Panel struct { StreamD api.StreamD Screenshoter Screenshoter Audio *audio.Audio OnInternallySubmittedOAuthCode func( ctx context.Context, platID streamcontrol.PlatformName, code string, ) error Config Config // contains filtered or unexported fields }
func (*Panel) DisplayError ¶
func (*Panel) GetStreamDConfig ¶
func (*Panel) InputKickUserInfo ¶
func (p *Panel) InputKickUserInfo( ctx context.Context, cfg *streamcontrol.PlatformConfig[kick.PlatformSpecificConfig, kick.StreamProfile], ) BackendStatusCode
func (*Panel) InputOBSConnectInfo ¶
func (p *Panel) InputOBSConnectInfo( ctx context.Context, cfg *streamcontrol.PlatformConfig[obs.PlatformSpecificConfig, obs.StreamProfile], ) BackendStatusCode
func (*Panel) InputTwitchUserInfo ¶
func (p *Panel) InputTwitchUserInfo( ctx context.Context, cfg *streamcontrol.PlatformConfig[twitch.PlatformSpecificConfig, twitch.StreamProfile], ) BackendStatusCode
func (*Panel) InputYouTubeUserInfo ¶
func (p *Panel) InputYouTubeUserInfo( ctx context.Context, cfg *streamcontrol.PlatformConfig[youtube.PlatformSpecificConfig, youtube.StreamProfile], ) BackendStatusCode
func (*Panel) NewUpdateProgressBar ¶
func (p *Panel) NewUpdateProgressBar() *UpdateProgressBar
func (*Panel) OAuthHandlerKick ¶
func (p *Panel) OAuthHandlerKick( ctx context.Context, arg oauthhandler.OAuthHandlerArgument, ) error
func (*Panel) OAuthHandlerTwitch ¶
func (p *Panel) OAuthHandlerTwitch( ctx context.Context, arg oauthhandler.OAuthHandlerArgument, ) error
func (*Panel) OAuthHandlerYouTube ¶
func (p *Panel) OAuthHandlerYouTube( ctx context.Context, arg oauthhandler.OAuthHandlerArgument, ) error
func (*Panel) OnSubmittedOAuthCode ¶
func (p *Panel) OnSubmittedOAuthCode( ctx context.Context, platID streamcontrol.PlatformName, code string, ) error
func (*Panel) ReportError ¶
func (*Panel) SetLoggingLevel ¶
func (*Panel) SetStreamDConfig ¶
func (*Panel) ShowErrorReports ¶
func (p *Panel) ShowErrorReports()
type Profile ¶
type Profile struct { streamdconfig.ProfileMetadata Name streamcontrol.ProfileName PerPlatform map[streamcontrol.PlatformName]streamcontrol.AbstractStreamProfile }
type ProgressBar ¶
type ProgressBar interface {
SetProgress(v float64)
}
type Screenshoter ¶
type Screenshoter interface { Engine() screenshoter.ScreenshotEngine Loop( ctx context.Context, interval time.Duration, config screenshot.Config, callback func(context.Context, *image.RGBA), ) }
type UpdateProgressBar ¶
type UpdateProgressBar struct { CloseOnce sync.Once Panel *Panel Window fyne.Window Label *widget.Label ProgressBar *widget.ProgressBar }
func (*UpdateProgressBar) SetProgress ¶
func (u *UpdateProgressBar) SetProgress(progress float64)
Source Files ¶
- auto_updater.go
- backend_status_code.go
- camera.go
- chat.go
- dashboard.go
- error.go
- events.go
- fyne_hacks.go
- image.go
- obs.go
- options.go
- p2p_network.go
- panel.go
- profile_list.go
- reflect.go
- restream.go
- select_server.go
- settings.go
- stream_started_window.go
- stream_status.go
- streamd.go
- template.go
- timers.go
- trigger_rules.go
- update_progress_bar.go
- update_timer_handler.go
- util.go
- widget_hint.go
Click to show internal directories.
Click to hide internal directories.