public virtual void setShape(android.graphics.drawable.shapes.Shape arg0) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) { @__env.CallVoidMethod(this.JvmHandle, global::android.graphics.drawable.ShapeDrawable._setShape4205, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); } else { @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.graphics.drawable.ShapeDrawable.staticClass, global::android.graphics.drawable.ShapeDrawable._setShape4205, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); } }
protected virtual void onDraw(android.graphics.drawable.shapes.Shape arg0, android.graphics.Canvas arg1, android.graphics.Paint arg2) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) { @__env.CallVoidMethod(this.JvmHandle, global::android.graphics.drawable.ShapeDrawable._onDraw4201, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2)); } else { @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.graphics.drawable.ShapeDrawable.staticClass, global::android.graphics.drawable.ShapeDrawable._onDraw4201, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2)); } }
internal ShapeState(android.graphics.drawable.ShapeDrawable.ShapeState orig) { if (orig != null) { mPaint = orig.mPaint; mShape = orig.mShape; mPadding = orig.mPadding; mIntrinsicWidth = orig.mIntrinsicWidth; mIntrinsicHeight = orig.mIntrinsicHeight; mAlpha = orig.mAlpha; mShaderFactory = orig.mShaderFactory; } else { mPaint = new android.graphics.Paint(android.graphics.Paint.ANTI_ALIAS_FLAG); } }
/// <summary>Sets the Shape of this ShapeDrawable.</summary> /// <remarks>Sets the Shape of this ShapeDrawable.</remarks> public virtual void setShape(android.graphics.drawable.shapes.Shape s) { mShapeState.mShape = s; updateShape(); }
/// <summary>Creates a ShapeDrawable with a specified Shape.</summary> /// <remarks>Creates a ShapeDrawable with a specified Shape.</remarks> /// <param name="s">the Shape that this ShapeDrawable should be</param> public ShapeDrawable(android.graphics.drawable.shapes.Shape s) : this((android.graphics.drawable.ShapeDrawable .ShapeState)null) { mShapeState.mShape = s; }
/// <summary> /// Called from the drawable's draw() method after the canvas has been set /// to draw the shape at (0,0). /// </summary> /// <remarks> /// Called from the drawable's draw() method after the canvas has been set /// to draw the shape at (0,0). Subclasses can override for special effects /// such as multiple layers, stroking, etc. /// </remarks> protected internal virtual void onDraw(android.graphics.drawable.shapes.Shape shape , android.graphics.Canvas canvas, android.graphics.Paint paint) { shape.draw(canvas, paint); }
public ShapeDrawable(android.graphics.drawable.shapes.Shape arg0) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.graphics.drawable.ShapeDrawable.staticClass, global::android.graphics.drawable.ShapeDrawable._ShapeDrawable4213, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); Init(@__env, handle); }
internal ShapeState(android.graphics.drawable.ShapeDrawable.ShapeState orig) { if (orig != null) { mPaint = orig.mPaint; mShape = orig.mShape; mPadding = orig.mPadding; mIntrinsicWidth = orig.mIntrinsicWidth; mIntrinsicHeight = orig.mIntrinsicHeight; mAlpha = orig.mAlpha; mShaderFactory = orig.mShaderFactory; } else { mPaint = new android.graphics.Paint(android.graphics.Paint.ANTI_ALIAS_FLAG); } }