示例#1
0
        /// <summary>
        /// Init.
        /// </summary>
        protected RGraphics(RAdapter adapter, RRect initialClip)
        {
            ArgChecker.AssertArgNotNull(adapter, "global");

            _adapter = adapter;
            _clipStack.Push(initialClip);
        }
示例#2
0
        /// <summary>
        /// Init.
        /// </summary>
        public CssParser(RAdapter adapter)
        {
            ArgChecker.AssertArgNotNull(adapter, "global");

            _valueParser = new CssValueParser(adapter);
            _adapter = adapter;
        }
示例#3
0
 /// <summary>
 /// Parse the given stylesheet to <see cref="CssData"/> object.<br/>
 /// If <paramref name="combineWithDefault"/> is true the parsed css blocks are added to the
 /// default css data (as defined by W3), merged if class name already exists. If false only the data in the given stylesheet is returned.
 /// </summary>
 /// <seealso cref="http://www.w3.org/TR/CSS21/sample.html"/>
 /// <param name="adapter">Platform adapter</param>
 /// <param name="stylesheet">the stylesheet source to parse</param>
 /// <param name="combineWithDefault">true - combine the parsed css data with default css data, false - return only the parsed css data</param>
 /// <returns>the parsed css data</returns>
 public static CssData Parse(RAdapter adapter, string stylesheet, bool combineWithDefault = true)
 {
     CssParser parser = new CssParser(adapter);
     return parser.ParseStyleSheet(stylesheet, combineWithDefault);
 }
示例#4
0
 /// <summary>
 /// Init control with platform adapter.
 /// </summary>
 protected RControl(RAdapter adapter)
 {
     ArgChecker.AssertArgNotNull(adapter, "adapter");
     _adapter = adapter;
 }
        /// <summary>
        /// Init.
        /// </summary>
        public FontsHandler(RAdapter adapter)
        {
            ArgChecker.AssertArgNotNull(adapter, "global");

            _adapter = adapter;
        }