コード例 #1
0
        public Paragraph(int index, float maxWidth)
        {
            Index      = index;
            Top        = index;
            BreakWidth = maxWidth;

            m_Glyphs = new GlyphList();
            m_Breaks = new BreakList();
        }
コード例 #2
0
        public void RefreshGlyphs(IGUIFont font, SpecialCharacterFlags flags)
        {
            GlyphList glyphs = new GlyphList();

            foreach (GlyphChar g in Glyphs)
            {
                glyphs.AddLast(font.GetGlyph(g.Char, flags));
            }

            Concurrency.LockFreeUpdate(ref m_Glyphs, glyphs);
            NeedsWordWrap = true;
        }