org.robovm.apple.uikit.UIView.getBounds()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(174)

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

UIView.getBounds介绍

暂无

代码示例

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

  1. @Override // from ViewController
  2. public void viewDidAppear(boolean animated) {
  3. super.viewDidAppear(animated);
  4. // plat.log().debug("viewDidAppear(" + animated + ")");
  5. view.bindDrawable();
  6. plat.graphics().viewDidInit(getView().getBounds());
  7. }

代码示例来源:origin: threerings/playn

  1. @Override // from ViewController
  2. public void didRotate(UIInterfaceOrientation fromOrient) {
  3. super.didRotate(fromOrient);
  4. // platform.log().debug("didRotate(" + fromOrient + "): " + bounds);
  5. platform.graphics().setSize(getView().getBounds());
  6. platform.didRotate(fromOrient);
  7. }

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

  1. @Override // from ViewController
  2. public void didRotate(UIInterfaceOrientation fromOrient) {
  3. super.didRotate(fromOrient);
  4. // plat.log().debug("didRotate(" + fromOrient + "): " + bounds);
  5. plat.graphics().boundsChanged(getView().getBounds());
  6. plat.orient.emit(new RoboOrientEvent.DidRotate(fromOrient));
  7. }

代码示例来源:origin: threerings/playn

  1. @Override // from ViewController
  2. public void viewDidAppear(boolean animated) {
  3. super.viewDidAppear(animated);
  4. // platform.log().debug("viewDidAppear(" + animated + "): " + bounds);
  5. EAGLContext.setCurrentContext(view.getContext());
  6. platform.graphics().ctx.viewDidAppear();
  7. platform.graphics().setSize(getView().getBounds());
  8. }

代码示例来源:origin: robovm/robovm-robopods

  1. setFrame(parent.getBounds());
  2. CGSize totalSize = new CGSize();
  3. CGRect indicatorF = indicator.getBounds();
  4. indicatorF.getSize().setWidth(Math.min(indicatorF.getSize().getWidth(), maxWidth));
  5. totalSize.setWidth(Math.max(totalSize.getWidth(), indicatorF.getSize().getWidth()));

相关文章