Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
59 lines
1.5 KiB
Java
59 lines
1.5 KiB
Java
package electrosphere.renderer.ui.elements;
|
|
|
|
import electrosphere.renderer.OpenGLState;
|
|
import electrosphere.renderer.RenderPipelineState;
|
|
import electrosphere.renderer.ui.elementtypes.DrawableElement;
|
|
import electrosphere.renderer.ui.elementtypes.FocusableElement;
|
|
|
|
/**
|
|
* A container element that is also drawable
|
|
*/
|
|
public class StandardDrawableContainerElement extends StandardContainerElement implements DrawableElement, FocusableElement {
|
|
|
|
/**
|
|
* Visibility status
|
|
*/
|
|
boolean visible = true;
|
|
|
|
/**
|
|
* Focus status
|
|
*/
|
|
boolean isFocused = false;
|
|
|
|
@Override
|
|
public boolean getVisible() {
|
|
return visible;
|
|
}
|
|
|
|
@Override
|
|
public void setVisible(boolean draw) {
|
|
this.visible = draw;
|
|
}
|
|
|
|
@Override
|
|
public void draw(RenderPipelineState renderPipelineState, OpenGLState openGLState, int parentFramebufferPointer, int parentPosX, int parentPosY, int parentWidth, int parentHeight) {
|
|
throw new UnsupportedOperationException("Unimplemented method 'draw'");
|
|
}
|
|
|
|
@Override
|
|
public boolean isFocused() {
|
|
return this.isFocused;
|
|
}
|
|
|
|
@Override
|
|
public void setFocused(boolean focused) {
|
|
this.isFocused = focused;
|
|
}
|
|
|
|
@Override
|
|
public void setOnFocus(FocusEventCallback callback) {
|
|
throw new UnsupportedOperationException("Unimplemented method 'setOnFocus'");
|
|
}
|
|
|
|
@Override
|
|
public void setOnLoseFocus(FocusEventCallback callback) {
|
|
throw new UnsupportedOperationException("Unimplemented method 'setOnLoseFocus'");
|
|
}
|
|
|
|
}
|