forked from OpenDiablo2/HellSpawner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move things from pkg/common to pkg/window
some interfaces should not be in common what is common at all?
- Loading branch information
Showing
25 changed files
with
166 additions
and
171 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,32 +1 @@ | ||
package common | ||
|
||
import ( | ||
"github.com/AllenDang/giu" | ||
|
||
"github.com/gucio321/HellSpawner/pkg/common/state" | ||
) | ||
|
||
// EditorWindow represents editor window | ||
type EditorWindow interface { | ||
Renderable | ||
MainMenuUpdater | ||
|
||
// HasFocus returns true if editor is focused | ||
HasFocus() (hasFocus bool) | ||
// GetWindowTitle controls what the window title for this editor appears as | ||
GetWindowTitle() string | ||
// Show sets Visible to true | ||
Show() | ||
// SetVisible can be used to set Visible to false if the editor should be closed | ||
SetVisible(bool) | ||
// GetID returns a unique identifier for this editor window | ||
GetID() string | ||
// BringToFront brings this editor to the front of the application, giving it focus | ||
BringToFront() | ||
// State returns the current state of this editor, in a JSON-serializable struct | ||
State() state.EditorState | ||
// Save writes any changes made in the editor to the file that is open in the editor. | ||
Save() | ||
|
||
Size(float32, float32) *giu.WindowWidget | ||
} |
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
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
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
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
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
Oops, something went wrong.