Show / Hide Table of Contents

Class HasEnumIconsAttribute

Use this attribute to mark an Enum if every name in it should be used as an Icon. E.g. IconUtils.SymbolicIcons. They will respectively appear in the Icon Scene with the Enum name or GroupName category.

Inheritance
System.Object
HasEnumIconsAttribute
Namespace: Eco.Shared.Icons
Assembly: Eco.Shared.dll
Syntax
public class HasEnumIconsAttribute : Attribute

Constructors

HasEnumIconsAttribute(String)

Declaration
public HasEnumIconsAttribute(string groupName = null)
Parameters
Type Name Description
System.String groupName

Properties

GroupName

Declaration
public string GroupName { get; }
Property Value
Type Description
System.String

Methods

IconsNames<T>()

Declaration
public static (string, LocString)[] IconsNames<T>()
    where T : Enum
Returns
Type Description
System.ValueTuple<System.String, LocString>[]
Type Parameters
Name Description
T

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾