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.
31 lines
440 B
31 lines
440 B
10 years ago
|
package mightypork.gamecore.gui.constraints;
|
||
10 years ago
|
|
||
|
|
||
|
import mightypork.utils.math.coord.Rect;
|
||
|
|
||
|
|
||
10 years ago
|
/**
|
||
|
* Basic pluggable context implementation
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public abstract class ContextAdapter implements PluggableContext {
|
||
10 years ago
|
|
||
10 years ago
|
private RectConstraint backing = null;
|
||
10 years ago
|
|
||
|
|
||
|
@Override
|
||
10 years ago
|
public void setContext(RectConstraint rect)
|
||
10 years ago
|
{
|
||
|
this.backing = rect;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Rect getRect()
|
||
|
{
|
||
|
return backing.getRect();
|
||
|
}
|
||
|
|
||
|
}
|