예제 #1
0
 public RenderTree Build(DOMTree domTree, StyleRules styleRules)
 {
     m_styleRules             = styleRules;
     m_renderTree             = new RenderTree();
     m_renderTree.RootElement = CreateElement(domTree.RootElement);
     return(m_renderTree);
 }
예제 #2
0
 private void LoadGame(string sourcePath)
 {
     m_sourcePath = sourcePath;
     m_domTree    = m_domTreeBuilder.Build(m_sourcePath);
     m_styleRules = m_styleRulesBuilder.Build(m_domTree);
     m_renderTree = m_renderTreeBuilder.Build(m_domTree, m_styleRules);
 }
예제 #3
0
 private void LoadGame(string sourcePath)
 {
     m_sourcePath = sourcePath;
     m_domTree = m_domTreeBuilder.Build(m_sourcePath);
     m_styleRules = m_styleRulesBuilder.Build(m_domTree);
     m_renderTree = m_renderTreeBuilder.Build(m_domTree, m_styleRules);
 }
예제 #4
0
        private static void ViewSetup()
        {
            // append to master CSS
            string css = "::mark(omni-hilite) { background-color: lime; } ::mark(omni-hiactual) { background-color: #2c63cb; color: white; }";

            byte[] cssbytes = Encoding.UTF8.GetBytes(css);
            SciterX.API.SciterAppendMasterCSS(cssbytes, (uint)cssbytes.Length);
            //SciterX.Use3264DLLNaming

            // access elements
            g_el_root      = App.AppWindow.RootElement;
            g_el_frameroot = g_el_root.SelectFirstById("frameph");
            g_el_frameroot.AttachEvh(Host.FrameEvh);
            g_el_homeroot = g_el_root.SelectFirstById("frame-home");
            g_el_homeroot = g_el_homeroot[0];

            DOMTree.Setup();
        }
예제 #5
0
 public StyleRules Build(DOMTree domTree)
 {
     m_styleRules = new StyleRules();
     GatherStyles(domTree.RootElement);
     return(m_styleRules);
 }