116 if (
nullptr !=
mNode)
132 if (
nullptr !=
mNode)
144 if (
nullptr !=
mNode)
148 void EditText::checkVertexSize()
160 unsigned int EditText::getMixedNativeAlpha(
float secondAlpha)
const
187 if (
nullptr !=
mNode)
206 if (
nullptr !=
mNode)
214 if (
mFont !=
nullptr)
241 if (
nullptr !=
mNode)
259 if (
nullptr !=
mNode)
306 if (
nullptr !=
mNode)
321 if (
nullptr !=
mNode)
336 if (
nullptr !=
mNode)
351 if (
nullptr !=
mNode)
359 if (
nullptr !=
mNode)
398 if (
nullptr !=
mNode)
409 if (
nullptr ==
mFont)
425 if (
nullptr ==
mFont)
445 if (
nullptr !=
mNode)
454 if (
nullptr !=
mNode)
460 if (
nullptr ==
mFont)
520 for (
const auto&
sym :
line.symbols)
524 colour =
sym.getColour() | (colour & 0xFF000000);
606 if (
nullptr !=
mNode)
627 if (
nullptr !=
mNode)
638 if (
nullptr !=
mNode)
647 void EditText::drawQuad(
701 void EditText::drawGlyph(
702 const RenderTargetInfo& _renderTargetInfo,
704 size_t& _vertexCount,
715 _textureRect.left += _textureRect.width() * leftClip / _vertexRect.width();
716 _vertexRect.left += leftClip;
726 if (rightClip > 0.0f)
730 _textureRect.right -= _textureRect.width() * rightClip / _vertexRect.width();
731 _vertexRect.right -= rightClip;
745 _textureRect.top += _textureRect.height() * topClip / _vertexRect.height();
746 _vertexRect.top += topClip;
756 if (bottomClip > 0.0f)
760 _textureRect.bottom -= _textureRect.height() * bottomClip / _vertexRect.height();
761 _vertexRect.bottom -= bottomClip;
774 ((_renderTargetInfo.pixScaleX * pix_left + _renderTargetInfo.hOffset) * 2.0f) - 1.0f,
775 -(((_renderTargetInfo.pixScaleY * pix_top + _renderTargetInfo.vOffset) * 2.0f) - 1.0f),
776 ((_renderTargetInfo.pixScaleX * (pix_left + _vertexRect.width()) + _renderTargetInfo.hOffset) * 2.0f) -
778 -(((_renderTargetInfo.pixScaleY * (pix_top + _vertexRect.height()) + _renderTargetInfo.vOffset) * 2.0f) -
781 drawQuad(_vertex, _vertexCount, vertexRect,
mNode->
getNodeDepth(), _textureRect, _colour);
#define MYGUI_ASSERT(exp, dest)
void setTextColour(const Colour &_value) override
VertexColourType mVertexFormat
size_t getTextSelectionEnd() const override
void setAlpha(float _value) override
uint32 mCurrentColourNative
void setFontName(std::string_view _value) override
void setSelectBackground(bool _normal) override
void setTextSelection(size_t _start, size_t _end) override
void setWordWrap(bool _value) override
void _setAlign(const IntSize &_oldsize) override
bool isVisibleCursor() const override
bool getShadow() const override
IntCoord getCursorCoord(size_t _position) const override
void _correctView() override
void setVisible(bool _visible) override
virtual const VectorLineInfo & getLineInfo() const
void setInvertSelected(bool _value) override
const Colour & getTextColour() const override
void setFontHeight(int _value) override
uint32 mInverseColourNative
const Colour & getShadowColour() const override
void setShadowColour(const Colour &_value) override
const UString & getCaption() const override
bool getInvertSelected() const override
void setCaption(const UString &_value) override
void setTextAlign(Align _value) override
void setStateData(IStateInfo *_data) override
int getFontHeight() const override
size_t getTextSelectionStart() const override
IntPoint getViewOffset() const override
void setVisibleCursor(bool _value) override
std::string_view getFontName() const override
bool getSelectBackground() const override
IntSize getTextSize() const override
size_t getCursorPosition() const override
void setViewOffset(const IntPoint &_point) override
Align getTextAlign() const override
void _updateView() override
void setShiftText(bool _value) override
uint32 mShadowColourNative
UString::utf32string mUtf32Caption
void createDrawItem(ITexture *_texture, ILayerNode *_node) override
void setCursorPosition(size_t _index) override
void setShadow(bool _value) override
void updateRawData() const
void destroyDrawItem() override
const Colour & getColour() const
static FontManager & getInstance()
int getAbsoluteLeft() const
const IntPoint & getAbsolutePosition() const
bool _checkOutside() const
ICroppedRectangle * mCroppedParent
int getAbsoluteTop() const
int _getViewWidth() const
int _getViewHeight() const
virtual ITexture * getTextureFont() const =0
virtual int getDefaultHeight() const =0
virtual const GlyphInfo * getGlyphInfo(Char _id) const =0
virtual float getNodeDepth() const =0
virtual void outOfDate(RenderItem *_item)=0
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
virtual const RenderTargetInfo & getInfo() const =0
const std::string & getResourceName() const
void addDrawItem(ISubWidget *_item, size_t _count)
bool getCurrentUpdate() const
IRenderTarget * getRenderTarget()
void reallockDrawItem(ISubWidget *_item, size_t _count)
void removeDrawItem(ISubWidget *_item)
Vertex * getCurrentVertexBuffer() const
void setLastVertexCount(size_t _count)
static RenderManager & getInstance()
size_t getCursorPosition(const IntPoint &_value) const
IntPoint getCursorPoint(size_t _position) const
void update(const UString::utf32string &_text, IFont *_font, int _height, Align _align, VertexColourType _format, int _maxWidth=-1)
const VectorLineInfo & getData() const
const IntSize & getViewSize() const
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
const utf32string & asUTF32() const
returns the current string in UTF-32 form within a utf32string
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
Convert Colour to 32-bit representation.
std::vector< LineInfo > VectorLineInfo
const size_t SIMPLETEXT_COUNT_VERTEX
types::TRect< float > FloatRect
TPoint< T > point() const