本文整理汇总了Java中apple.coregraphics.struct.CGSize类的典型用法代码示例。如果您正苦于以下问题:Java CGSize类的具体用法?Java CGSize怎么用?Java CGSize使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CGSize类属于apple.coregraphics.struct包,在下文中一共展示了CGSize类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: show
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
public void show() {
initializeAds();
final CGSize screenSize = UIScreen.mainScreen().bounds().size();
double screenWidth = screenSize.width();
final CGSize adSize = mAdview.bounds().size();
double adWidth = adSize.width();
double adHeight = adSize.height();
float bannerWidth = (float) screenWidth;
float bannerHeight = (float) (bannerWidth / adWidth * adHeight);
mAdview.setFrame(new CGRect(
new CGPoint((screenWidth / 2) - adWidth / 2, screenSize.height() - adHeight),
new CGSize(bannerWidth, bannerHeight)));
}
示例2: GADAdSizeFromCGSize
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
@CFunction
@ByValue
public static native GADAdSize GADAdSizeFromCGSize(@ByValue CGSize size);
示例3: CGSizeFromGADAdSize
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
@CFunction
@ByValue
public static native CGSize CGSizeFromGADAdSize(@ByValue GADAdSize size);
示例4: GADAdSize
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
public GADAdSize(@ByValue CGSize size, @NUInt long flags) {
super(GADAdSize.class);
setSize(size);
setFlags(flags);
}
示例5: size
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
@StructureField(order = 0, isGetter = true)
@ByValue
public native CGSize size();
示例6: setSize
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
@StructureField(order = 0, isGetter = false)
public native void setSize(@ByValue CGSize value);
示例7: imagePathForPictureModeSize
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
@Deprecated
@Selector("imagePathForPictureMode:size:")
public native String imagePathForPictureModeSize(@NUInt long mode,
@ByValue CGSize size);
示例8: imageURLForPictureModeSize
import apple.coregraphics.struct.CGSize; //导入依赖的package包/类
@Generated
@Selector("imageURLForPictureMode:size:")
public native NSURL imageURLForPictureModeSize(@NUInt long mode,
@ByValue CGSize size);