mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
More doc updates
This commit is contained in:
@@ -18,8 +18,8 @@ type ArtLayer struct {
|
|||||||
parent Group // The LayerSet/Document this layer is in.
|
parent Group // The LayerSet/Document this layer is in.
|
||||||
visible bool // Whether or not the layer is visible.
|
visible bool // Whether or not the layer is visible.
|
||||||
current bool // Whether we've checked this layer since we loaded from disk.
|
current bool // Whether we've checked this layer since we loaded from disk.
|
||||||
Color // The layer's color overlay effect (if any).
|
Color Color // The layer's color overlay effect (if any).
|
||||||
*Stroke // The layer's stroke effect (if any).
|
Stroke *Stroke // The layer's stroke effect (if any).
|
||||||
*TextItem // The layer's text, if it's a text layer.
|
*TextItem // The layer's text, if it's a text layer.
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ func (a *ArtLayer) Visible() bool {
|
|||||||
return a.visible
|
return a.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetPos snaps the given layer boundry to the given point.
|
// SetPos snaps the given layer boundary to the given point.
|
||||||
// Valid options for bound are: "TL", "TR", "BL", "BR"
|
// Valid options for bound are: "TL", "TR", "BL", "BR"
|
||||||
func (a *ArtLayer) SetPos(x, y int, bound string) {
|
func (a *ArtLayer) SetPos(x, y int, bound string) {
|
||||||
if !a.visible || (x == 0 && y == 0) {
|
if !a.visible || (x == 0 && y == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user