diff options
Diffstat (limited to 'src/subconscious/graphics/widget/Button.java')
-rw-r--r-- | src/subconscious/graphics/widget/Button.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/subconscious/graphics/widget/Button.java b/src/subconscious/graphics/widget/Button.java new file mode 100644 index 0000000..47ba810 --- /dev/null +++ b/src/subconscious/graphics/widget/Button.java @@ -0,0 +1,19 @@ +package subconscious.graphics.widget; + +import java.awt.Graphics2D; +import java.awt.Point; + +public class Button extends Widget implements Clickable { + + public Button(String uniqueName, int x, int y, int width, int height) { + super(uniqueName, x, y, width, height); + } + + public void render(Graphics2D g) { + g.drawRect(0, 0, this.width, this.height); + } + + public void mouseClick(Point mouse) { + + } +}
\ No newline at end of file |