Example usage for com.badlogic.gdx.scenes.scene2d.ui Cell minSize

List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Cell minSize

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d.ui Cell minSize.

Prototype

public Cell<T> minSize(float size) 

Source Link

Document

Sets the minWidth and minHeight to the specified value.

Usage

From source file:com.mangecailloux.pebble.constant.ConstantEditor.java

License:Apache License

/**
 * Sets the minimal size for the buttons and ConstantTables. Useful to tweak the size the CE will take on screen.
 * @param _minimalSize _minimalSize for the UI components.
 *///ww w .  ja  v a 2  s. c o m
public void setUIMinimalSizes(int _minimalSize) {
    buttonMinimalSize = _minimalSize;

    Cell<?> cell = optionsTable.getCell(openButton);
    if (cell != null)
        cell.minSize(buttonMinimalSize);

    cell = optionsTable.getCell(backButton);
    if (cell != null)
        cell.minSize(buttonMinimalSize);

    cell = optionsTable.getCell(rootButton);
    if (cell != null)
        cell.minSize(buttonMinimalSize);

    cell = optionsTable.getCell(saveButton);
    if (cell != null)
        cell.minSize(buttonMinimalSize);

    if (open)
        refreshFlickTable();
}