immarkdown

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearMarkdownFormalCallbackPool added in v1.2.0

func ClearMarkdownFormalCallbackPool()

func ClearMarkdownImageCallbackPool added in v1.2.0

func ClearMarkdownImageCallbackPool()

func ClearMarkdownLinkCallbackPool added in v1.2.0

func ClearMarkdownLinkCallbackPool()

func ClearMarkdownTooltipCallbackPool added in v1.2.0

func ClearMarkdownTooltipCallbackPool()

func DefaultMarkdownFormatCallback added in v1.2.0

func DefaultMarkdownFormatCallback(markdownFormatInfo_ MarkdownFormatInfo, start_ bool)

func DefaultMarkdownTooltipCallback added in v1.2.0

func DefaultMarkdownTooltipCallback(data_ MarkdownTooltipCallbackData)

func IsCharInsideWord

func IsCharInsideWord(c_ rune) bool

func Markdown

func Markdown(markdown_ string, markdownLength_ uint64, mdConfig_ MarkdownConfig)

func RenderLine

func RenderLine(markdown_ string, line_ *Line, textRegion_ *TextRegion, mdConfig_ MarkdownConfig)

func RenderLinkText

func RenderLinkText(self *TextRegion, text_ string, link_ Link, markdown_ string, mdConfig_ MarkdownConfig, linkHoverStart_ []string) bool

func RenderLinkTextWrapped

func RenderLinkTextWrapped(self *TextRegion, text_ string, link_ Link, markdown_ string, mdConfig_ MarkdownConfig, linkHoverStart_ []string)

func RenderLinkTextWrappedV

func RenderLinkTextWrappedV(self *TextRegion, text_ string, link_ Link, markdown_ string, mdConfig_ MarkdownConfig, linkHoverStart_ []string, bIndentToHere_ bool)

RenderLinkTextWrappedV parameter default value hint: bIndentToHere_: false

func RenderListTextWrapped

func RenderListTextWrapped(self *TextRegion, text_ string)

func RenderTextWrapped

func RenderTextWrapped(self *TextRegion, text_ string)

func RenderTextWrappedV

func RenderTextWrappedV(self *TextRegion, text_ string, bIndentToHere_ bool)

RenderTextWrappedV parameter default value hint: bIndentToHere_: false

func ResetIndent

func ResetIndent(self *TextRegion)

func Size added in v1.2.0

func Size(self *TextBlock) int32

func UnderLine

func UnderLine(col_ imgui.Color)

Types

type Emphasis

type Emphasis struct {
	CData *C.Emphasis
}

func NewEmphasisFromC

func NewEmphasisFromC[SRC any](cvalue SRC) *Emphasis

NewEmphasisFromC creates Emphasis from its C pointer. SRC ~= *C.Emphasis

func NewEmptyEmphasis added in v1.2.0

func NewEmptyEmphasis() *Emphasis

NewEmptyEmphasis creates Emphasis with its 0 value.

func (Emphasis) C

func (self Emphasis) C() (C.Emphasis, func())

C is like Handle but returns plain type instead of pointer.

func (*Emphasis) Handle

func (self *Emphasis) Handle() (result *C.Emphasis, fin func())

Handle returns C version of Emphasis and its finalizer func.

func (Emphasis) SetState

func (self Emphasis) SetState(v EmphasisState)

func (Emphasis) SetSym

func (self Emphasis) SetSym(v rune)

func (Emphasis) SetText

func (self Emphasis) SetText(v TextBlock)

func (*Emphasis) State

func (self *Emphasis) State() EmphasisState

func (*Emphasis) Sym

func (self *Emphasis) Sym() rune

func (*Emphasis) Text

func (self *Emphasis) Text() TextBlock

type EmphasisState

type EmphasisState int32

original name: EmphasisState

const (
	NONE   EmphasisState = 0
	LEFT   EmphasisState = 1
	MIDDLE EmphasisState = 2
	RIGHT  EmphasisState = 3
)

type Line

type Line struct {
	CData *C.Line
}

func NewEmptyLine added in v1.2.0

func NewEmptyLine() *Line

NewEmptyLine creates Line with its 0 value.

func NewLineFromC

func NewLineFromC[SRC any](cvalue SRC) *Line

NewLineFromC creates Line from its C pointer. SRC ~= *C.Line

func (Line) C

func (self Line) C() (C.Line, func())

C is like Handle but returns plain type instead of pointer.

func (*Line) EmphasisCount

func (self *Line) EmphasisCount() int32

func (*Line) Handle

func (self *Line) Handle() (result *C.Line, fin func())

Handle returns C version of Line and its finalizer func.

func (*Line) HeadingCount

func (self *Line) HeadingCount() int32

func (*Line) IsEmphasis

func (self *Line) IsEmphasis() bool

func (*Line) IsHeading

func (self *Line) IsHeading() bool

func (*Line) IsLeadingSpace

func (self *Line) IsLeadingSpace() bool

func (*Line) IsUnorderedListStart

func (self *Line) IsUnorderedListStart() bool

func (*Line) LastRenderPosition

func (self *Line) LastRenderPosition() int32

func (*Line) LeadSpaceCount

func (self *Line) LeadSpaceCount() int32

func (*Line) LineEnd

func (self *Line) LineEnd() int32

func (*Line) LineStart

func (self *Line) LineStart() int32

func (Line) SetEmphasisCount

func (self Line) SetEmphasisCount(v int32)

func (Line) SetHeadingCount

func (self Line) SetHeadingCount(v int32)

func (Line) SetIsEmphasis

func (self Line) SetIsEmphasis(v bool)

func (Line) SetIsHeading

func (self Line) SetIsHeading(v bool)

func (Line) SetIsLeadingSpace

func (self Line) SetIsLeadingSpace(v bool)

func (Line) SetIsUnorderedListStart

func (self Line) SetIsUnorderedListStart(v bool)

func (Line) SetLastRenderPosition

func (self Line) SetLastRenderPosition(v int32)

func (Line) SetLeadSpaceCount

func (self Line) SetLeadSpaceCount(v int32)

func (Line) SetLineEnd

func (self Line) SetLineEnd(v int32)

func (Line) SetLineStart

func (self Line) SetLineStart(v int32)
type Link struct {
	CData *C.Link
}
func NewEmptyLink() *Link

NewEmptyLink creates Link with its 0 value.

func NewLinkFromC

func NewLinkFromC[SRC any](cvalue SRC) *Link

NewLinkFromC creates Link from its C pointer. SRC ~= *C.Link

func (Link) C

func (self Link) C() (C.Link, func())

C is like Handle but returns plain type instead of pointer.

func (*Link) Handle

func (self *Link) Handle() (result *C.Link, fin func())

Handle returns C version of Link and its finalizer func.

func (*Link) IsImage

func (self *Link) IsImage() bool

func (*Link) Numbracketsopen

func (self *Link) Numbracketsopen() int32

func (Link) SetIsImage

func (self Link) SetIsImage(v bool)

func (Link) SetNumbracketsopen

func (self Link) SetNumbracketsopen(v int32)

func (Link) SetState

func (self Link) SetState(v LinkState)

func (Link) SetText

func (self Link) SetText(v TextBlock)

func (Link) SetUrl

func (self Link) SetUrl(v TextBlock)

func (*Link) State

func (self *Link) State() LinkState

func (*Link) Text

func (self *Link) Text() TextBlock

func (*Link) Url

func (self *Link) Url() TextBlock

type LinkState

type LinkState int32

original name: LinkState

const (
	NOLINK                            LinkState = 0
	HASSQUAREBRACKETOPEN              LinkState = 1
	HASSQUAREBRACKETS                 LinkState = 2
	HASSQUAREBRACKETSROUNDBRACKETOPEN LinkState = 3
)

type MarkdownConfig

type MarkdownConfig struct {
	CData *C.MarkdownConfig
}

func NewEmptyMarkdownConfig added in v1.2.0

func NewEmptyMarkdownConfig() *MarkdownConfig

NewEmptyMarkdownConfig creates MarkdownConfig with its 0 value.

func NewMarkdownConfigFromC

func NewMarkdownConfigFromC[SRC any](cvalue SRC) *MarkdownConfig

NewMarkdownConfigFromC creates MarkdownConfig from its C pointer. SRC ~= *C.MarkdownConfig

func (MarkdownConfig) C

func (self MarkdownConfig) C() (C.MarkdownConfig, func())

C is like Handle but returns plain type instead of pointer.

func (*MarkdownConfig) FormatCallback added in v1.2.0

func (self *MarkdownConfig) FormatCallback() *MarkdownFormalCallback

func (*MarkdownConfig) Handle

func (self *MarkdownConfig) Handle() (result *C.MarkdownConfig, fin func())

Handle returns C version of MarkdownConfig and its finalizer func.

func (*MarkdownConfig) HeadingFormats

func (self *MarkdownConfig) HeadingFormats() [3]MarkdownHeadingFormat

func (*MarkdownConfig) ImageCallback added in v1.2.0

func (self *MarkdownConfig) ImageCallback() *MarkdownImageCallback

func (*MarkdownConfig) LinkCallback added in v1.2.0

func (self *MarkdownConfig) LinkCallback() *MarkdownLinkCallback

func (*MarkdownConfig) LinkIcon

func (self *MarkdownConfig) LinkIcon() string

func (MarkdownConfig) SetFormatCallback added in v1.2.0

func (self MarkdownConfig) SetFormatCallback(v *MarkdownFormalCallback)

func (MarkdownConfig) SetHeadingFormats

func (self MarkdownConfig) SetHeadingFormats(v *[3]MarkdownHeadingFormat)

func (MarkdownConfig) SetImageCallback added in v1.2.0

func (self MarkdownConfig) SetImageCallback(v *MarkdownImageCallback)

func (MarkdownConfig) SetLinkCallback added in v1.2.0

func (self MarkdownConfig) SetLinkCallback(v *MarkdownLinkCallback)

func (MarkdownConfig) SetLinkIcon

func (self MarkdownConfig) SetLinkIcon(v string)

func (MarkdownConfig) SetTooltipCallback added in v1.2.0

func (self MarkdownConfig) SetTooltipCallback(v *MarkdownTooltipCallback)

func (MarkdownConfig) SetUserData

func (self MarkdownConfig) SetUserData(v uintptr)

func (*MarkdownConfig) TooltipCallback added in v1.2.0

func (self *MarkdownConfig) TooltipCallback() *MarkdownTooltipCallback

func (*MarkdownConfig) UserData

func (self *MarkdownConfig) UserData() uintptr

type MarkdownFormalCallback added in v1.2.0

type MarkdownFormalCallback func(markdownFormatInfo_ *MarkdownFormatInfo, start_ bool)

func NewMarkdownFormalCallbackFromC added in v1.2.0

func NewMarkdownFormalCallbackFromC(cvalue *C.MarkdownFormalCallback) *MarkdownFormalCallback

func (MarkdownFormalCallback) Handle added in v1.2.0

func (c MarkdownFormalCallback) Handle() (*C.MarkdownFormalCallback, func())

type MarkdownFormatInfo

type MarkdownFormatInfo struct {
	CData *C.MarkdownFormatInfo
}

func NewEmptyMarkdownFormatInfo added in v1.2.0

func NewEmptyMarkdownFormatInfo() *MarkdownFormatInfo

NewEmptyMarkdownFormatInfo creates MarkdownFormatInfo with its 0 value.

func NewMarkdownFormatInfoFromC

func NewMarkdownFormatInfoFromC[SRC any](cvalue SRC) *MarkdownFormatInfo

NewMarkdownFormatInfoFromC creates MarkdownFormatInfo from its C pointer. SRC ~= *C.MarkdownFormatInfo

func (MarkdownFormatInfo) C

func (self MarkdownFormatInfo) C() (C.MarkdownFormatInfo, func())

C is like Handle but returns plain type instead of pointer.

func (*MarkdownFormatInfo) Config

func (self *MarkdownFormatInfo) Config() *MarkdownConfig

func (*MarkdownFormatInfo) Handle

func (self *MarkdownFormatInfo) Handle() (result *C.MarkdownFormatInfo, fin func())

Handle returns C version of MarkdownFormatInfo and its finalizer func.

func (*MarkdownFormatInfo) ItemHovered

func (self *MarkdownFormatInfo) ItemHovered() bool

func (*MarkdownFormatInfo) Level

func (self *MarkdownFormatInfo) Level() int32

func (MarkdownFormatInfo) SetConfig

func (self MarkdownFormatInfo) SetConfig(v *MarkdownConfig)

func (MarkdownFormatInfo) SetItemHovered

func (self MarkdownFormatInfo) SetItemHovered(v bool)

func (MarkdownFormatInfo) SetLevel

func (self MarkdownFormatInfo) SetLevel(v int32)

func (MarkdownFormatInfo) SetText added in v1.4.0

func (self MarkdownFormatInfo) SetText(v string)

func (MarkdownFormatInfo) SetTextLength added in v1.4.0

func (self MarkdownFormatInfo) SetTextLength(v int32)

func (MarkdownFormatInfo) SetType

func (self MarkdownFormatInfo) SetType(v MarkdownFormatType)

func (*MarkdownFormatInfo) Text added in v1.4.0

func (self *MarkdownFormatInfo) Text() string

func (*MarkdownFormatInfo) TextLength added in v1.4.0

func (self *MarkdownFormatInfo) TextLength() int32

func (*MarkdownFormatInfo) Type

type MarkdownFormatType

type MarkdownFormatType int32

original name: MarkdownFormatType

const (
	NORMALTEXT    MarkdownFormatType = 0
	HEADING       MarkdownFormatType = 1
	UNORDEREDLIST MarkdownFormatType = 2
	LINK          MarkdownFormatType = 3
	EMPHASIS      MarkdownFormatType = 4
)

type MarkdownHeadingFormat

type MarkdownHeadingFormat struct {
	CData *C.MarkdownHeadingFormat
}

func NewEmptyMarkdownHeadingFormat added in v1.2.0

func NewEmptyMarkdownHeadingFormat() *MarkdownHeadingFormat

NewEmptyMarkdownHeadingFormat creates MarkdownHeadingFormat with its 0 value.

func NewMarkdownHeadingFormatFromC

func NewMarkdownHeadingFormatFromC[SRC any](cvalue SRC) *MarkdownHeadingFormat

NewMarkdownHeadingFormatFromC creates MarkdownHeadingFormat from its C pointer. SRC ~= *C.MarkdownHeadingFormat

func (MarkdownHeadingFormat) C

func (self MarkdownHeadingFormat) C() (C.MarkdownHeadingFormat, func())

C is like Handle but returns plain type instead of pointer.

func (*MarkdownHeadingFormat) Font

func (self *MarkdownHeadingFormat) Font() *imgui.Font

func (*MarkdownHeadingFormat) Handle

func (self *MarkdownHeadingFormat) Handle() (result *C.MarkdownHeadingFormat, fin func())

Handle returns C version of MarkdownHeadingFormat and its finalizer func.

func (*MarkdownHeadingFormat) Separator

func (self *MarkdownHeadingFormat) Separator() bool

func (MarkdownHeadingFormat) SetFont

func (self MarkdownHeadingFormat) SetFont(v *imgui.Font)

func (MarkdownHeadingFormat) SetSeparator

func (self MarkdownHeadingFormat) SetSeparator(v bool)

type MarkdownImageCallback added in v1.2.0

type MarkdownImageCallback func(data MarkdownLinkCallbackData) MarkdownImageData

func NewMarkdownImageCallbackFromC added in v1.2.0

func NewMarkdownImageCallbackFromC(cvalue *C.MarkdownImageCallback) *MarkdownImageCallback

func (MarkdownImageCallback) Handle added in v1.2.0

func (c MarkdownImageCallback) Handle() (*C.MarkdownImageCallback, func())

type MarkdownImageData

type MarkdownImageData struct {
	CData *C.MarkdownImageData
}

func NewEmptyMarkdownImageData added in v1.2.0

func NewEmptyMarkdownImageData() *MarkdownImageData

NewEmptyMarkdownImageData creates MarkdownImageData with its 0 value.

func NewMarkdownImageDataFromC

func NewMarkdownImageDataFromC[SRC any](cvalue SRC) *MarkdownImageData

NewMarkdownImageDataFromC creates MarkdownImageData from its C pointer. SRC ~= *C.MarkdownImageData

func (*MarkdownImageData) Bgcol added in v1.4.0

func (self *MarkdownImageData) Bgcol() imgui.Vec4

func (*MarkdownImageData) Bordercol

func (self *MarkdownImageData) Bordercol() imgui.Vec4

func (MarkdownImageData) C

func (self MarkdownImageData) C() (C.MarkdownImageData, func())

C is like Handle but returns plain type instead of pointer.

func (*MarkdownImageData) Handle

func (self *MarkdownImageData) Handle() (result *C.MarkdownImageData, fin func())

Handle returns C version of MarkdownImageData and its finalizer func.

func (*MarkdownImageData) IsValid

func (self *MarkdownImageData) IsValid() bool

func (MarkdownImageData) SetBgcol added in v1.4.0

func (self MarkdownImageData) SetBgcol(v imgui.Vec4)

func (MarkdownImageData) SetBordercol

func (self MarkdownImageData) SetBordercol(v imgui.Vec4)

func (MarkdownImageData) SetIsValid

func (self MarkdownImageData) SetIsValid(v bool)

func (MarkdownImageData) SetSize

func (self MarkdownImageData) SetSize(v imgui.Vec2)

func (MarkdownImageData) SetTintcol

func (self MarkdownImageData) SetTintcol(v imgui.Vec4)

func (MarkdownImageData) SetUseLinkCallback

func (self MarkdownImageData) SetUseLinkCallback(v bool)

func (MarkdownImageData) SetUsertextureid

func (self MarkdownImageData) SetUsertextureid(v imgui.TextureID)

func (MarkdownImageData) SetUv0

func (self MarkdownImageData) SetUv0(v imgui.Vec2)

func (MarkdownImageData) SetUv1

func (self MarkdownImageData) SetUv1(v imgui.Vec2)

func (*MarkdownImageData) Size

func (self *MarkdownImageData) Size() imgui.Vec2

func (*MarkdownImageData) Tintcol

func (self *MarkdownImageData) Tintcol() imgui.Vec4

func (*MarkdownImageData) UseLinkCallback

func (self *MarkdownImageData) UseLinkCallback() bool

func (*MarkdownImageData) Usertextureid

func (self *MarkdownImageData) Usertextureid() imgui.TextureID

func (*MarkdownImageData) Uv0

func (self *MarkdownImageData) Uv0() imgui.Vec2

func (*MarkdownImageData) Uv1

func (self *MarkdownImageData) Uv1() imgui.Vec2

type MarkdownLinkCallback added in v1.2.0

type MarkdownLinkCallback func(data MarkdownLinkCallbackData)

func NewMarkdownLinkCallbackFromC added in v1.2.0

func NewMarkdownLinkCallbackFromC(cvalue *C.MarkdownLinkCallback) *MarkdownLinkCallback

func (MarkdownLinkCallback) Handle added in v1.2.0

func (c MarkdownLinkCallback) Handle() (*C.MarkdownLinkCallback, func())

type MarkdownLinkCallbackData

type MarkdownLinkCallbackData struct {
	CData *C.MarkdownLinkCallbackData
}

func NewEmptyMarkdownLinkCallbackData added in v1.2.0

func NewEmptyMarkdownLinkCallbackData() *MarkdownLinkCallbackData

NewEmptyMarkdownLinkCallbackData creates MarkdownLinkCallbackData with its 0 value.

func NewMarkdownLinkCallbackDataFromC

func NewMarkdownLinkCallbackDataFromC[SRC any](cvalue SRC) *MarkdownLinkCallbackData

NewMarkdownLinkCallbackDataFromC creates MarkdownLinkCallbackData from its C pointer. SRC ~= *C.MarkdownLinkCallbackData

func (MarkdownLinkCallbackData) C

C is like Handle but returns plain type instead of pointer.

func (*MarkdownLinkCallbackData) Handle

func (self *MarkdownLinkCallbackData) Handle() (result *C.MarkdownLinkCallbackData, fin func())

Handle returns C version of MarkdownLinkCallbackData and its finalizer func.

func (*MarkdownLinkCallbackData) IsImage

func (self *MarkdownLinkCallbackData) IsImage() bool
func (self *MarkdownLinkCallbackData) Link() string

func (*MarkdownLinkCallbackData) LinkLength

func (self *MarkdownLinkCallbackData) LinkLength() int32

func (MarkdownLinkCallbackData) SetIsImage

func (self MarkdownLinkCallbackData) SetIsImage(v bool)
func (self MarkdownLinkCallbackData) SetLink(v string)

func (MarkdownLinkCallbackData) SetLinkLength

func (self MarkdownLinkCallbackData) SetLinkLength(v int32)

func (MarkdownLinkCallbackData) SetText

func (self MarkdownLinkCallbackData) SetText(v string)

func (MarkdownLinkCallbackData) SetTextLength

func (self MarkdownLinkCallbackData) SetTextLength(v int32)

func (MarkdownLinkCallbackData) SetUserData

func (self MarkdownLinkCallbackData) SetUserData(v uintptr)

func (*MarkdownLinkCallbackData) Text

func (self *MarkdownLinkCallbackData) Text() string

func (*MarkdownLinkCallbackData) TextLength

func (self *MarkdownLinkCallbackData) TextLength() int32

func (*MarkdownLinkCallbackData) UserData

func (self *MarkdownLinkCallbackData) UserData() uintptr

type MarkdownTooltipCallback added in v1.2.0

type MarkdownTooltipCallback func(data MarkdownTooltipCallbackData)

func NewMarkdownTooltipCallbackFromC added in v1.2.0

func NewMarkdownTooltipCallbackFromC(cvalue *C.MarkdownTooltipCallback) *MarkdownTooltipCallback

func (MarkdownTooltipCallback) Handle added in v1.2.0

func (c MarkdownTooltipCallback) Handle() (*C.MarkdownTooltipCallback, func())

type MarkdownTooltipCallbackData

type MarkdownTooltipCallbackData struct {
	CData *C.MarkdownTooltipCallbackData
}

func NewEmptyMarkdownTooltipCallbackData added in v1.2.0

func NewEmptyMarkdownTooltipCallbackData() *MarkdownTooltipCallbackData

NewEmptyMarkdownTooltipCallbackData creates MarkdownTooltipCallbackData with its 0 value.

func NewMarkdownTooltipCallbackDataFromC

func NewMarkdownTooltipCallbackDataFromC[SRC any](cvalue SRC) *MarkdownTooltipCallbackData

NewMarkdownTooltipCallbackDataFromC creates MarkdownTooltipCallbackData from its C pointer. SRC ~= *C.MarkdownTooltipCallbackData

func (MarkdownTooltipCallbackData) C

C is like Handle but returns plain type instead of pointer.

func (*MarkdownTooltipCallbackData) Handle

func (self *MarkdownTooltipCallbackData) Handle() (result *C.MarkdownTooltipCallbackData, fin func())

Handle returns C version of MarkdownTooltipCallbackData and its finalizer func.

func (*MarkdownTooltipCallbackData) LinkData

func (*MarkdownTooltipCallbackData) LinkIcon

func (self *MarkdownTooltipCallbackData) LinkIcon() string

func (MarkdownTooltipCallbackData) SetLinkData

func (MarkdownTooltipCallbackData) SetLinkIcon

func (self MarkdownTooltipCallbackData) SetLinkIcon(v string)

type TextBlock

type TextBlock struct {
	CData *C.TextBlock
}

func NewEmptyTextBlock added in v1.2.0

func NewEmptyTextBlock() *TextBlock

NewEmptyTextBlock creates TextBlock with its 0 value.

func NewTextBlockFromC

func NewTextBlockFromC[SRC any](cvalue SRC) *TextBlock

NewTextBlockFromC creates TextBlock from its C pointer. SRC ~= *C.TextBlock

func (TextBlock) C

func (self TextBlock) C() (C.TextBlock, func())

C is like Handle but returns plain type instead of pointer.

func (*TextBlock) Handle

func (self *TextBlock) Handle() (result *C.TextBlock, fin func())

Handle returns C version of TextBlock and its finalizer func.

func (TextBlock) SetStart

func (self TextBlock) SetStart(v int32)

func (TextBlock) SetStop

func (self TextBlock) SetStop(v int32)

func (*TextBlock) Start

func (self *TextBlock) Start() int32

func (*TextBlock) Stop

func (self *TextBlock) Stop() int32

type TextRegion

type TextRegion struct {
	CData *C.TextRegion
}

func NewEmptyTextRegion added in v1.2.0

func NewEmptyTextRegion() *TextRegion

NewEmptyTextRegion creates TextRegion with its 0 value.

func NewTextRegion

func NewTextRegion() *TextRegion

func NewTextRegionFromC

func NewTextRegionFromC[SRC any](cvalue SRC) *TextRegion

NewTextRegionFromC creates TextRegion from its C pointer. SRC ~= *C.TextRegion

func (TextRegion) C

func (self TextRegion) C() (C.TextRegion, func())

C is like Handle but returns plain type instead of pointer.

func (*TextRegion) Destroy

func (self *TextRegion) Destroy()

func (*TextRegion) Handle

func (self *TextRegion) Handle() (result *C.TextRegion, fin func())

Handle returns C version of TextRegion and its finalizer func.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL