53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
////////////////////////////////////////////////////////////////////////////////////////////////////
 | 
						|
// NoesisGUI - http://www.noesisengine.com
 | 
						|
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
 | 
						|
////////////////////////////////////////////////////////////////////////////////////////////////////
 | 
						|
 | 
						|
 | 
						|
#ifndef __GUI_RENDEROPTIONS_H__
 | 
						|
#define __GUI_RENDEROPTIONS_H__
 | 
						|
 | 
						|
 | 
						|
#include <NsCore/Noesis.h>
 | 
						|
#include <NsGui/CoreApi.h>
 | 
						|
#include <NsCore/ReflectionDeclare.h>
 | 
						|
#include <NsCore/ReflectionDeclareEnum.h>
 | 
						|
 | 
						|
 | 
						|
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
 |