internal static CursorStyle CreateDefaultCursorStyle(StyleSheet sheet, StyleValueHandle handle) { int type = StyleSheetCache.GetEnumValue <MouseCursor>(sheet, handle); CursorStyle cursor = new CursorStyle() { texture = null, hotspot = Vector2.zero, defaultCursorId = type }; return(cursor); }
internal static CursorStyle CreateDefaultCursorStyle(StyleSheet sheet, StyleValueHandle handle) { int enumValue = StyleSheetCache.GetEnumValue <MouseCursor>(sheet, handle); return(new CursorStyle { texture = null, hotspot = Vector2.zero, defaultCursorId = enumValue }); }
internal static int GetCursorId(StyleSheet sheet, StyleValueHandle handle) { return(StyleSheetCache.GetEnumValue <MouseCursor>(sheet, handle)); }