コード例 #1
0
        public static INodeDecorator NodeDecorator(NodeDecoratorType DecoratorType)
        {
            INodeDecorator output = Laminar.New <INodeDecorator>();

            output.DecoratorType = DecoratorType;

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

            output.MyFunc = constraintFunction;

            return(output);
        }
コード例 #3
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);
        }
コード例 #4
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);
        }
コード例 #5
0
        public static INodeLabel NodeLabel(string labelText)
        {
            INodeLabel output = Laminar.New <INodeLabel>();

            output.Name = labelText;

            return(output);
        }
コード例 #6
0
        public static INodeField NodeField(string fieldName)
        {
            INodeField output = Laminar.New <INodeField>();

            output.Name = fieldName;

            return(output);
        }
コード例 #7
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);
        }
コード例 #8
0
        public static INodeComponentList NodeComponentList(IEnumerable <INodeComponent> components)
        {
            INodeComponentList output = Laminar.New <INodeComponentList>();

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

            return(output);
        }
コード例 #9
0
 public static INodeComponentDictionary NodeComponentDictionary() => Laminar.New <INodeComponentDictionary>();
コード例 #10
0
 public static ITypeDefinitionManager TypeDefinitionManager() => Laminar.New <ITypeDefinitionManager>();
コード例 #11
0
 public static IManualTypeDefinitionManager ManualTypeDefinitionManager() => Laminar.New <IManualTypeDefinitionManager>();