C# Class MonoDroid.ColorPickers.ColorPickerView

Inheritance: Android.Views.View
Afficher le fichier Open project: Cheesebaron/MonoDroid.ColorPickers Class Usage Examples

Méthodes publiques

Méthode Description
ColorPickerView ( Android.Content.Context context ) : System
ColorPickerView ( Android.Content.Context context, IAttributeSet attrs ) : System
ColorPickerView ( Android.Content.Context context, IAttributeSet attrs, int defStyle ) : System
OnTouchEvent ( Android.Views.MotionEvent e ) : bool
OnTrackballEvent ( Android.Views.MotionEvent e ) : bool

Méthodes protégées

Méthode Description
ColorPickerView ( IntPtr javaReference, JniHandleOwnership transfer ) : System
Dispose ( bool disposing ) : void
OnDraw ( Android.Graphics.Canvas canvas ) : void
OnMeasure ( int widthMeasureSpec, int heightMeasureSpec ) : void
OnSizeChanged ( int w, int h, int oldw, int oldh ) : void

Private Methods

Méthode Description
AlphaToPoint ( int alpha ) : Point
BuildHueColorArray ( ) : int[]
CalculateRequiredOffset ( ) : float
ChooseHeight ( MeasureSpecMode mode, int size ) : int
ChooseWidth ( MeasureSpecMode mode, int size ) : int
DrawAlphaPanel ( Android.Graphics.Canvas canvas ) : void
DrawHuePanel ( Android.Graphics.Canvas canvas ) : void
DrawSatValPanel ( Android.Graphics.Canvas canvas ) : void
GetPrefferedHeight ( ) : int
GetPrefferedWidth ( ) : int
HueToPoint ( float hue ) : Point
Init ( ) : void
InitPaintTools ( ) : void
MoveTrackersIfNeeded ( Android.Views.MotionEvent e ) : bool
PointToAlpha ( int x ) : int
PointToHue ( float y ) : float
PointToSatVal ( float x, float y ) : float[]
SatValToPoint ( float sat, float val ) : Point
SetUpAlphaRect ( ) : void
SetUpHueRect ( ) : void
SetUpSatValRect ( ) : void

Method Details

ColorPickerView() public méthode

public ColorPickerView ( Android.Content.Context context ) : System
context Android.Content.Context
Résultat System

ColorPickerView() public méthode

public ColorPickerView ( Android.Content.Context context, IAttributeSet attrs ) : System
context Android.Content.Context
attrs IAttributeSet
Résultat System

ColorPickerView() public méthode

public ColorPickerView ( Android.Content.Context context, IAttributeSet attrs, int defStyle ) : System
context Android.Content.Context
attrs IAttributeSet
defStyle int
Résultat System

ColorPickerView() protected méthode

protected ColorPickerView ( IntPtr javaReference, JniHandleOwnership transfer ) : System
javaReference System.IntPtr
transfer JniHandleOwnership
Résultat System

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnDraw() protected méthode

protected OnDraw ( Android.Graphics.Canvas canvas ) : void
canvas Android.Graphics.Canvas
Résultat void

OnMeasure() protected méthode

protected OnMeasure ( int widthMeasureSpec, int heightMeasureSpec ) : void
widthMeasureSpec int
heightMeasureSpec int
Résultat void

OnSizeChanged() protected méthode

protected OnSizeChanged ( int w, int h, int oldw, int oldh ) : void
w int
h int
oldw int
oldh int
Résultat void

OnTouchEvent() public méthode

public OnTouchEvent ( Android.Views.MotionEvent e ) : bool
e Android.Views.MotionEvent
Résultat bool

OnTrackballEvent() public méthode

public OnTrackballEvent ( Android.Views.MotionEvent e ) : bool
e Android.Views.MotionEvent
Résultat bool