Ejemplo n.º 1
0
Archivo: text.cs Proyecto: kwanboy/mcs
        // ctor/dtor
        //-------------------------------------------------
        //  ctor
        //-------------------------------------------------
        public text_layout(render_font font, float xscale, float yscale, float width, text_justify justify, word_wrapping wrap)
        {
            m_font          = font;
            m_xscale        = xscale;
            m_yscale        = yscale;
            m_width         = width;
            m_justify       = justify;
            m_wrap          = wrap;
            m_current_line  = null;
            m_last_break    = 0;
            m_text_position = 0;
            m_truncating    = false;


            invalidate_calculated_actual_width();
        }
Ejemplo n.º 2
0
Archivo: text.cs Proyecto: kwanboy/mcs
        //-------------------------------------------------
        //  ctor (move)
        //-------------------------------------------------
        text_layout(text_layout that)
        {
            m_font   = that.m_font;
            m_xscale = that.m_xscale;
            m_yscale = that.m_yscale;
            m_width  = that.m_width;
            m_calculated_actual_width = that.m_calculated_actual_width;
            m_justify       = that.m_justify;
            m_wrap          = that.m_wrap;
            m_lines         = new std.vector <line>(that.m_lines);
            m_current_line  = that.m_current_line;
            m_last_break    = that.m_last_break;
            m_text_position = that.m_text_position;
            m_truncating    = false;


            that.invalidate_calculated_actual_width();
        }