本文整理了Java中org.robovm.apple.uikit.UIView.getBounds()
方法的一些代码示例,展示了UIView.getBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIView.getBounds()
方法的具体详情如下:
包路径:org.robovm.apple.uikit.UIView
类名称: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()));
内容来源于网络,如有侵权,请联系作者删除!