2
// IMarkdownViewBackend.cs
5
// Jérémie Laval <jeremie.laval@xamarin.com>
7
// Copyright (c) 2012 Xamarin, Inc.
10
namespace Xwt.Backends
13
public enum RichTextInlineStyle
21
public interface IRichTextViewBackend : IWidgetBackend
23
IRichTextBuffer CreateBuffer ();
25
// Display the passed buffer
26
void SetBuffer (IRichTextBuffer buffer);
29
public interface IRichTextBuffer
31
// Emit text using specified style mask
32
void EmitText (string text, RichTextInlineStyle style);
34
// Emit a header (h1, h2, ...)
35
void EmitStartHeader (int level);
36
void EmitEndHeader ();
38
// What's outputed afterwards will be a in new paragrapgh
39
void EmitStartParagraph (int indentLevel);
40
void EmitEndParagraph ();
44
// open-list, open-bullet, <above methods>, close-bullet, close-list
46
void EmitOpenBullet ();
47
void EmitCloseBullet ();
48
void EmitCloseList ();
50
// Emit a link opening the href URL with the mouseover title
51
void EmitStartLink (string href, string title);
54
// Emit code in a preformated blockquote
55
void EmitCodeBlock (string code);
57
// Emit an horizontal ruler
58
void EmitHorizontalRuler ();
61
public interface IRichTextViewEventSink : IWidgetEventSink
63
void OnNavigateToUrl (Uri uri);
66
public enum RichTextViewEvent