Exemplo n.º 1
0
        public static void Remove(Glyph pNode)
        {
            Debug.Assert(pNode != null);
            GlyphManager pManager = GlyphManager.privGetInstance();

            pManager.baseRemove(pNode);
        }
Exemplo n.º 2
0
        public static void Print()
        {
            GlyphManager pManager = GlyphManager.privGetInstance();

            Debug.Assert(pManager != null);

            Debug.WriteLine("------ Glyph Manager ------");
            pManager.basePrint();
        }
Exemplo n.º 3
0
        public static void Destroy()
        {
            // Get the instance
            GlyphManager pMan = GlyphManager.privGetInstance();

            #if (TRACK_DESTRUCTOR)
            Debug.WriteLine("--->GlyphMan.Destroy()");
            #endif
            pMan.baseDestroy();
        }
Exemplo n.º 4
0
        public static Glyph Add(Glyph.Name glyphName, int key, Texture.Name textName, float x, float y, float width, float height)
        {
            GlyphManager pManager = GlyphManager.privGetInstance();

            Glyph pNode = (Glyph)pManager.baseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(glyphName, key, textName, x, y, width, height);
            return(pNode);
        }
Exemplo n.º 5
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphManager pManager = GlyphManager.privGetInstance();

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

            Glyph pData = (Glyph)pManager.baseFind(pManager.pRefNode);

            return(pData);
        }