-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
19 changed files
with
3,301 additions
and
1,238 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
Large diffs are not rendered by default.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
core/src/main/java/app/photofox/vipsffm/enums/VipsSdfShape.java
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,63 @@ | ||
package app.photofox.vipsffm.enums; | ||
|
||
import app.photofox.vipsffm.VNamedEnum; | ||
import java.lang.Override; | ||
import java.lang.String; | ||
|
||
/** | ||
* <p>The SDF to generate,</p> | ||
* | ||
* <p>See also: {@link app.photofox.vipsffm.VImage#sdf}.</p> | ||
*/ | ||
public enum VipsSdfShape implements VNamedEnum { | ||
/** | ||
* <p>a circle at {@code a}, radius {@code r}</p> | ||
*/ | ||
SDF_SHAPE_CIRCLE("VIPS_SDF_SHAPE_CIRCLE", "circle", 0), | ||
|
||
/** | ||
* <p>a box from {@code a} to {@code b}</p> | ||
*/ | ||
SDF_SHAPE_BOX("VIPS_SDF_SHAPE_BOX", "box", 1), | ||
|
||
/** | ||
* <p>a box with rounded {@code corners} from {@code a} to {@code b}</p> | ||
*/ | ||
SDF_SHAPE_ROUNDED_BOX("VIPS_SDF_SHAPE_ROUNDED_BOX", "rounded-box", 2), | ||
|
||
/** | ||
* <p>a line from {@code a} to {@code b}</p> | ||
*/ | ||
SDF_SHAPE_LINE("VIPS_SDF_SHAPE_LINE", "line", 3), | ||
|
||
SDF_SHAPE_LAST("VIPS_SDF_SHAPE_LAST", "last", 4); | ||
|
||
public static final String parentName = "VipsSdfShape"; | ||
|
||
private final String vipsName; | ||
|
||
private final String vipsNickname; | ||
|
||
private final int rawValue; | ||
|
||
VipsSdfShape(String vipsName, String vipsNickname, int rawValue) { | ||
this.vipsName = vipsName; | ||
this.vipsNickname = vipsNickname; | ||
this.rawValue = rawValue; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return this.vipsName; | ||
} | ||
|
||
@Override | ||
public String getNickname() { | ||
return this.vipsNickname; | ||
} | ||
|
||
@Override | ||
public int getRawValue() { | ||
return this.rawValue; | ||
} | ||
} |
Oops, something went wrong.