Example #1
0
        public static void Destroy()
        {
            // Get the instance
            GlyphManager pInstance = GlyphManager.PrivGetInstance();

            pInstance.BaseDestroy();
        }
Example #2
0
        public static void Remove(Glyph pNode)
        {
            Debug.Assert(pNode != null);
            GlyphManager pInstance = GlyphManager.PrivGetInstance();

            pInstance.BaseRemove(pNode);
        }
Example #3
0
        public static void Destroy()
        {
            GlyphManager pMan = GlyphManager.PrivGetInstance();

#if (TRACK_DESTRUCTOR)
            Debug.WriteLine("--->GlyphMan.Destroy()");
#endif
            pMan.BaseDestroy();
        }
Example #4
0
        public static void Dump()
        {
            GlyphManager pMan = GlyphManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            Debug.WriteLine("------ Glyph Manager ------");
            pMan.BaseDump();
        }
Example #5
0
        public static void Remove(Glyph pNode)
        {
            GlyphManager pMan = GlyphManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            Debug.Assert(pNode != null);
            pMan.BaseRemove(pNode);
        }
Example #6
0
        public static void Dump()
        {
            GlyphManager pInstance = GlyphManager.PrivGetInstance();

            Debug.Assert(pInstance != null);

            Debug.WriteLine("------ Glyph Manager ------");
            pInstance.PrintStats();
            pInstance.PrintNodes();
        }
Example #7
0
        public static Glyph Add(Glyph.Name name, int key, Texture.Name textName, float x, float y, float width, float height)
        {
            GlyphManager pInstance = GlyphManager.PrivGetInstance();

            Glyph pNode = (Glyph)pInstance.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name, key, textName, x, y, width, height);
            return(pNode);
        }
Example #8
0
        public static void PrintReport()
        {
            Debug.WriteLine("--------------------------------------------------------------------------------");
            Debug.WriteLine("------------------------------- Glyph Manager --------------------------------");
            Debug.WriteLine("--------------------------------------------------------------------------------");

            GlyphManager pMan = GlyphManager.PrivGetInstance();

            Debug.Assert(pMan != null);
            pMan.BasePrintReport();
        }
Example #9
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphManager pInstance = GlyphManager.PrivGetInstance();

            // Compare functions only compares two Nodes
            pInstance.pRefNode.name = name;
            pInstance.pRefNode.key  = key;

            Glyph pData = (Glyph)pInstance.BaseFind(pInstance.pRefNode);

            return(pData);
        }
Example #10
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphManager pMan = GlyphManager.PrivGetInstance();

            // Compare functions only compares two Nodes
            pMan.poNodeToCompare.name = name;
            pMan.poNodeToCompare.key  = key;

            Glyph pData = (Glyph)pMan.BaseFind(pMan.poNodeToCompare);

            return(pData);
        }
Example #11
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphManager pMan = GlyphManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.pRefNode.name = name;
            pMan.pRefNode.key  = key;

            Glyph pData = (Glyph)pMan.BaseFind(pMan.pRefNode);

            Debug.Assert(pData != null);

            return(pData);
        }