+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-namespace SlimDX\r
-{\r
- namespace DirectWrite\r
- {\r
- /// <summary>\r
- /// Properties describing the geometric measurement of an\r
- /// application-defined inline object.\r
- /// </summary>\r
- public value class InlineObjectMetrics\r
- {\r
- public:\r
- InlineObjectMetrics(float width, float height, float baseline, bool supportsSideways)\r
- {\r
- Width = width;\r
- Height = height;\r
- Baseline = baseline;\r
- SupportsSideways = supportsSideways;\r
- }\r
-\r
- /// <summary>\r
- /// Width of the inline object.\r
- /// </summary>\r
- property float Width;\r
-\r
- /// <summary>\r
- /// Height of the inline object as measured from top to bottom.\r
- /// </summary>\r
- property float Height;\r
-\r
- /// <summary>\r
- /// Distance from the top of the object to the baseline where it is lined up with the adjacent text.\r
- /// If the baseline is at the bottom, baseline simply equals height.\r
- /// </summary>\r
- property float Baseline;\r
-\r
- /// <summary>\r
- /// Flag indicating whether the object is to be placed upright or alongside the text baseline\r
- /// for vertical text.\r
- /// </summary>\r
- property bool SupportsSideways;\r
- };\r
- }\r
-}\r