aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-05-27 18:17:25 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-05-27 18:17:25 +0300
commit24aec1403fc9e3f1868e66b90bc83dacdb07ca06 (patch)
tree574e8a937fb6e0031983560672999f672abedf99 /src/main/java
parent31cdd0feb620ffbde17fff01c787f72038f59b06 (diff)
downloadLibGui-24aec1403fc9e3f1868e66b90bc83dacdb07ca06.tar.gz
LibGui-24aec1403fc9e3f1868e66b90bc83dacdb07ca06.tar.bz2
LibGui-24aec1403fc9e3f1868e66b90bc83dacdb07ca06.zip
Javadoc improvements
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/data/Insets.java12
2 files changed, 10 insertions, 4 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java b/src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java
index 4515c09..7ee8f0d 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/math/Vec2i.java
@@ -4,6 +4,8 @@ package io.github.cottonmc.cotton.gui.math;
* An immutable, two-dimensional int vector.
* This record can be used to represent positions on the screen.
*
+ * @param x the horizontal component
+ * @param y the vertical component
* @since 4.0.0
*/
public record Vec2i(int x, int y) {
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/data/Insets.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/Insets.java
index 4ceb13f..782cf74 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/data/Insets.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/Insets.java
@@ -4,6 +4,10 @@ package io.github.cottonmc.cotton.gui.widget.data;
* The layout insets of a panel. The insets describe how many pixels should be around the panel's contents.
* For example, root panels have 7 pixels around their contents, which is set via {@link #ROOT_PANEL}.
*
+ * @param top the top (Y-) inset size
+ * @param left the left (X-) inset size
+ * @param bottom the bottom (Y+) inset size
+ * @param right the right (X+) inset size
* @since 4.0.0
*/
public record Insets(int top, int left, int bottom, int right) {
@@ -20,10 +24,10 @@ public record Insets(int top, int left, int bottom, int right) {
/**
* Constructs layout insets.
*
- * @param top the top (-Y) inset size
- * @param left the left (-X) inset size
- * @param bottom the bottom (+Y) inset size
- * @param right the right (+X) inset size
+ * @param top the top (Y-) inset size
+ * @param left the left (X-) inset size
+ * @param bottom the bottom (Y+) inset size
+ * @param right the right (X+) inset size
*/
public Insets {
if (top < 0) throw new IllegalArgumentException("top cannot be negative, found " + top);