/** * Gets the preferred size of the widget contents. * * @param canvas The canvas on which the widget is to be drawn * @param sizeHint The size hint passed by the NUI system * @return The preferred size of the widget */ @Override public Vector2i getPreferredContentSize(Canvas canvas, Vector2i sizeHint) { if (image.get() != null) { return image.get().size(); } return Vector2i.zero(); }
public void setValue(float val) { value.set(val); }
public float getValue() { return value.get(); }
@Override public final String getFamily() { return family.get(); }
@Override public void setTooltip(UIWidget val) { tooltip.set(val); }
@Override public UIWidget getTooltip() { return tooltip.get(); }
@Override public boolean isVisible() { return visible.get(); }
/** * Accessor function which returns the image of the container widget. * * @return The image of the container */ public TextureRegion getImage() { return image.get(); }