Foundry.Markup

g Foundry.Markup Foundry.Markup GObject.Object GObject.Object GObject.Object->Foundry.Markup

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (contents, kind)

class

new_plaintext (message)

dup_contents ()

get_kind ()

to_string ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

contents

GLib.Bytes

r/w/co

kind

Foundry.MarkupKind

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.Markup(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Foundry.MarkupClass

classmethod new(contents, kind)
Parameters:
Return type:

Foundry.Markup

classmethod new_plaintext(message)
Parameters:

message (str) –

Return type:

Foundry.Markup

dup_contents()
Returns:

a GLib.Bytes containing the markup

Return type:

GLib.Bytes

Gets the contents bytes.

get_kind()
Return type:

Foundry.MarkupKind

to_string()
Returns:

length:

length of resulting string

Return type:

(str or None, length: int)

Property Details

Foundry.Markup.props.contents
Name:

contents

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.Markup.props.kind
Name:

kind

Type:

Foundry.MarkupKind

Default Value:

Foundry.MarkupKind.PLAINTEXT

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY