Example #1
0
        public static IRigidTypeDefinitionManager RigidTypeDefinitionManager(object value, string editorName = null, string displayName = null)
        {
            IRigidTypeDefinitionManager output = Laminar.New <IRigidTypeDefinitionManager>();

            output.RegisterTypeDefinition(value, editorName, displayName);

            return(output);
        }
Example #2
0
        public static IValueConstraint <T> ValueConstraint <T>(Func <T, T> constraintFunction)
        {
            IValueConstraint <T> output = Laminar.New <IValueConstraint <T> >();

            output.MyFunc = constraintFunction;

            return(output);
        }
Example #3
0
        public static INodeComponentAutoCloner NodeComponentAutoCloner(INodeComponent originalClone, int minimumFieldCount, Func <int, string> nameRule)
        {
            INodeComponentAutoCloner output = Laminar.New <INodeComponentAutoCloner>();

            output.ResetWith(originalClone, minimumFieldCount, nameRule);

            return(output);
        }
Example #4
0
        public static INodeLabel NodeLabel(string labelText)
        {
            INodeLabel output = Laminar.New <INodeLabel>();

            output.Name.Value = labelText;

            return(output);
        }
Example #5
0
        public static INodeField NodeField(string fieldName)
        {
            INodeField output = Laminar.New <INodeField>();

            output.Name.Value = fieldName;

            return(output);
        }
Example #6
0
        public static ITypeDefinitionConstructor <T> TypeDefinition <T>(T defaultValue, string editorName = null, string displayName = null)
        {
            ITypeDefinitionConstructor <T> output = Laminar.New <ITypeDefinitionConstructor <T> >();

            output.DefaultValue = defaultValue;
            output.EditorName   = editorName;
            output.DisplayName  = displayName;

            return(output);
        }
Example #7
0
        public static INodeComponentList NodeComponentList(IEnumerable <INodeComponent> components)
        {
            INodeComponentList output = Laminar.New <INodeComponentList>();

            foreach (INodeComponent component in components)
            {
                output.Add(component);
            }

            return(output);
        }
Example #8
0
 public static INodeComponentDictionary NodeComponentDictionary() => Laminar.New <INodeComponentDictionary>();
Example #9
0
 public static ITypeDefinitionProvider TypeDefinitionManager() => Laminar.New <ITypeDefinitionProvider>();
Example #10
0
 public static IManualTypeDefinitionProvider ManualTypeDefinitionManager() => Laminar.New <IManualTypeDefinitionProvider>();
Example #11
0
 public static ISeparator Separator() => Laminar.New <ISeparator>();