Packagecom.ghostwire.ui.core
Classpublic class uiFocusRect
InheritanceuiFocusRect Inheritance uiBitmapImage Inheritance flash.display.Bitmap

uiFocusRect is used to draw a rectangle around the currently focused object. This class is used internally by Aspire UI - you should not need to instantiate this class in your application code.

If you want to change the look of the focus rectangle universally throughout your application, you should change the bitmap image uiFocusRect.png in your skins folder (you may need to change the entry in the rules.xml file as well).

If you want a different look for the focus rectangle of only a particular control in your application, you should create a separate PNG image and set the control's focusRect property to a String value indicating that image (omitting the .png extension). The PNG image must be defined in the "rules.xml" file in the theme folder (where the PNG image file is stored).

For example, the following will use FocusRectWhite.png instead of FocusRect.png when rendering the focus rectangle on the myBlackPushButton control:
myBlackPushButton.focusRect = "FocusRectWhite";

~ This class is available in Aspire UI Components Lite Edition ~



Public Properties
 PropertyDefined by
 Inheritededge : uiEdge
Indicates the thickness of the edges of the bitmap that should not be stretched when the bitmap is scaled.
uiBitmapImage
 InheritedmidX : int
Indicates the width of the middle portion that should not be stretched when the uiBitmapImage instance is scaled horizontally.
uiBitmapImage
 InheritedmidY : int
Indicates the height of the middle portion that should not be stretched when the uiBitmapImage instance is scaled vertically.
uiBitmapImage
 InheritedrepeatX : Boolean
Indicates whether the scaling portion of the bitmap should repeat across the X-axis (horizontally) instead of stretching linearly.
uiBitmapImage
 InheritedrepeatY : Boolean
Indicates whether the scaling portion of the bitmap should repeat across the Y-axis (vertically) instead of stretching linearly.
uiBitmapImage
Public Methods
 MethodDefined by
  
uiFocusRect(assetName:String = "FocusRect")
Constructor - creates a new uiFocusRect instance.
uiFocusRect
Public Constants
 ConstantDefined by
 InheritedsizeLimit : int = 2880
[static] Indicates the maximum valid value for width and height.
uiBitmapImage
Constructor detail
uiFocusRect()constructor
public function uiFocusRect(assetName:String = "FocusRect")

Constructor - creates a new uiFocusRect instance.

Parameters
assetName:String (default = "FocusRect") — [Optional] A String value indicating the name of the bitmap image to load (omit the .png extension).