WEBELO
HTML Visualizer & DOM Library
Loading...
Searching...
No Matches
Text Class Reference
Inheritance diagram for Text:
CharacterData Node EventTarget CDATASection

Public Member Functions

DOMString wholeText ()
virtual void setdata (DOMString data) override
 Text (DOMString data="")
TextsplitText (unsigned long offset)
Public Member Functions inherited from CharacterData
unsigned long length ()
DOMString substringData (unsigned long offset, unsigned long count)
void appendData (DOMString data)
void insertData (unsigned long offset, DOMString data)
void deleteData (unsigned long offset, unsigned long count)
void replaceData (unsigned long offset, unsigned long count, DOMString data)
ElementpreviousElementSibling ()
ElementnextElementSibling ()
 CharacterData (Document *ownerdoc=nullptr, Node *parentnode=nullptr)
DOMString getdata ()
Public Member Functions inherited from Node
bool isConnected ()
virtual NodefirstChild ()
virtual NodelastChild ()
virtual NodepreviousSibling ()
virtual NodenextSibling ()
bool hasChildNodes () const
NodegetRootNode (bool composed=false)
void normalize ()
NodecloneNode (bool subtree)
 Node (node_type nodeType, DOMString nodeName, Document *ownerDocument=nullptr, Node *parentNode=nullptr)
unsigned long length ()
bool isEqualNode (Node *otherNode)
bool isSameNode (Node *otherNode)
unsigned short compareDocumentPosition (Node *other)
bool contains (Node *other)
virtual std::optional< DOMString > lookupPrefix (std::optional< DOMString > &namesp)
std::optional< DOMString > lookupNamespaceURI (std::optional< DOMString > &prefix)
bool isDefaultNamespace (std::optional< DOMString > &namesp)
NodeinsertBefore (Node *node, Node *child)
NodeappendChild (Node *node)
NodereplaceChild (Node *node, Node *child)
NoderemoveChild (Node *child)
virtual Nodeget_the_parent (Event *event)
virtual std::optional< DOMString > getnodeValue ()
virtual void setnodeValue (DOMString &val)
virtual std::optional< DOMString > gettextContent ()
virtual void settextContent (DOMString &val)
bool operator== (Node &other)
bool operator^ (Node *other)
unsigned long index ()
Public Member Functions inherited from EventTarget
void addEventListener (DOMString &type, EventListener *callback, std::variant< AddEventListenerOptions, bool > &options)
void removeEventListener (DOMString &type, EventListener *callback, bool capture)
void removeAllEventListeners ()
bool dispatchEvent (Event *event)
bool operator== (const EventTarget &a)
bool operator!= (const EventTarget &a)
virtual EventTargetget_the_parent (const Event *event)

Public Attributes

DOMString slot =""
HTMLSlotElementassignedSlot
 IMPORTANT SOMEWHERE in dispatch_event (slottable check)
Public Attributes inherited from Node
node_type nodeType
DOMString nodeName
USVString baseURI
DocumentownerDocument
NodeparentNode
ElementparentElement = nullptr
NodeList childNodes
DOMString nodeValue
DOMString textContent
Public Attributes inherited from EventTarget
bool has_activation_behavior = false
bool has_legacy_canceled_activation_behavior = false
bool has_legacy_pre_activation_behavior = false
std::function< void(Event *event)> activation_behavior_algorithm = [](Event* event) {}
std::function< void()> legacy_canceled_activation_behavior_algorithm = []() {}
std::function< void()> legacy_pre_activation_behavior_algorithm = []() {}
std::vector< event_listener * > event_listener_list = {}

Additional Inherited Members

Protected Attributes inherited from CharacterData
DOMString data

Detailed Description

Definition at line 1017 of file Webelo.cpp.

Constructor & Destructor Documentation

◆ Text()

Text::Text ( DOMString data = "")
inline

Definition at line 1027 of file Webelo.cpp.

Member Function Documentation

◆ setdata()

virtual void Text::setdata ( DOMString data)
inlineoverridevirtual

Reimplemented from CharacterData.

Definition at line 1023 of file Webelo.cpp.

◆ splitText()

Text * Text::splitText ( unsigned long offset)

Definition at line 4765 of file Webelo.cpp.

◆ wholeText()

DOMString Text::wholeText ( )

Definition at line 4769 of file Webelo.cpp.

Member Data Documentation

◆ assignedSlot

HTMLSlotElement* Text::assignedSlot

IMPORTANT SOMEWHERE in dispatch_event (slottable check)

Definition at line 1021 of file Webelo.cpp.

◆ slot

DOMString Text::slot =""

Definition at line 1020 of file Webelo.cpp.


The documentation for this class was generated from the following file: