Turtle programming game that was never finished to a playable state (but had cute graphics and sounds)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package net.tortuga.gui.widgets.layout;
|
|
|
|
|
|
|
|
|
|
|
|
import net.tortuga.gui.widgets.Widget;
|
|
|
|
|
|
|
|
import com.porcupine.coord.Coord;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Space
|
|
|
|
*
|
|
|
|
* @author Ondřej Hruška (MightyPork)
|
|
|
|
*/
|
|
|
|
public class Gap extends Widget {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gui space (gap)
|
|
|
|
*
|
|
|
|
* @param width min width
|
|
|
|
* @param height min height
|
|
|
|
*/
|
|
|
|
public Gap(int width, int height) {
|
|
|
|
setMargins(0, 0, 0, 0);
|
|
|
|
setMinSize(width, height);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void render(Coord mouse)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Widget onMouseButton(Coord pos, int button, boolean down)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Widget onScroll(Coord pos, int scroll)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Widget onKey(int key, char chr, boolean down)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void calcChildSizes()
|
|
|
|
{
|
|
|
|
rect.setTo(0, 0, minSize.x, minSize.y);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|