62 _buff[1].
y = v_bottom;
66 _buff[1].
v = t_bottom;
83 _buff[4].
y = v_bottom;
87 _buff[4].
v = t_bottom;
90 _buff[5].
y = v_bottom;
94 _buff[5].
v = t_bottom;
103 mCurrentColour(0x00FFFFFF),
104 mInverseColour(0x00000000),
105 mCurrentAlpha(0xFF000000),
107 mTextAlign(
Align::Default),
113 mBackgroundNormal(true),
117 mVisibleCursor(false),
122 mIsAddCursorWidth(true),
173 bool need_update =
true;
302 if (
mAlpha == _value)
return;
320 if (
mFont !=
nullptr)
479 if (
nullptr ==
mFont)
return 0;
519 if (
nullptr ==
mFont)
return;
544 if (
nullptr ==
mFont)
return;
557 size_t vertex_count = 0;
576 for (VectorLineInfo::const_iterator line=data.begin(); line!=data.end(); ++line)
579 for (VectorCharInfo::const_iterator sim=line->simbols.begin(); sim!=line->simbols.end(); ++sim)
583 colour = sim->getColour() | (colour & 0xFF000000);
584 colour_inverse = colour ^ 0x00FFFFFF;
596 colour_current = colour;
597 back_colour = colour | 0x00FFFFFF;
601 colour_current = colour_inverse;
602 back_colour = colour_inverse;
609 width = sim->getWidth();
612 int result_left = left;
613 int result_top = top;
614 int result_right = left + width;
615 int result_bottom = top + height;
617 float texture_width = texture_rect.
right - texture_rect.
left;
618 float texture_height = texture_rect.
bottom - texture_rect.
top;
632 texture_rect.
left += (texture_width * (float)(result_left - left) / (float)width);
648 texture_rect.
right -= (texture_width * (float)((left + width) - result_right) / (
float)width);
664 texture_rect.
top += (texture_height * (float)(result_top - top) / (float)height);
680 texture_rect.
bottom -= (texture_height * (float)((top + height) - result_bottom) / (
float)height);
689 float real_left = ((info.
pixScaleX * (float)(pix_left) + info.
hOffset) * 2) - 1;
690 float real_top = - (((info.
pixScaleY * (float)(pix_top) + info.
vOffset) * 2) - 1);
691 float real_right = ((info.
pixScaleX * (float)(pix_left + result_right - result_left) + info.
hOffset) * 2) - 1;
692 float real_bottom = - (((info.
pixScaleY * (float)(pix_top + result_bottom - result_top) + info.
vOffset) * 2) - 1);
698 DrawQuad(_vertex, real_left, real_top, real_right, real_bottom, vertex_z, back_colour,
699 background_current.
left, background_current.
top, background_current.
left, background_current.
top, vertex_count);
702 DrawQuad(_vertex, real_left, real_top, real_right, real_bottom, vertex_z, colour_current,
703 texture_rect.
left, texture_rect.
top, texture_rect.
right, texture_rect.
bottom, vertex_count);
729 int result_left = left;
730 int result_top = top;
731 int result_width = width;
732 int result_height = height;
748 float texture_width = texture_rect.
right - texture_rect.
left;
749 texture_rect.
left = texture_rect.
right - (texture_width * (float)result_width / (
float)width);
766 float texture_width = texture_rect.
right - texture_rect.
left;
767 texture_rect.
right = texture_rect.
left + (texture_width * (float)result_width / (
float)width);
785 float texture_height = texture_rect.
bottom - texture_rect.
top;
786 texture_rect.
top = texture_rect.
bottom - (texture_height * (float)result_height / (
float)height);
803 float texture_height = texture_rect.
bottom - texture_rect.
top;
804 texture_rect.
bottom = texture_rect.
top + (texture_height * (float)result_height / (
float)height);
813 float real_left = ((info.
pixScaleX * (float)(pix_left) + info.
hOffset) * 2) - 1;
814 float real_top = - (((info.
pixScaleY * (float)(pix_top) + info.
vOffset) * 2) - 1);
815 float real_right = ((info.
pixScaleX * (float)(pix_left + result_width) + info.
hOffset) * 2) - 1;
816 float real_bottom = - (((info.
pixScaleY * (float)(pix_top + result_height) + info.
vOffset) * 2) - 1);
818 DrawQuad(_vertex, real_left, real_top, real_right, real_bottom, vertex_z, colour_current | 0x00FFFFFF,
819 texture_rect.
left, texture_rect.
top, texture_rect.
right, texture_rect.
bottom, vertex_count);