com.badlogic.gdx.scenes.scene2d.ui.Table.ensureSize()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(260)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.ensureSize()方法的一些代码示例,展示了Table.ensureSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.ensureSize()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Table
类名称:Table
方法名:ensureSize

Table.ensureSize介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

  1. float[] columnMinWidth = this.columnMinWidth = ensureSize(this.columnMinWidth, columns);
  2. float[] rowMinHeight = this.rowMinHeight = ensureSize(this.rowMinHeight, rows);
  3. float[] columnPrefWidth = this.columnPrefWidth = ensureSize(this.columnPrefWidth, columns);
  4. float[] rowPrefHeight = this.rowPrefHeight = ensureSize(this.rowPrefHeight, rows);
  5. float[] columnWidth = this.columnWidth = ensureSize(this.columnWidth, columns);
  6. float[] rowHeight = this.rowHeight = ensureSize(this.rowHeight, rows);
  7. float[] expandWidth = this.expandWidth = ensureSize(this.expandWidth, columns);
  8. float[] expandHeight = this.expandHeight = ensureSize(this.expandHeight, rows);

代码示例来源:origin: libgdx/libgdx

  1. float[] columnMinWidth = this.columnMinWidth = ensureSize(this.columnMinWidth, columns);
  2. float[] rowMinHeight = this.rowMinHeight = ensureSize(this.rowMinHeight, rows);
  3. float[] columnPrefWidth = this.columnPrefWidth = ensureSize(this.columnPrefWidth, columns);
  4. float[] rowPrefHeight = this.rowPrefHeight = ensureSize(this.rowPrefHeight, rows);
  5. float[] columnWidth = this.columnWidth = ensureSize(this.columnWidth, columns);
  6. float[] rowHeight = this.rowHeight = ensureSize(this.rowHeight, rows);
  7. float[] expandWidth = this.expandWidth = ensureSize(this.expandWidth, columns);
  8. float[] expandHeight = this.expandHeight = ensureSize(this.expandHeight, rows);

代码示例来源:origin: libgdx/libgdx

  1. else {
  2. float extraWidth = Math.min(totalGrowWidth, Math.max(0, layoutWidth - tableMinWidth));
  3. columnWeightedWidth = Table.columnWeightedWidth = ensureSize(Table.columnWeightedWidth, columns);
  4. float[] columnMinWidth = this.columnMinWidth, columnPrefWidth = this.columnPrefWidth;
  5. for (int i = 0; i < columns; i++) {
  6. rowWeightedHeight = rowMinHeight;
  7. else {
  8. rowWeightedHeight = Table.rowWeightedHeight = ensureSize(Table.rowWeightedHeight, rows);
  9. float extraHeight = Math.min(totalGrowHeight, Math.max(0, layoutHeight - tableMinHeight));
  10. float[] rowMinHeight = this.rowMinHeight, rowPrefHeight = this.rowPrefHeight;

代码示例来源:origin: libgdx/libgdx

  1. else {
  2. float extraWidth = Math.min(totalGrowWidth, Math.max(0, layoutWidth - tableMinWidth));
  3. columnWeightedWidth = Table.columnWeightedWidth = ensureSize(Table.columnWeightedWidth, columns);
  4. float[] columnMinWidth = this.columnMinWidth, columnPrefWidth = this.columnPrefWidth;
  5. for (int i = 0; i < columns; i++) {
  6. rowWeightedHeight = rowMinHeight;
  7. else {
  8. rowWeightedHeight = Table.rowWeightedHeight = ensureSize(Table.rowWeightedHeight, rows);
  9. float extraHeight = Math.min(totalGrowHeight, Math.max(0, layoutHeight - tableMinHeight));
  10. float[] rowMinHeight = this.rowMinHeight, rowPrefHeight = this.rowPrefHeight;

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. float[] columnMinWidth = this.columnMinWidth = ensureSize(this.columnMinWidth, columns);
  2. float[] rowMinHeight = this.rowMinHeight = ensureSize(this.rowMinHeight, rows);
  3. float[] columnPrefWidth = this.columnPrefWidth = ensureSize(this.columnPrefWidth, columns);
  4. float[] rowPrefHeight = this.rowPrefHeight = ensureSize(this.rowPrefHeight, rows);
  5. float[] columnWidth = this.columnWidth = ensureSize(this.columnWidth, columns);
  6. float[] rowHeight = this.rowHeight = ensureSize(this.rowHeight, rows);
  7. float[] expandWidth = this.expandWidth = ensureSize(this.expandWidth, columns);
  8. float[] expandHeight = this.expandHeight = ensureSize(this.expandHeight, rows);

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. else {
  2. float extraWidth = Math.min(totalGrowWidth, Math.max(0, layoutWidth - tableMinWidth));
  3. columnWeightedWidth = Table.columnWeightedWidth = ensureSize(Table.columnWeightedWidth, columns);
  4. float[] columnMinWidth = this.columnMinWidth, columnPrefWidth = this.columnPrefWidth;
  5. for (int i = 0; i < columns; i++) {
  6. rowWeightedHeight = rowMinHeight;
  7. else {
  8. rowWeightedHeight = Table.rowWeightedHeight = ensureSize(Table.rowWeightedHeight, rows);
  9. float extraHeight = Math.min(totalGrowHeight, Math.max(0, layoutHeight - tableMinHeight));
  10. float[] rowMinHeight = this.rowMinHeight, rowPrefHeight = this.rowPrefHeight;

相关文章