public override bool Equals(object o) { if (o is android.graphics.Point) { android.graphics.Point p = (android.graphics.Point)o; return(this.x == p.x && this.y == p.y); } return(false); }
public virtual void clearRect() { mPaint = new Paint(); mPaint.Color = Color.BLUE; mPaint.Style = Paint.Style.STROKE; mPaint.StrokeWidth = 3; mRect = new Rect(); mOffset = new Point(); mGravity = GRAVITY_START; }
private void getSizeInternal(android.graphics.Point outSize, bool doCompat) { try { android.view.IWindowManager wm = getWindowManager(); if (wm != null) { wm.getDisplaySize(outSize); android.content.res.CompatibilityInfo ci; if (doCompat && (ci = mCompatibilityInfo.getIfNeeded()) != null) { lock (mTmpMetrics) { mTmpMetrics.noncompatWidthPixels = outSize.x; mTmpMetrics.noncompatHeightPixels = outSize.y; mTmpMetrics.density = mDensity; ci.applyToDisplayMetrics(mTmpMetrics); outSize.x = mTmpMetrics.widthPixels; outSize.y = mTmpMetrics.heightPixels; } } } else { // This is just for boot-strapping, initializing the // system process before the window manager is up. outSize.x = getRawWidth(); outSize.y = getRawHeight(); } if (false) { java.lang.RuntimeException here = new java.lang.RuntimeException("here"); XobotOS.Runtime.Util.FillInStackTrace(here); android.util.Slog.v(TAG, "Returning display size: " + outSize, here); } if (DEBUG_DISPLAY_SIZE && doCompat) { android.util.Slog.v(TAG, "Returning display size: " + outSize); } } catch (android.os.RemoteException e) { android.util.Slog.w("Display", "Unable to get display size", e); } }
/// <summary> /// Gets the real size of the display without subtracting any window decor or /// applying any compatibility scale factors. /// </summary> /// <remarks> /// Gets the real size of the display without subtracting any window decor or /// applying any compatibility scale factors. /// <p> /// The real size may be smaller than the raw size when the window manager /// is emulating a smaller display (using adb shell am display-size). /// </p><p> /// The size is adjusted based on the current rotation of the display. /// </p> /// </remarks> /// <hide></hide> public virtual void getRealSize(android.graphics.Point outSize) { try { android.view.IWindowManager wm = getWindowManager(); if (wm != null) { wm.getRealDisplaySize(outSize); } else { // This is just for boot-strapping, initializing the // system process before the window manager is up. outSize.x = getRawWidth(); outSize.y = getRawHeight(); } } catch (android.os.RemoteException e) { android.util.Slog.w("Display", "Unable to get real display size", e); } }
public Point(android.graphics.Point src) { this.x = src.x; this.y = src.y; }
bool android.view.ViewParent.getChildVisibleRect(android.view.View arg0, android.graphics.Rect arg1, android.graphics.Point arg2) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) { return(@__env.CallBooleanMethod(this.JvmHandle, global::android.view.ViewParent_._getChildVisibleRect9643, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))); } else { return(@__env.CallNonVirtualBooleanMethod(this.JvmHandle, global::android.view.ViewParent_.staticClass, global::android.view.ViewParent_._getChildVisibleRect9643, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))); } }
/// <summary>Gets the size of the display, in pixels.</summary> /// <remarks> /// Gets the size of the display, in pixels. /// <p> /// Note that this value should <em>not</em> be used for computing layouts, /// since a device will typically have screen decoration (such as a status bar) /// along the edges of the display that reduce the amount of application /// space available from the size returned here. Layouts should instead use /// the window size. /// </p><p> /// The size is adjusted based on the current rotation of the display. /// </p><p> /// The size returned by this method does not necessarily represent the /// actual raw size (native resolution) of the display. The returned size may /// be adjusted to exclude certain system decor elements that are always visible. /// It may also be scaled to provide compatibility with older applications that /// were originally designed for smaller displays. /// </p> /// </remarks> /// <param name="outSize"> /// A /// <see cref="android.graphics.Point">android.graphics.Point</see> /// object to receive the size information. /// </param> public virtual void getSize(android.graphics.Point outSize) { getSizeInternal(outSize, true); }
public PointF(android.graphics.Point arg0) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.graphics.PointF.staticClass, global::android.graphics.PointF._PointF3639, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); Init(@__env, handle); }
public PointF(android.graphics.Point p) { this.x = p.x; this.y = p.y; }