Skip to content

Commit

Permalink
:inspectable metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Apr 15, 2024
1 parent 0bed5cb commit c71e634
Show file tree
Hide file tree
Showing 25 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/feathers/controls/AssetLoader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class AssetLoader extends FeathersControl {
@since 1.0.0
**/
@:inspectable
public var source(get, set):String;

private function get_source():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/BasicToggleButton.hx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class BasicToggleButton extends FeathersControl implements ITriggerView implemen
@since 1.0.0
**/
@:bindable("change")
@:inspectable(defaultValue = "false")
public var selected(get, set):Bool;

private function get_selected():Bool {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/Button.hx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class Button extends BasicButton implements ITextControl implements IHTMLTextCon
@since 1.0.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/Collapsible.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class Collapsible extends FeathersControl implements IOpenCloseToggle {
@since 1.3.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
2 changes: 2 additions & 0 deletions src/feathers/controls/ComboBox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class ComboBox extends FeathersControl implements IIndexSelector implements IDat
entered into the text input by the user.
**/
@:bindable("change")
@:inspectable(defaultValue = "-1")
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down Expand Up @@ -423,6 +424,7 @@ class ComboBox extends FeathersControl implements IIndexSelector implements IDat
@since 1.0.0
**/
@:inspectable
public var prompt(get, set):String;

private function get_prompt():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/FormItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class FormItem extends FeathersControl implements ITextControl implements IFocus
@since 1.0.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/GridView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ class GridView extends BaseScrollContainer implements IIndexSelector implements
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:bindable("change")
@:inspectable(defaultValue = "-1")
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/Header.hx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class Header extends FeathersControl implements ITextControl {
@since 1.0.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/Label.hx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class Label extends FeathersControl implements ITextControl implements IHTMLText
@since 1.0.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/ListView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ class ListView extends BaseScrollContainer implements IIndexSelector implements
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:bindable("change")
@:inspectable(defaultValue = "-1")
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down
4 changes: 4 additions & 0 deletions src/feathers/controls/NumericStepper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class NumericStepper extends FeathersControl implements IRange implements IStage
@since 1.0.0
**/
@:bindable("change")
@:inspectable(defaultValue = "0.0")
public var value(get, set):Float;

private function get_value():Float {
Expand Down Expand Up @@ -210,6 +211,7 @@ class NumericStepper extends FeathersControl implements IRange implements IStage
@since 1.0.0
**/
@:inspectable(defaultValue = "0.0")
public var minimum(get, set):Float;

private function get_minimum():Float {
Expand Down Expand Up @@ -246,6 +248,7 @@ class NumericStepper extends FeathersControl implements IRange implements IStage
@since 1.0.0
**/
@:inspectable(defaultValue = "1.0")
public var maximum(get, set):Float;

private function get_maximum():Float {
Expand Down Expand Up @@ -291,6 +294,7 @@ class NumericStepper extends FeathersControl implements IRange implements IStage
@since 1.0.0
**/
@:inspectable(defaultValue = "0.01")
public var step(get, set):Float;

private function get_step():Float {
Expand Down
2 changes: 2 additions & 0 deletions src/feathers/controls/PageIndicator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class PageIndicator extends FeathersControl implements IIndexSelector implements
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:bindable("change")
@:inspectable
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand All @@ -142,6 +143,7 @@ class PageIndicator extends FeathersControl implements IIndexSelector implements
/**
@see `feathers.core.IIndexSelector.maxSelectedIndex`
**/
@:inspectable
public var maxSelectedIndex(get, set):Int;

private function get_maxSelectedIndex():Int {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/PopUpListView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ class PopUpListView extends FeathersControl implements IIndexSelector implements
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:bindable("change")
@:inspectable
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/TabBar.hx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class TabBar extends FeathersControl implements IIndexSelector implements IDataS
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:bindable("change")
@:inspectable
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down
2 changes: 2 additions & 0 deletions src/feathers/controls/TextArea.hx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class TextArea extends BaseScrollContainer implements IStateContext<TextInputSta
@since 1.0.0
**/
@:bindable("change")
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down Expand Up @@ -278,6 +279,7 @@ class TextArea extends BaseScrollContainer implements IStateContext<TextInputSta
@since 1.0.0
**/
@:inspectable
public var prompt(get, set):String;

private function get_prompt():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/TextCallout.hx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class TextCallout extends Callout implements ITextControl implements IHTMLTextCo
@since 1.0.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
2 changes: 2 additions & 0 deletions src/feathers/controls/TextInput.hx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ class TextInput extends FeathersControl implements IStateContext<TextInputState>
@since 1.0.0
**/
@:bindable("change")
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down Expand Up @@ -463,6 +464,7 @@ class TextInput extends FeathersControl implements IStateContext<TextInputState>
@since 1.0.0
**/
@:inspectable
public var prompt(get, set):String;

private function get_prompt():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/ToggleButton.hx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class ToggleButton extends BasicToggleButton implements ITextControl implements
@since 1.0.0
**/
@:inspectable
public var text(get, set):String;

private function get_text():String {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/ToggleSwitch.hx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class ToggleSwitch extends FeathersControl implements IToggle implements IFocusO
@since 1.0.0
**/
@:bindable("change")
@:inspectable(defaultValue = "false")
public var selected(get, set):Bool;

private function get_selected():Bool {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/navigators/PageNavigator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class PageNavigator extends BaseNavigator implements IIndexSelector implements I
/**
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:inspectable
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/navigators/TabNavigator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class TabNavigator extends BaseNavigator implements IIndexSelector implements ID
/**
@see `feathers.core.IIndexSelector.selectedIndex`
**/
@:inspectable
public var selectedIndex(get, set):Int;

private function get_selectedIndex():Int {
Expand Down
3 changes: 3 additions & 0 deletions src/feathers/controls/supportClasses/BaseProgressBar.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class BaseProgressBar extends FeathersControl implements IRange {
@since 1.0.0
**/
@:bindable("change")
@:inspectable(defaultValue = "0.0")
public var value(get, set):Float;

private function get_value():Float {
Expand Down Expand Up @@ -106,6 +107,7 @@ class BaseProgressBar extends FeathersControl implements IRange {
@since 1.0.0
**/
@:inspectable(defaultValue = "0.0")
public var minimum(get, set):Float;

private function get_minimum():Float {
Expand Down Expand Up @@ -145,6 +147,7 @@ class BaseProgressBar extends FeathersControl implements IRange {
@since 1.0.0
**/
@:inspectable(defaultValue = "1.0")
public var maximum(get, set):Float;

private function get_maximum():Float {
Expand Down
4 changes: 4 additions & 0 deletions src/feathers/controls/supportClasses/BaseScrollBar.hx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class BaseScrollBar extends FeathersControl implements IScrollBar {
@since 1.0.0
**/
@:bindable("change")
@:inspectable(defaultValue = "0.0")
public var value(get, set):Float;

private function get_value():Float {
Expand Down Expand Up @@ -151,6 +152,7 @@ class BaseScrollBar extends FeathersControl implements IScrollBar {
@since 1.0.0
**/
@:inspectable(defaultValue = "0.0")
public var minimum(get, set):Float;

private function get_minimum():Float {
Expand Down Expand Up @@ -187,6 +189,7 @@ class BaseScrollBar extends FeathersControl implements IScrollBar {
@since 1.0.0
**/
@:inspectable(defaultValue = "1.0")
public var maximum(get, set):Float;

private function get_maximum():Float {
Expand Down Expand Up @@ -232,6 +235,7 @@ class BaseScrollBar extends FeathersControl implements IScrollBar {
@since 1.0.0
**/
@:inspectable(defaultValue = "0.01")
public var step(get, set):Float;

private function get_step():Float {
Expand Down
5 changes: 5 additions & 0 deletions src/feathers/controls/supportClasses/BaseSlider.hx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class BaseSlider extends FeathersControl implements IRange implements IFocusObje
@since 1.0.0
**/
@:bindable("change")
@:inspectable(defaultValue = "0.0")
public var value(get, set):Float;

private function get_value():Float {
Expand Down Expand Up @@ -124,6 +125,7 @@ class BaseSlider extends FeathersControl implements IRange implements IFocusObje
@since 1.0.0
**/
@:inspectable(defaultValue = "0.0")
public var minimum(get, set):Float;

private function get_minimum():Float {
Expand Down Expand Up @@ -160,6 +162,7 @@ class BaseSlider extends FeathersControl implements IRange implements IFocusObje
@since 1.0.0
**/
@:inspectable(defaultValue = "1.0")
public var maximum(get, set):Float;

private function get_maximum():Float {
Expand Down Expand Up @@ -241,6 +244,7 @@ class BaseSlider extends FeathersControl implements IRange implements IFocusObje
@since 1.0.0
**/
@:inspectable(defaultValue = "0.0")
public var snapInterval(get, set):Float;

private function get_snapInterval():Float {
Expand Down Expand Up @@ -271,6 +275,7 @@ class BaseSlider extends FeathersControl implements IRange implements IFocusObje
@since 1.0.0
**/
@:inspectable
public var liveDragging:Bool = true;

private var _currentThumbSkin:InteractiveObject = null;
Expand Down
1 change: 1 addition & 0 deletions src/feathers/core/FeathersControl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class FeathersControl extends MeasureSprite implements IUIControl implements IVa
/**
@see `feathers.core.IUIControl.enabled`
**/
@:inspectable(defaultValue = "true")
public var enabled(get, set):Bool;

private function get_enabled():Bool {
Expand Down

0 comments on commit c71e634

Please sign in to comment.