//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef __GUI_RENDEROPTIONS_H__ #define __GUI_RENDEROPTIONS_H__ #include #include #include #include namespace Noesis { class DependencyObject; class DependencyProperty; enum BitmapScalingMode: int32_t; //////////////////////////////////////////////////////////////////////////////////////////////////// /// Provides options for controlling the rendering behavior of objects. /// /// You can use the attached properties of the RenderOptions class to specify options for the /// rendering of text and visual elements in your application. These options enable you to optimize /// rendering for speed or quality. /// /// https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.renderoptions //////////////////////////////////////////////////////////////////////////////////////////////////// struct NS_GUI_CORE_API RenderOptions { /// Dependency properties //@{ static const DependencyProperty* BitmapScalingModeProperty; //@} /// Gets or sets the *BitmapScalingMode* for a given DependencyObject //@{ static BitmapScalingMode GetBitmapScalingMode(const DependencyObject* obj); static void SetBitmapScalingMode(DependencyObject* obj, BitmapScalingMode bitmapScalingMode); //@} NS_DECLARE_REFLECTION(RenderOptions, NoParent) }; } #endif