You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2021/09/18 15:17:26 UTC

[royale-asjs] branch develop updated: Added letterSpacing in TextInput.as and getCharBoundaries in IUITextField.as and getCharBoundaries in UITextField.as

This is an automated email from the ASF dual-hosted git repository.

pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 58a770e  Added letterSpacing in TextInput.as and getCharBoundaries in IUITextField.as and getCharBoundaries in UITextField.as
58a770e is described below

commit 58a770e0267897cfc5a4641d4ac153bd4e6cd758
Author: pashminakazi <pa...@gmail.com>
AuthorDate: Sat Sep 18 08:17:14 2021 -0700

    Added letterSpacing in TextInput.as and getCharBoundaries in IUITextField.as and getCharBoundaries in UITextField.as
---
 .../projects/MXRoyale/src/main/royale/mx/controls/TextInput.as      | 2 ++
 .../projects/MXRoyale/src/main/royale/mx/core/IUITextField.as       | 4 ++++
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as | 6 ++++++
 3 files changed, 12 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
index 86825f3..e76b02b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
@@ -131,6 +131,8 @@ use namespace mx_internal;
 
 [Style(name="borderColor", type="unit", format="Color" inherit="no")]
 
+[Style(name="letterSpacing", type="Number", inherit="yes")]
+
 //--------------------------------------
 //  Other metadata
 //--------------------------------------
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as
index d16c740..2eb36ff 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as
@@ -21,6 +21,8 @@ package mx.core
 {    
 //    import mx.managers.IToolTipManagerClient;
 //    import mx.styles.ISimpleStyleClient;
+	import org.apache.royale.geom.Rectangle;
+
 
     /**
      *  The IUITextField interface defines the basic set of APIs
@@ -163,6 +165,8 @@ package mx.core
         function setTextFormat(format:UITextFormat,
                                beginIndex:int = -1,
                                endIndex:int = -1):void;
+							   
+		function getCharBoundaries(charIndex:int):Rectangle;
         
     }
     
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
index cebb889..2da9ded 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
@@ -41,6 +41,7 @@ import flash.text.TextLineMetrics;
  
  import org.apache.royale.core.TextLineMetrics;
  import org.apache.royale.events.Event;
+ import org.apache.royale.geom.Rectangle;
  
  COMPILE::JS
  {
@@ -3032,6 +3033,11 @@ public class UITextField  extends UIComponent implements IUITextField
      public function set defaultTextFormat(value:TextFormat):void
      {
      }
+	 
+	 public function getCharBoundaries(charIndex:int):Rectangle {
+		trace("interface method getCharBoundaries of IUITextField is implemented without stub in UITextField");
+		return null;
+	 }
 }
 
 }