Pārlūkot izejas kodu

Update AAStates.kt

An An 3 gadi atpakaļ
vecāks
revīzija
c6c6968184

+ 22 - 0
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AAStates.kt

@@ -11,6 +11,8 @@ package com.github.aachartmodel.aainfographics.aaoptionsmodel
 class AAStates {
     var hover: AAHover? = null
     var select: AASelect? = null
+    var inactive: AAInactive? = null
+
     fun hover(prop: AAHover?): AAStates {
         hover = prop
         return this
@@ -20,6 +22,11 @@ class AAStates {
         select = prop
         return this
     }
+
+    fun inactive(prop: AAInactive?): AAStates {
+        inactive = prop
+        return this
+    }
 }
 
 
@@ -102,3 +109,18 @@ class AAHalo {
         return this
     }
 }
+
+class AAInactive {
+    var enabled: Boolean? = null
+    var opacity: Number? = null
+    fun enabled(prop: Boolean?): AAInactive {
+        enabled = prop
+        return this
+    }
+
+    fun opacity(prop: Number?): AAInactive {
+        opacity = prop
+        return this
+    }
+}
+