![]() |
ActionComponents
04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
|
The Action Color Cube displays a color selection cube in the app's user interface that allows the user to move a pointer around to select the Hue
, Saturation
and Brightness
of a generated color.
More...
Public Member Functions | |
ACColorCube (Context context) | |
Initializes a new instance of the T:ActionComponents.ACHueBar class. More... | |
ACColorCube (Context context, IAttributeSet attr) | |
Initializes a new instance of the T:ActionComponents.ACHueBar class. More... | |
ACColorCube (IntPtr javaReference, JniHandleOwnership transfer) | |
Initializes a new instance of the T:ActionComponents.ACHueBar class. More... | |
ACColorCube (Context context, IAttributeSet attr, int defStyle) | |
Initializes a new instance of the T:ActionComponents.ACHueBar class. More... | |
void | Redraw () |
Redraw this ActionComponents.ACOval. More... | |
override bool | OnTouchEvent (MotionEvent e) |
Raises the touch event event. More... | |
delegate void | ColorChangedDelegate (Color newColor) |
Color changed delegate. More... | |
![]() | |
ACView (Context context) | |
Initializes a new instance of the ActionComponents.ACView class. More... | |
ACView (Context context, IAttributeSet attr) | |
Initializes a new instance of the ActionComponents.ACView class. More... | |
ACView (IntPtr javaReference, JniHandleOwnership transfer) | |
Initializes a new instance of the ActionComponents.ACView class. More... | |
ACView (Context context, IAttributeSet attr, int defStyle) | |
Initializes a new instance of the ActionComponents.ACView class. More... | |
void | MoveToPoint (int x, int y) |
Moves this ActionComponents.ACView to the given point and honors any ActionComponents.ACViewDragConstraints applied to the X or Y axis More... | |
void | MoveToPoint (Point point) |
Moves this ActionComponents.ACView to the given point and honors any ActionComponents.ACViewDragConstraints applied to the X or Y axis More... | |
void | Resize (int width, int height) |
Resize this ActionComponents.ACView to the specified width and height. More... | |
bool | PointInside (int x, int y) |
Test to see if the given x and y coordinates are inside this ActionComponents.ACView More... | |
bool | PointInside (Point pt) |
Test to see if the given point is inside this ActionComponents.ACView More... | |
void | Purge (bool forceGarbageCollection) |
The Purge command causes this ActionComponents.ACView to force the removal of any subview from the screen and dispose of the memory that they contain. If forceGarbageCollection is true , garbage collection will be forced at the end of the purge cycle. The Purge command will cascade to any ActionComponents.ACView or ActionComponents.ACImageView subviews attached to this ActionComponents.ACView More... | |
override bool | OnTouchEvent (MotionEvent e) |
Raises the touch event event. More... | |
delegate void | ACViewTouchedDelegate (ACView view) |
Occurs when this ActionComponents.ACView is touched More... | |
delegate void | ACViewMovedDelegate (ACView view) |
Occurs when this ActionComponents.ACView is moved More... | |
delegate void | ACViewReleasedDelegate (ACView view) |
Occurs when this ActionComponents.ACView is released More... | |
Protected Member Functions | |
override void | OnLayout (bool changed, int l, int t, int r, int b) |
Ons the layout. More... | |
override void | OnDraw (Canvas canvas) |
Raises the draw event. More... | |
Properties | |
float | Hue [get, set] |
Gets or sets the hue. More... | |
float | Saturation [get, set] |
Gets or sets the saturation. More... | |
float | Brightness [get, set] |
Gets or sets the brightness. More... | |
HSVColor | HSV [get] |
Gets the HSV color More... | |
new int | Width [get, set] |
Gets or sets the width. More... | |
new int | Height [get, set] |
Gets or sets the height. More... | |
![]() | |
Object | tag [get, set] |
Gets or sets the [OPTIONAL] tag that can be assosciated with this ActionComponents.ACView More... | |
bool | draggable [get, set] |
Gets or sets a value indicating whether this ActionComponents.ACView is draggable. More... | |
bool | dragging [get] |
Gets a value indicating whether this ActionComponents.ACView is being dragged by the user. More... | |
bool | bringToFrontOnTouched [get, set] |
Gets or sets a value indicating whether this ActionComponents.ACView is automatically brought to the front when touched. More... | |
ACViewDragConstraint | xConstraint [get, set] |
Gets or sets the ActionComponents.ACViewDragConstraint applied to the x axis of this ActionComponents.ACView More... | |
ACViewDragConstraint | yConstraint [get, set] |
Gets or sets the ActionComponents.ACViewDragConstraint applied to the y axis of this ActionComponents.ACView More... | |
int | LeftMargin [get, set] |
Gets or sets the left margin. More... | |
int | TopMargin [get, set] |
Gets or sets the top margin. More... | |
int | RightMargin [get, set] |
Gets or sets the right margin. More... | |
int | BottomMargin [get, set] |
Gets or sets the bottom margin. More... | |
int | LayoutWidth [get, set] |
Gets or sets the width of the layout. More... | |
int | LayoutHeight [get, set] |
Gets or sets the height of the layout. More... | |
Events | |
ColorChangedDelegate | ColorChanged |
Occurs when color changed. More... | |
![]() | |
ACViewTouchedDelegate | Touched |
ACViewMovedDelegate | Moved |
ACViewReleasedDelegate | Released |
Additional Inherited Members | |
![]() | |
static Display | DefaultDisplay (View view) |
Gets the default display for the given view More... | |
static Rect | WindowVisibleDisplayFrame (View view) |
Gets the window visible display frame for the given view. More... | |
static int | StatusBarHeight (View view) |
Gets the status bar height for the given view. More... | |
static int | ActionBarHeight (View view) |
Gets the height of the action bar for a view. More... | |
static int | NavigationBarHeight (View view) |
Gets the navigation bar height for the given view. More... | |
static int | DefaultDisplayHeight (View view) |
Returns the height of the default display for the given view. More... | |
static int | DefaultDisplayWidth (View view) |
Returns the width for the default display for the given view. More... | |
static int | GetViewHeight (View view) |
Decodes the LayoutParameters for the given View and returns the Height property More... | |
static void | SetViewHeight (View view, int height) |
Decodes the LayoutParameters for the given View and sets the Height property More... | |
static int | GetViewWidth (View view) |
Decodes the LayoutParameters for the given View and returns the Width property More... | |
static void | SetViewWidth (View view, int Width) |
Decodes the LayoutParameters for the given View and sets the Width property More... | |
static int | GetViewLeftMargin (View view) |
Decodes the LayoutParameters for the given View and returns the LeftMargin property More... | |
static void | SetViewLeftMargin (View view, int LeftMargin) |
Decodes the LayoutParameters for the given View and sets the LeftMargin property More... | |
static int | GetViewRightMargin (View view) |
Decodes the LayoutParameters for the given View and returns the RightMargin property More... | |
static void | SetViewRightMargin (View view, int RightMargin) |
Decodes the LayoutParameters for the given View and sets the RightMargin property More... | |
static int | GetViewTopMargin (View view) |
Decodes the LayoutParameters for the given View and returns the TopMargin property More... | |
static void | SetViewTopMargin (View view, int TopMargin) |
Decodes the LayoutParameters for the given View and sets the TopMargin property More... | |
static int | GetViewBottomMargin (View view) |
Decodes the LayoutParameters for the given View and returns the BottomMargin property More... | |
static void | SetViewBottomMargin (View view, int BottomMargin) |
Decodes the LayoutParameters for the given View and sets the BottomMargin property More... | |
The Action Color Cube displays a color selection cube in the app's user interface that allows the user to move a pointer around to select the Hue
, Saturation
and Brightness
of a generated color.
ActionComponents.ACColorCube.ACColorCube | ( | Context | context | ) |
Initializes a new instance of the T:ActionComponents.ACHueBar class.
context | Context. |
ActionComponents.ACColorCube.ACColorCube | ( | Context | context, |
IAttributeSet | attr | ||
) |
Initializes a new instance of the T:ActionComponents.ACHueBar class.
context | Context. |
attr | Attr. |
ActionComponents.ACColorCube.ACColorCube | ( | IntPtr | javaReference, |
JniHandleOwnership | transfer | ||
) |
Initializes a new instance of the T:ActionComponents.ACHueBar class.
javaReference | Java reference. |
transfer | Transfer. |
ActionComponents.ACColorCube.ACColorCube | ( | Context | context, |
IAttributeSet | attr, | ||
int | defStyle | ||
) |
Initializes a new instance of the T:ActionComponents.ACHueBar class.
context | Context. |
attr | Attr. |
defStyle | Def style. |
delegate void ActionComponents.ACColorCube.ColorChangedDelegate | ( | Color | newColor | ) |
Color changed delegate.
|
protected |
Raises the draw event.
<Docs>the canvas on which the background will be drawn</Docs>
Implement this to do your drawing.
<format type="text/html">[Android Documentation]</format> <since version="Added in API level 1"></since>
canvas | Canvas. |
|
protected |
Ons the layout.
changed | If set to true changed. |
l | L. |
t | T. |
r | The red component. |
b | The blue component. |
override bool ActionComponents.ACColorCube.OnTouchEvent | ( | MotionEvent | e | ) |
Raises the touch event event.
e | E. |
void ActionComponents.ACColorCube.Redraw | ( | ) |
|
getset |
Gets or sets the brightness.
The brightness.
|
getset |
Gets or sets the height.
The height.
|
get |
Gets the HSV color
The HS.
|
getset |
Gets or sets the hue.
The hue.
|
getset |
Gets or sets the saturation.
The saturation.
|
getset |
Gets or sets the width.
The width.
ColorChangedDelegate ActionComponents.ACColorCube.ColorChanged |
Occurs when color changed.