Beispiel #1
0
 public Margin(Value <float> left, Value <float> top, Value <float> right, Value <float> bottom, tkControl <T, TContext> control)
 {
     _left    = left;
     _top     = top;
     _right   = right;
     _bottom  = bottom;
     _control = control;
 }
 public Foldout(fiGUIContent label, FontStyle fontStyle, bool defaultToExpanded, tkControl <T, TContext> control)
 {
     _label        = label;
     _foldoutStyle = new GUIStyle(fiLateBindings.EditorStyles.foldout)
     {
         fontStyle = fontStyle
     };
     _defaultToExpanded = defaultToExpanded;
     _control           = control;
 }
 public Foldout(fiGUIContent label, tkControl <T, TContext> control)
     : this(label, FontStyle.Normal, control)
 {
 }
Beispiel #4
0
 public Box(tkControl <T, TContext> control)
 {
     _control = control;
 }
Beispiel #5
0
 public Margin(Value <float> margin, tkControl <T, TContext> control)
     : this(margin, margin, margin, margin, control)
 {
 }
Beispiel #6
0
 public DisableHierarchyMode(tkControl <T, TContext> childControl)
 {
     _childControl = childControl;
 }
Beispiel #7
0
 public ShowIf(Value <bool> shouldDisplay, tkControl <T, TContext> control)
 {
     _shouldDisplay = shouldDisplay;
     _control       = control;
 }
Beispiel #8
0
 /// <summary>
 /// Create a rule with the specific width.
 /// </summary>
 public void Add(float width, tkControl <T, TContext> rule)
 {
     InternalAdd(false, width, 0, rule);
 }
Beispiel #9
0
 /// <summary>
 /// Create an rule with auto width.
 /// </summary>
 public void Add(tkControl <T, TContext> rule)
 {
     InternalAdd(false, 0, 1, rule);
 }
Beispiel #10
0
 public Label(Value <fiGUIContent> label, FontStyle fontStyle, tkControl <T, TContext> control)
 {
     GUIContent = label;
     _fontStyle = fontStyle;
     _control   = control;
 }
Beispiel #11
0
 public Label(fiGUIContent label, FontStyle fontStyle, tkControl <T, TContext> control)
     : this(Val(label), fontStyle, control)
 {
 }
Beispiel #12
0
 public Label(Value <fiGUIContent> .Generator label, tkControl <T, TContext> control) :
     this(label, FontStyle.Normal, control)
 {
 }
 private void InternalAdd(tkControl <T, TContext> rule)
 {
     _items.Add(new SectionItem {
         Rule = rule
     });
 }
 public void Add(tkControl <T, TContext> rule)
 {
     InternalAdd(rule);
 }
Beispiel #15
0
 public Margin(Value <float> left, Value <float> top, tkControl <T, TContext> control)
     : this(left, top, left, top, control)
 {
 }
 public Foldout(fiGUIContent label, FontStyle fontStyle, tkControl <T, TContext> control)
     : this(label, fontStyle, true, control)
 {
 }
Beispiel #17
0
 public Label(Value <fiGUIContent> .Generator label, FontStyle fontStyle, tkControl <T, TContext> control)
     : this(Val(label), fontStyle, control)
 {
 }
Beispiel #18
0
 public Indent(tkControl <T, TContext> control)
     : this(15, control)
 {
 }
Beispiel #19
0
 /// <summary>
 /// Create a rule with auto width that can control if it matches the parent height.
 /// </summary>
 /// <param name="matchParentHeight">If true, then the height of the rect passed to the
 /// rule will be equal to the height of the overall rect passed to this horizontal group.</param>
 public void Add(bool matchParentHeight, tkControl <T, TContext> rule)
 {
     InternalAdd(matchParentHeight, 0, 1, rule);
 }
Beispiel #20
0
 public Indent(Value <float> indent, tkControl <T, TContext> control)
 {
     _indent  = indent;
     _control = control;
 }
Beispiel #21
0
            private void InternalAdd(bool matchParentHeight, float width, float fillStrength, tkControl <T, TContext> rule)
            {
                if (width < 0)
                {
                    throw new ArgumentException("width must be >= 0");
                }
                if (fillStrength < 0)
                {
                    throw new ArgumentException("fillStrength must be >= 0");
                }

                _items.Add(new SectionItem {
                    MatchParentHeight = matchParentHeight,
                    MinWidth          = width,
                    FillStrength      = fillStrength,
                    Rule = rule
                });
            }
Beispiel #22
0
 public tkTypeProxy(tkControl <TFrom, TContextFrom> control)
 {
     _control = control;
 }
Beispiel #23
0
 public ShowIf(Value <bool> .GeneratorNoContext shouldDisplay, tkControl <T, TContext> control)
     : this(new Value <bool>(shouldDisplay), control)
 {
 }
 public CenterVertical(tkControl <T, TContext> centered)
 {
     _centered = centered;
 }
Beispiel #25
0
 public tkControl <T, TContext> With(tkControl <T, TContext> control)
 {
     _control = control;
     return(this);
 }
Beispiel #26
0
 public StyleProxy(tkControl <T, TContext> control)
 {
     Control = control;
 }