refactor(display): add AX usage examples
This commit is contained in:
parent
274a81689c
commit
98b73fc14c
1 changed files with 2 additions and 0 deletions
|
|
@ -1415,6 +1415,7 @@ func (s *Service) GetWindowTitle(name string) (string, error) {
|
|||
}
|
||||
|
||||
// ResetWindowState clears saved window positions.
|
||||
// Use: _ = svc.ResetWindowState()
|
||||
func (s *Service) ResetWindowState() error {
|
||||
ws := s.windowService()
|
||||
if ws != nil {
|
||||
|
|
@ -1424,6 +1425,7 @@ func (s *Service) ResetWindowState() error {
|
|||
}
|
||||
|
||||
// GetSavedWindowStates returns all saved window states.
|
||||
// Use: states := svc.GetSavedWindowStates()
|
||||
func (s *Service) GetSavedWindowStates() map[string]window.WindowState {
|
||||
ws := s.windowService()
|
||||
if ws == nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue