当前位置: 首页>>代码示例>>Java>>正文


Java CGRect类代码示例

本文整理汇总了Java中com.panoramagl.ios.structs.CGRect的典型用法代码示例。如果您正苦于以下问题:Java CGRect类的具体用法?Java CGRect怎么用?Java CGRect使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CGRect类属于com.panoramagl.ios.structs包,在下文中一共展示了CGRect类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeValues

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
@Override
protected void initializeValues()
{
	mBackingWidth = new int[1];
	mBackingHeight = new int[1];
	
	mDefaultFramebuffer = new int[1];
	mColorRenderbuffer = new int[1];
	
	mIsRunning = mIsRendering = false;
	
	mViewport = CGRect.CGRectMake(mTempViewport = CGRect.CGRectMake(0, 0, PLConstants.kViewportSize, PLConstants.kViewportSize));
	
	mSize = CGSize.CGSizeMake(mTempSize = CGSize.CGSizeMake(0.0f, 0.0f));
	
	mContextSupportsFrameBufferObject = false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:18,代码来源:PLRenderer.java

示例2: crop

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
/**crop methods*/

@Override
public PLIImage crop(CGRect rect)
{
	return this.crop(rect.x, rect.y, rect.width, rect.height);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:8,代码来源:PLImage.java

示例3: getSubImage

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
/**sub-image methods*/

@Override
public Bitmap getSubImage(CGRect rect)
{
	return this.getSubImage(rect.x, rect.y, rect.width, rect.height);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:8,代码来源:PLImage.java

示例4: getViewport

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
@Override
public CGRect getViewport()
{
	return mTempViewport.setValues(mViewport);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:6,代码来源:PLRenderer.java

示例5: getRect

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
@Override
public CGRect getRect()
{
	return CGRect.CGRectMake(0, 0, mWidth, mHeight);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:6,代码来源:PLImage.java

示例6: getRenderingViewport

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
@Override
public CGRect getRenderingViewport()
{
	return (mRenderer != null ? mTempRenderingViewport.setValues(mRenderer.getViewport()) : mTempRenderingViewport.reset());
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:6,代码来源:PLView.java

示例7: onCreate

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
/**android: events methods*/

@Override
   protected void onCreate(Bundle savedInstanceState) 
{
       super.onCreate(savedInstanceState);
       try
       {
       	mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
       	mGestureDetector = new GestureDetector
		(
			this,
			new SimpleOnGestureListener()
			{
				@Override
				public boolean onDoubleTap(MotionEvent event)
				{
					return PLView.this.onDoubleTap(event);
				}
				
				@Override
				public boolean onDoubleTapEvent(MotionEvent event)
				{
					return PLView.this.onDoubleTapEvent(event);
				}
				
				@Override
				public boolean onSingleTapConfirmed(MotionEvent event)
				{
					return PLView.this.onSingleTapConfirmed(event);
				}
			}
		);
       	mTempRenderingViewport = new CGRect();
       	mTempRenderingSize = new CGSize();
       	mTempSize = new CGSize();
       	mTempAcceleration = new UIAcceleration();
       	mInternalTouches = new ArrayList<UITouch>(kMaxTouches);
       	mCurrentTouches = new ArrayList<UITouch>(kMaxTouches);
       	mLocation = new int[2];
		this.initializeValues();
       }
       catch(Throwable e)
       {
       	PLLog.error("PLView::onCreate", e);
       }
   }
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:48,代码来源:PLView.java

示例8: getRenderingViewport

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
@Override
public CGRect getRenderingViewport() {
	return (mRenderer != null ? mTempRenderingViewport.setValues(mRenderer.getViewport()) : mTempRenderingViewport.reset());
}
 
开发者ID:marianmoldovan,项目名称:panoramagl,代码行数:5,代码来源:PLManager.java

示例9: onCreate

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
/**android: events methods*/
 public void onCreate() {
     try
     {
     	mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
     	mGestureDetector = new GestureDetector (
		context,
	new SimpleOnGestureListener()
	{
		@Override
		public boolean onDoubleTap(MotionEvent event)
		{
			return PLManager.this.onDoubleTap(event);
		}
		
		@Override
		public boolean onDoubleTapEvent(MotionEvent event)
		{
			return PLManager.this.onDoubleTapEvent(event);
		}
		
		@Override
		public boolean onSingleTapConfirmed(MotionEvent event)
		{
			return PLManager.this.onSingleTapConfirmed(event);
		}
	}
);
     	mTempRenderingViewport = new CGRect();
     	mTempRenderingSize = new CGSize();
     	mTempSize = new CGSize();
     	mTempAcceleration = new UIAcceleration();
     	mInternalTouches = new ArrayList<UITouch>(kMaxTouches);
     	mCurrentTouches = new ArrayList<UITouch>(kMaxTouches);
     	mLocation = new int[2];
this.initializeValues();
     }
     catch(Throwable e)
     {
     	PLLog.error("PLView::onCreate", e);
     }
 }
 
开发者ID:marianmoldovan,项目名称:panoramagl,代码行数:43,代码来源:PLManager.java

示例10: crop

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
/**crop methods*/

PLIImage crop(CGRect rect);
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:4,代码来源:PLIImage.java

示例11: getSubImage

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
/**sub-image methods*/

Bitmap getSubImage(CGRect rect);
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:4,代码来源:PLIImage.java

示例12: getViewport

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
CGRect getViewport(); 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:2,代码来源:PLIRenderer.java

示例13: getRect

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
CGRect getRect(); 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:2,代码来源:PLIImage.java

示例14: getRenderingViewport

import com.panoramagl.ios.structs.CGRect; //导入依赖的package包/类
CGRect getRenderingViewport(); 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:2,代码来源:PLIView.java


注:本文中的com.panoramagl.ios.structs.CGRect类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。