Class GuiSvgBuilder.ElementBuilder
java.lang.Object
com.render.api.gui.GuiSvgBuilder.ElementBuilder
- Enclosing class:
GuiSvgBuilder
Element-level builder used by
GuiSvgBuilder.element(String, Consumer).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an attribute to the element.Adds raw child markup to the element.Adds escaped text content to the element.
-
Constructor Details
-
ElementBuilder
public ElementBuilder()
-
-
Method Details
-
attr
Adds an attribute to the element.- Parameters:
name- attribute namevalue- attribute value- Returns:
- this element builder
-
text
Adds escaped text content to the element.- Parameters:
text- text content- Returns:
- this element builder
-
raw
Adds raw child markup to the element.- Parameters:
markup- raw SVG child markup- Returns:
- this element builder
-