Package tripleplay.ui

Source Code of tripleplay.ui.Shim

//
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2014, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE

package tripleplay.ui;

import pythagoras.f.Dimension;
import pythagoras.f.IDimension;

/**
* An invisible widget that simply requests a fixed amount of space.
*/
public class Shim extends SizableWidget<Shim>
{
    public Shim (float width, float height) {
        this(new Dimension(width, height));
    }

    public Shim (IDimension size) {
        super(size);
    }

    @Override protected Class<?> getStyleClass () {
        return Shim.class;
    }
}
TOP

Related Classes of tripleplay.ui.Shim

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.