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.
33 lines
598 B
33 lines
598 B
package mightypork.gamecore.gui.components;
|
|
|
|
|
|
import mightypork.gamecore.control.AppAccess;
|
|
import mightypork.gamecore.control.AppSubModule;
|
|
import mightypork.utils.math.constraints.RectBound;
|
|
import mightypork.utils.math.constraints.rect.Rect;
|
|
|
|
|
|
public abstract class AbstractComponent extends AppSubModule implements PluggableRenderable {
|
|
|
|
private RectBound context;
|
|
|
|
|
|
public AbstractComponent(AppAccess app) {
|
|
super(app);
|
|
}
|
|
|
|
|
|
@Override
|
|
public void setRect(RectBound context)
|
|
{
|
|
this.context = context;
|
|
}
|
|
|
|
|
|
@Override
|
|
public Rect getRect()
|
|
{
|
|
return context.getRect();
|
|
}
|
|
|
|
}
|
|
|