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

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

本文整理了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

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

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

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

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

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

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

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

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

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

相关文章