/Visual Studio 2013/Source/wpf/src/Core/CSharp/System/Windows/Media/Effects/Generated/BevelBitmapEffect.cs

https://github.com/tforsberg/z · C# · 374 lines · 197 code · 77 blank · 100 comment · 0 complexity · 14b5efe94baa5c766e5156969103b0ba MD5 · raw file

  1. //---------------------------------------------------------------------------
  2. //
  3. // <copyright file="BevelBitmapEffect.cs" company="Microsoft">
  4. // Copyright (C) Microsoft Corporation. All rights reserved.
  5. // </copyright>
  6. //
  7. // This file was generated, please do not edit it directly.
  8. //
  9. // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information.
  10. //
  11. //---------------------------------------------------------------------------
  12. using MS.Internal;
  13. using MS.Internal.Collections;
  14. using MS.Internal.KnownBoxes;
  15. using MS.Internal.PresentationCore;
  16. using MS.Utility;
  17. using System;
  18. using System.Collections;
  19. using System.Collections.Generic;
  20. using System.ComponentModel;
  21. using System.Diagnostics;
  22. using System.Globalization;
  23. using System.Reflection;
  24. using System.Runtime.InteropServices;
  25. using System.ComponentModel.Design.Serialization;
  26. using System.Text;
  27. using System.Windows;
  28. using System.Windows.Media;
  29. using System.Windows.Media.Media3D;
  30. using System.Windows.Media.Animation;
  31. using System.Windows.Media.Composition;
  32. using System.Windows.Media.Imaging;
  33. using System.Windows.Markup;
  34. using System.Security;
  35. using System.Security.Permissions;
  36. using SR=MS.Internal.PresentationCore.SR;
  37. using SRID=MS.Internal.PresentationCore.SRID;
  38. // These types are aliased to match the unamanaged names used in interop
  39. using BOOL = System.UInt32;
  40. using WORD = System.UInt16;
  41. using Float = System.Single;
  42. namespace System.Windows.Media.Effects
  43. {
  44. sealed partial class BevelBitmapEffect : BitmapEffect
  45. {
  46. //------------------------------------------------------
  47. //
  48. // Public Methods
  49. //
  50. //------------------------------------------------------
  51. #region Public Methods
  52. /// <summary>
  53. /// Shadows inherited Clone() with a strongly typed
  54. /// version for convenience.
  55. /// </summary>
  56. public new BevelBitmapEffect Clone()
  57. {
  58. return (BevelBitmapEffect)base.Clone();
  59. }
  60. /// <summary>
  61. /// Shadows inherited CloneCurrentValue() with a strongly typed
  62. /// version for convenience.
  63. /// </summary>
  64. public new BevelBitmapEffect CloneCurrentValue()
  65. {
  66. return (BevelBitmapEffect)base.CloneCurrentValue();
  67. }
  68. #endregion Public Methods
  69. //------------------------------------------------------
  70. //
  71. // Public Properties
  72. //
  73. //------------------------------------------------------
  74. private static void BevelWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  75. {
  76. BevelBitmapEffect target = ((BevelBitmapEffect) d);
  77. target.PropertyChanged(BevelWidthProperty);
  78. }
  79. private static void ReliefPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  80. {
  81. BevelBitmapEffect target = ((BevelBitmapEffect) d);
  82. target.PropertyChanged(ReliefProperty);
  83. }
  84. private static void LightAnglePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  85. {
  86. BevelBitmapEffect target = ((BevelBitmapEffect) d);
  87. target.PropertyChanged(LightAngleProperty);
  88. }
  89. private static void SmoothnessPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  90. {
  91. BevelBitmapEffect target = ((BevelBitmapEffect) d);
  92. target.PropertyChanged(SmoothnessProperty);
  93. }
  94. #region Public Properties
  95. /// <summary>
  96. /// BevelWidth - double. Default value is 5.0.
  97. /// </summary>
  98. public double BevelWidth
  99. {
  100. get
  101. {
  102. return (double) GetValue(BevelWidthProperty);
  103. }
  104. set
  105. {
  106. SetValueInternal(BevelWidthProperty, value);
  107. }
  108. }
  109. /// <summary>
  110. /// Relief - double. Default value is 0.3.
  111. /// </summary>
  112. public double Relief
  113. {
  114. get
  115. {
  116. return (double) GetValue(ReliefProperty);
  117. }
  118. set
  119. {
  120. SetValueInternal(ReliefProperty, value);
  121. }
  122. }
  123. /// <summary>
  124. /// LightAngle - double. Default value is 135.0.
  125. /// </summary>
  126. public double LightAngle
  127. {
  128. get
  129. {
  130. return (double) GetValue(LightAngleProperty);
  131. }
  132. set
  133. {
  134. SetValueInternal(LightAngleProperty, value);
  135. }
  136. }
  137. /// <summary>
  138. /// Smoothness - double. Default value is 0.2.
  139. /// </summary>
  140. public double Smoothness
  141. {
  142. get
  143. {
  144. return (double) GetValue(SmoothnessProperty);
  145. }
  146. set
  147. {
  148. SetValueInternal(SmoothnessProperty, value);
  149. }
  150. }
  151. /// <summary>
  152. /// EdgeProfile - EdgeProfile. Default value is EdgeProfile.Linear.
  153. /// </summary>
  154. public EdgeProfile EdgeProfile
  155. {
  156. get
  157. {
  158. return (EdgeProfile) GetValue(EdgeProfileProperty);
  159. }
  160. set
  161. {
  162. SetValueInternal(EdgeProfileProperty, value);
  163. }
  164. }
  165. #endregion Public Properties
  166. //------------------------------------------------------
  167. //
  168. // Protected Methods
  169. //
  170. //------------------------------------------------------
  171. #region Protected Methods
  172. /// <summary>
  173. /// Implementation of <see cref="System.Windows.Freezable.CreateInstanceCore">Freezable.CreateInstanceCore</see>.
  174. /// </summary>
  175. /// <returns>The new Freezable.</returns>
  176. protected override Freezable CreateInstanceCore()
  177. {
  178. return new BevelBitmapEffect();
  179. }
  180. #endregion ProtectedMethods
  181. //------------------------------------------------------
  182. //
  183. // Internal Methods
  184. //
  185. //------------------------------------------------------
  186. #region Internal Methods
  187. #endregion Internal Methods
  188. //------------------------------------------------------
  189. //
  190. // Internal Properties
  191. //
  192. //------------------------------------------------------
  193. #region Internal Properties
  194. #endregion Internal Properties
  195. //------------------------------------------------------
  196. //
  197. // Dependency Properties
  198. //
  199. //------------------------------------------------------
  200. #region Dependency Properties
  201. /// <summary>
  202. /// The DependencyProperty for the BevelBitmapEffect.BevelWidth property.
  203. /// </summary>
  204. public static readonly DependencyProperty BevelWidthProperty;
  205. /// <summary>
  206. /// The DependencyProperty for the BevelBitmapEffect.Relief property.
  207. /// </summary>
  208. public static readonly DependencyProperty ReliefProperty;
  209. /// <summary>
  210. /// The DependencyProperty for the BevelBitmapEffect.LightAngle property.
  211. /// </summary>
  212. public static readonly DependencyProperty LightAngleProperty;
  213. /// <summary>
  214. /// The DependencyProperty for the BevelBitmapEffect.Smoothness property.
  215. /// </summary>
  216. public static readonly DependencyProperty SmoothnessProperty;
  217. /// <summary>
  218. /// The DependencyProperty for the BevelBitmapEffect.EdgeProfile property.
  219. /// </summary>
  220. public static readonly DependencyProperty EdgeProfileProperty;
  221. #endregion Dependency Properties
  222. //------------------------------------------------------
  223. //
  224. // Internal Fields
  225. //
  226. //------------------------------------------------------
  227. #region Internal Fields
  228. internal const double c_BevelWidth = 5.0;
  229. internal const double c_Relief = 0.3;
  230. internal const double c_LightAngle = 135.0;
  231. internal const double c_Smoothness = 0.2;
  232. internal const EdgeProfile c_EdgeProfile = EdgeProfile.Linear;
  233. #endregion Internal Fields
  234. #region Constructors
  235. //------------------------------------------------------
  236. //
  237. // Constructors
  238. //
  239. //------------------------------------------------------
  240. static BevelBitmapEffect()
  241. {
  242. // We check our static default fields which are of type Freezable
  243. // to make sure that they are not mutable, otherwise we will throw
  244. // if these get touched by more than one thread in the lifetime
  245. // of your app. (Windows OS Bug #947272)
  246. //
  247. // Initializations
  248. Type typeofThis = typeof(BevelBitmapEffect);
  249. BevelWidthProperty =
  250. RegisterProperty("BevelWidth",
  251. typeof(double),
  252. typeofThis,
  253. 5.0,
  254. new PropertyChangedCallback(BevelWidthPropertyChanged),
  255. null,
  256. /* isIndependentlyAnimated = */ true,
  257. /* coerceValueCallback */ null);
  258. ReliefProperty =
  259. RegisterProperty("Relief",
  260. typeof(double),
  261. typeofThis,
  262. 0.3,
  263. new PropertyChangedCallback(ReliefPropertyChanged),
  264. null,
  265. /* isIndependentlyAnimated = */ true,
  266. /* coerceValueCallback */ null);
  267. LightAngleProperty =
  268. RegisterProperty("LightAngle",
  269. typeof(double),
  270. typeofThis,
  271. 135.0,
  272. new PropertyChangedCallback(LightAnglePropertyChanged),
  273. null,
  274. /* isIndependentlyAnimated = */ true,
  275. /* coerceValueCallback */ null);
  276. SmoothnessProperty =
  277. RegisterProperty("Smoothness",
  278. typeof(double),
  279. typeofThis,
  280. 0.2,
  281. new PropertyChangedCallback(SmoothnessPropertyChanged),
  282. null,
  283. /* isIndependentlyAnimated = */ true,
  284. /* coerceValueCallback */ null);
  285. EdgeProfileProperty =
  286. RegisterProperty("EdgeProfile",
  287. typeof(EdgeProfile),
  288. typeofThis,
  289. EdgeProfile.Linear,
  290. null,
  291. new ValidateValueCallback(System.Windows.Media.Effects.ValidateEnums.IsEdgeProfileValid),
  292. /* isIndependentlyAnimated = */ false,
  293. /* coerceValueCallback */ null);
  294. }
  295. #endregion Constructors
  296. }
  297. }