/// <summary> /// Init. /// </summary> protected RGraphics(RAdapter adapter, RRect initialClip) { ArgChecker.AssertArgNotNull(adapter, "global"); _adapter = adapter; _clipStack.Push(initialClip); }
/// <summary> /// Init. /// </summary> public CssParser(RAdapter adapter) { ArgChecker.AssertArgNotNull(adapter, "global"); _valueParser = new CssValueParser(adapter); _adapter = adapter; }
/// <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); }
/// <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; }