class EE::UI::UIHTMLListStyle¶
Overview¶
#include <uihtmlliststyle.hpp> class UIHTMLListStyle { public: // methods static bool isPrimitiveMarker(CSSListStyleType type); static bool isTextMarker(CSSListStyleType type); static String getTextMarkerString(CSSListStyleType type, int index); static void syncTextMarkerColor(Text& marker, const Color& color); static Vector2f getTextMarkerPosition(const Vector2f& screenPos, const Rectf& paddingPx, Float textWidth, Float fontSize, bool rtl = false, Float boxWidth = 0.f); static void drawPrimitiveMarker(CSSListStyleType type, const Vector2f& screenPos, const Rectf& paddingPx, const FontStyleConfig& style, bool rtl = false, Float boxWidth = 0.f); };
Detailed Documentation¶
Methods¶
static Vector2f getTextMarkerPosition(const Vector2f& screenPos, const Rectf& paddingPx, Float textWidth, Float fontSize, bool rtl = false, Float boxWidth = 0.f)
Markers are placed outside the content box on its inline-start side: left of the content in LTR, right of it in RTL. boxWidth is the pixel width of the list item box and is only needed when rtl is true.
static void drawPrimitiveMarker(CSSListStyleType type, const Vector2f& screenPos, const Rectf& paddingPx, const FontStyleConfig& style, bool rtl = false, Float boxWidth = 0.f)
Draws a primitive marker. In RTL the marker geometry is mirrored, so disclosure-closed triangles point toward the inline-end (left) side.