Valadoc.MarkupWriter – valadoc Reference Manual
Packages
valadoc
Valadoc
MarkupWriter
MAX_COLUMN
WriteFunc
escape
MarkupWriter
break_line
check_column
content_inline_element
do_write
end_tag
inline_element
raw_text
set_wrap
simple_tag
start_tag
text
current_column
indent
last_was_tag
wrap
write
MarkupWriter
Object Hierarchy:
Valadoc.MarkupWriter
Valadoc.MarkupWriter
Valadoc.MarkupWriter
Description:
public
class
MarkupWriter
Writes markups and text to a file.
All known sub-classes:
GtkDocMarkupWriter
MarkupWriter
MarkupWriter
Namespace:
Valadoc
Package:
valadoc
Content:
Constants:
private
const
int
MAX_COLUMN
Delegates:
public
delegate
void
WriteFunc
(
string
text)
Writes text to a destination like a
GLib.StringBuilder
or a
GLib.FileStream
Static methods:
public
static
string
escape
(
string
txt)
Creation methods:
public
MarkupWriter
(
owned
WriteFunc
write,
bool
xml_declaration =
true
)
Initializes a new instance of the MarkupWriter
Methods:
private
void
break_line
()
private
void
check_column
(
string
name,
bool
end_tag =
false
)
protected
virtual
bool
content_inline_element
(
string
name)
protected
void
do_write
(
string
text)
public
unowned
MarkupWriter
end_tag
(
string
name)
Writes an end tag of a markup element to the file
protected
virtual
bool
inline_element
(
string
name)
public
unowned
MarkupWriter
raw_text
(
string
text)
Writes the specified string to the output stream
public
void
set_wrap
(
bool
wrap)
public
unowned
MarkupWriter
simple_tag
(
string
name,
string
[]? attributes =
null
)
Writes a simple tag (<name />) to the file
public
unowned
MarkupWriter
start_tag
(
string
name,
string
[]? attributes =
null
)
Writes an start tag of a markup element to the file
public
unowned
MarkupWriter
text
(
string
text)
Writes the specified string to the output stream
Fields:
protected
long
current_column
protected
int
indent
protected
bool
last_was_tag
private
bool
wrap
protected
WriteFunc
write