-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ef89fc
commit 6f039d6
Showing
3 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package event | ||
|
||
// NoopEventHandler is an implementation of [EventHandler] interface with all | ||
// methods doing nothing. It is a good starting point to be embedded your own | ||
// struct to be extended. | ||
type NoopEventHandler struct{} | ||
|
||
func (e *NoopEventHandler) Workspace(WorkspaceName) {} | ||
func (e *NoopEventHandler) FocusedMonitor(FocusedMonitor) {} | ||
func (e *NoopEventHandler) ActiveWindow(ActiveWindow) {} | ||
func (e *NoopEventHandler) Fullscreen(bool) {} | ||
func (e *NoopEventHandler) MonitorRemoved(MonitorName) {} | ||
func (e *NoopEventHandler) MonitorAdded(MonitorName) {} | ||
func (e *NoopEventHandler) CreateWorkspace(WorkspaceName) {} | ||
func (e *NoopEventHandler) DestroyWorkspace(WorkspaceName) {} | ||
func (e *NoopEventHandler) MoveWorkspace(MoveWorkspace) {} | ||
func (e *NoopEventHandler) ActiveLayout(ActiveLayout) {} | ||
func (e *NoopEventHandler) OpenWindow(OpenWindow) {} | ||
func (e *NoopEventHandler) CloseWindow(CloseWindow) {} | ||
func (e *NoopEventHandler) MoveWindow(MoveWindow) {} | ||
func (e *NoopEventHandler) OpenLayer(OpenLayer) {} | ||
func (e *NoopEventHandler) CloseLayer(CloseLayer) {} | ||
func (e *NoopEventHandler) SubMap(SubMap) {} | ||
func (e *NoopEventHandler) Screencast(Screencast) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters