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

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

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

Table.validate介绍

暂无

代码示例

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

  1. public void draw (Batch batch, float parentAlpha) {
  2. validate();
  3. if (isTransform()) {
  4. applyTransform(batch, computeTransform());
  5. drawBackground(batch, parentAlpha, 0, 0);
  6. if (clip) {
  7. batch.flush();
  8. float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);
  9. if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this),
  10. getHeight() - padBottom - padTop.get(this))) {
  11. drawChildren(batch, parentAlpha);
  12. batch.flush();
  13. clipEnd();
  14. }
  15. } else
  16. drawChildren(batch, parentAlpha);
  17. resetTransform(batch);
  18. } else {
  19. drawBackground(batch, parentAlpha, getX(), getY());
  20. super.draw(batch, parentAlpha);
  21. }
  22. }

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

  1. public void draw (Batch batch, float parentAlpha) {
  2. validate();
  3. if (isTransform()) {
  4. applyTransform(batch, computeTransform());
  5. drawBackground(batch, parentAlpha, 0, 0);
  6. if (clip) {
  7. batch.flush();
  8. float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);
  9. if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this),
  10. getHeight() - padBottom - padTop.get(this))) {
  11. drawChildren(batch, parentAlpha);
  12. batch.flush();
  13. clipEnd();
  14. }
  15. } else
  16. drawChildren(batch, parentAlpha);
  17. resetTransform(batch);
  18. } else {
  19. drawBackground(batch, parentAlpha, getX(), getY());
  20. super.draw(batch, parentAlpha);
  21. }
  22. }

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

  1. public void draw (Batch batch, float parentAlpha) {
  2. validate();
  3. if (isTransform()) {
  4. applyTransform(batch, computeTransform());
  5. drawBackground(batch, parentAlpha, 0, 0);
  6. if (clip) {
  7. batch.flush();
  8. float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);
  9. if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this),
  10. getHeight() - padBottom - padTop.get(this))) {
  11. drawChildren(batch, parentAlpha);
  12. batch.flush();
  13. clipEnd();
  14. }
  15. } else
  16. drawChildren(batch, parentAlpha);
  17. resetTransform(batch);
  18. } else {
  19. drawBackground(batch, parentAlpha, getX(), getY());
  20. super.draw(batch, parentAlpha);
  21. }
  22. }

相关文章