35 lines
		
	
	
		
			678 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			678 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package electrosphere.renderer.ui;
 | |
| 
 | |
| import electrosphere.renderer.ui.events.Event;
 | |
| 
 | |
| public interface Element {
 | |
|     
 | |
|     public int getWidth();
 | |
| 
 | |
|     public int getHeight();
 | |
| 
 | |
|     public int getPositionX();
 | |
| 
 | |
|     public int getPositionY();
 | |
| 
 | |
|     public void setWidth(int width);
 | |
| 
 | |
|     public void setHeight(int height);
 | |
| 
 | |
|     public void setPositionX(int positionX);
 | |
| 
 | |
|     public void setPositionY(int positionY);
 | |
|     
 | |
|     public void setParentWidth(int width);
 | |
|     
 | |
|     public void setParentHeight(int height);
 | |
| 
 | |
|     /**
 | |
|      * 
 | |
|      * @param event the even to handle
 | |
|      * @return true if the event should continue to propagate
 | |
|      */
 | |
|     public boolean handleEvent(Event event);
 | |
| 
 | |
| }
 |