mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Got text working.
This commit is contained in:
43
Variables.go
Normal file
43
Variables.go
Normal file
@@ -0,0 +1,43 @@
|
||||
package ps
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var Colors map[string]Color = map[string]Color{
|
||||
"Gray": &RGB{128, 128, 128},
|
||||
"White": &RGB{255, 255, 255},
|
||||
}
|
||||
|
||||
// ModeEnum determines how aggressively the package will attempt to sync with Photoshop.
|
||||
type ModeEnum int
|
||||
|
||||
// Holds the current mode.
|
||||
var Mode ModeEnum
|
||||
|
||||
// Fast mode never checks layers before returning.
|
||||
const Fast ModeEnum = 2
|
||||
|
||||
// Normal Mode Always checks to see if layers are up to date
|
||||
// before returning them.
|
||||
const Normal ModeEnum = 0
|
||||
|
||||
// Safe Mode Always loads the document from scratch. (Very Slow)
|
||||
const Safe ModeEnum = 1
|
||||
|
||||
// PSSaveOptions is an enum for options when closing a document.
|
||||
type PSSaveOptions int
|
||||
|
||||
func (p *PSSaveOptions) String() string {
|
||||
return fmt.Sprint("", *p)
|
||||
}
|
||||
|
||||
// PSSaveChanges saves changes before closing documents.
|
||||
const PSSaveChanges PSSaveOptions = 1
|
||||
|
||||
// PSDoNotSaveChanges closes documents without saving.
|
||||
const PSDoNotSaveChanges PSSaveOptions = 2
|
||||
|
||||
// PSPromptToSaveChanges prompts the user whether to save each
|
||||
// document before closing it.
|
||||
const PSPromptToSaveChanges PSSaveOptions = 3
|
||||
Reference in New Issue
Block a user