Class

TalkatuHtmlRenderer

since: 0.0

Description

abstract class Talkatu.HtmlRenderer : GObject.Object
{
  /* No available fields */
}
No description available.

Available since: 0.0

Hierarchy

hierarchy this TalkatuHtmlRenderer ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

talkatu_html_renderer_render

Renders the given html calling the TalkatuHtmlRendererClass functions as necessary.

since: 0.0

talkatu_html_renderer_reset

Resets renderer back to a clean state so that it can render new HTML.

since: 0.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

Class structure

struct TalkatuHtmlRendererClass {
  void (* reset) (
    TalkatuHtmlRenderer* renderer
  );
  void (* element_start) (
    TalkatuHtmlRenderer* renderer,
    const gchar* name,
    const gchar** attribute_names,
    const gchar** attribute_values
  );
  void (* element_finish) (
    TalkatuHtmlRenderer* renderer,
    const gchar* name
  );
  void (* text) (
    TalkatuHtmlRenderer* renderer,
    const gchar* text
  );
  void (* comment) (
    TalkatuHtmlRenderer* renderer,
    const gchar* comment
  );
  
}

An abstract class that will walk an HTML document and call the instance methods of the child class for each node that is found.

Class members
reset: void (* reset) ( TalkatuHtmlRenderer* renderer )

The method to call to reset the renderer. This allows the renderer to be reused.

element_start: void (* element_start) ( TalkatuHtmlRenderer* renderer, const gchar* name, const gchar** attribute_names, const gchar** attribute_values )

The method to call when an element is found. The attribute names and values are passed in as a NULL terminated array of strings.

element_finish: void (* element_finish) ( TalkatuHtmlRenderer* renderer, const gchar* name )

The method to call when all children of an element have been processed.

text: void (* text) ( TalkatuHtmlRenderer* renderer, const gchar* text )

The method to call when can text or character data is found.

comment: void (* comment) ( TalkatuHtmlRenderer* renderer, const gchar* comment )

The method to call when a comment is found. The passed in comment is the contents only and does not contain the start () tags.

Virtual methods

Talkatu.HtmlRendererClass.comment

The method to call when a comment is found. The passed in comment is the contents only and does not contain the start () tags.

since: 0.0

Talkatu.HtmlRendererClass.element_finish

The method to call when all children of an element have been processed.

since: 0.0

Talkatu.HtmlRendererClass.element_start

The method to call when an element is found. The attribute names and values are passed in as a NULL terminated array of strings.

since: 0.0

Talkatu.HtmlRendererClass.reset

Resets renderer back to a clean state so that it can render new HTML.

since: 0.0

Talkatu.HtmlRendererClass.text

The method to call when can text or character data is found.

since: 0.0