Documentation
¶
Overview ¶
Package text provides Go bindings for android.graphics.text.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type LineBreakConfig
- func (m *LineBreakConfig) DescribeContents() (int32, error)
- func (m *LineBreakConfig) Equals(arg0 *jni.Object) (bool, error)
- func (m *LineBreakConfig) GetHyphenation() (int32, error)
- func (m *LineBreakConfig) GetLineBreakStyle() (int32, error)
- func (m *LineBreakConfig) GetLineBreakWordStyle() (int32, error)
- func (m *LineBreakConfig) HashCode() (int32, error)
- func (m *LineBreakConfig) Merge(arg0 *jni.Object) (*jni.Object, error)
- func (m *LineBreakConfig) ToString() (string, error)
- func (m *LineBreakConfig) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type LineBreakConfigBuilder
- func (m *LineBreakConfigBuilder) Build() (*jni.Object, error)
- func (m *LineBreakConfigBuilder) Merge(arg0 *jni.Object) (*jni.Object, error)
- func (m *LineBreakConfigBuilder) SetHyphenation(arg0 int32) (*jni.Object, error)
- func (m *LineBreakConfigBuilder) SetLineBreakStyle(arg0 int32) (*jni.Object, error)
- func (m *LineBreakConfigBuilder) SetLineBreakWordStyle(arg0 int32) (*jni.Object, error)
- type LineBreaker
- type LineBreakerBuilder
- func (m *LineBreakerBuilder) Build() (*jni.Object, error)
- func (m *LineBreakerBuilder) SetBreakStrategy(arg0 int32) (*jni.Object, error)
- func (m *LineBreakerBuilder) SetHyphenationFrequency(arg0 int32) (*jni.Object, error)
- func (m *LineBreakerBuilder) SetIndents(arg0 *jni.Object) (*jni.Object, error)
- func (m *LineBreakerBuilder) SetJustificationMode(arg0 int32) (*jni.Object, error)
- func (m *LineBreakerBuilder) SetUseBoundsForWidth(arg0 bool) (*jni.Object, error)
- type LineBreakerParagraphConstraints
- func (m *LineBreakerParagraphConstraints) GetDefaultTabStop() (float32, error)
- func (m *LineBreakerParagraphConstraints) GetFirstWidth() (float32, error)
- func (m *LineBreakerParagraphConstraints) GetFirstWidthLineCount() (int32, error)
- func (m *LineBreakerParagraphConstraints) GetTabStops() (*jni.Object, error)
- func (m *LineBreakerParagraphConstraints) GetWidth() (float32, error)
- func (m *LineBreakerParagraphConstraints) SetIndent(arg0 float32, arg1 int32) error
- func (m *LineBreakerParagraphConstraints) SetTabStops(arg0 *jni.Object, arg1 float32) error
- func (m *LineBreakerParagraphConstraints) SetWidth(arg0 float32) error
- type LineBreakerResult
- func (m *LineBreakerResult) GetEndLineHyphenEdit(arg0 int32) (int32, error)
- func (m *LineBreakerResult) GetLineAscent(arg0 int32) (float32, error)
- func (m *LineBreakerResult) GetLineBreakOffset(arg0 int32) (int32, error)
- func (m *LineBreakerResult) GetLineCount() (int32, error)
- func (m *LineBreakerResult) GetLineDescent(arg0 int32) (float32, error)
- func (m *LineBreakerResult) GetLineWidth(arg0 int32) (float32, error)
- func (m *LineBreakerResult) GetStartLineHyphenEdit(arg0 int32) (int32, error)
- func (m *LineBreakerResult) HasLineTab(arg0 int32) (bool, error)
- type MeasuredText
- func (m *MeasuredText) GetBounds(arg0 int32, arg1 int32, arg2 *jni.Object) error
- func (m *MeasuredText) GetCharWidthAt(arg0 int32) (float32, error)
- func (m *MeasuredText) GetFontMetricsInt(arg0 int32, arg1 int32, arg2 *jni.Object) error
- func (m *MeasuredText) GetWidth(arg0 int32, arg1 int32) (float32, error)
- type MeasuredTextBuilder
- func (m *MeasuredTextBuilder) AppendReplacementRun(arg0 *jni.Object, arg1 int32, arg2 float32) (*jni.Object, error)
- func (m *MeasuredTextBuilder) AppendStyleRun3_1(arg0 *jni.Object, arg1 int32, arg2 bool) (*jni.Object, error)
- func (m *MeasuredTextBuilder) AppendStyleRun4(arg0 *jni.Object, arg1 *jni.Object, arg2 int32, arg3 bool) (*jni.Object, error)
- func (m *MeasuredTextBuilder) Build() (*jni.Object, error)
- func (m *MeasuredTextBuilder) SetComputeHyphenation1(arg0 bool) (*jni.Object, error)
- func (m *MeasuredTextBuilder) SetComputeHyphenation1_1(arg0 int32) (*jni.Object, error)
- func (m *MeasuredTextBuilder) SetComputeLayout(arg0 bool) (*jni.Object, error)
- type PositionedGlyphs
- func (m *PositionedGlyphs) Equals(arg0 *jni.Object) (bool, error)
- func (m *PositionedGlyphs) GetAdvance() (float32, error)
- func (m *PositionedGlyphs) GetAscent() (float32, error)
- func (m *PositionedGlyphs) GetDescent() (float32, error)
- func (m *PositionedGlyphs) GetFakeBold(arg0 int32) (bool, error)
- func (m *PositionedGlyphs) GetFakeItalic(arg0 int32) (bool, error)
- func (m *PositionedGlyphs) GetFont(arg0 int32) (*jni.Object, error)
- func (m *PositionedGlyphs) GetGlyphId(arg0 int32) (int32, error)
- func (m *PositionedGlyphs) GetGlyphX(arg0 int32) (float32, error)
- func (m *PositionedGlyphs) GetGlyphY(arg0 int32) (float32, error)
- func (m *PositionedGlyphs) GetItalicOverride(arg0 int32) (float32, error)
- func (m *PositionedGlyphs) GetOffsetX() (float32, error)
- func (m *PositionedGlyphs) GetOffsetY() (float32, error)
- func (m *PositionedGlyphs) GetWeightOverride(arg0 int32) (float32, error)
- func (m *PositionedGlyphs) GlyphCount() (int32, error)
- func (m *PositionedGlyphs) HashCode() (int32, error)
- func (m *PositionedGlyphs) ToString() (string, error)
- type RunShaper
Constants ¶
const ( HyphenationModeFast = consts.HyphenationModeFast HyphenationModeNone = consts.HyphenationModeNone HyphenationModeNormal = consts.HyphenationModeNormal Creator = consts.Creator HyphenationDisabled = consts.HyphenationDisabled HyphenationEnabled = consts.HyphenationEnabled HyphenationUnspecified = consts.HyphenationUnspecified LineBreakStyleAuto = consts.LineBreakStyleAuto LineBreakStyleLoose = consts.LineBreakStyleLoose LineBreakStyleNone = consts.LineBreakStyleNone LineBreakStyleNormal = consts.LineBreakStyleNormal LineBreakStyleNoBreak = consts.LineBreakStyleNoBreak LineBreakStyleStrict = consts.LineBreakStyleStrict LineBreakStyleUnspecified = consts.LineBreakStyleUnspecified LineBreakWordStyleAuto = consts.LineBreakWordStyleAuto LineBreakWordStyleNone = consts.LineBreakWordStyleNone LineBreakWordStylePhrase = consts.LineBreakWordStylePhrase LineBreakWordStyleUnspecified = consts.LineBreakWordStyleUnspecified BreakStrategyBalanced = consts.BreakStrategyBalanced BreakStrategyHighQuality = consts.BreakStrategyHighQuality BreakStrategySimple = consts.BreakStrategySimple HyphenationFrequencyFull = consts.HyphenationFrequencyFull HyphenationFrequencyNone = consts.HyphenationFrequencyNone HyphenationFrequencyNormal = consts.HyphenationFrequencyNormal JustificationModeInterCharacter = consts.JustificationModeInterCharacter JustificationModeInterWord = consts.JustificationModeInterWord JustificationModeNone = consts.JustificationModeNone )
const (
NoOverride = consts.NoOverride
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LineBreakConfig ¶
LineBreakConfig wraps android.graphics.text.LineBreakConfig.
func (*LineBreakConfig) DescribeContents ¶
func (m *LineBreakConfig) DescribeContents() (int32, error)
DescribeContents calls android.graphics.text.LineBreakConfig.describeContents.
func (*LineBreakConfig) Equals ¶
func (m *LineBreakConfig) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.graphics.text.LineBreakConfig.equals.
func (*LineBreakConfig) GetHyphenation ¶
func (m *LineBreakConfig) GetHyphenation() (int32, error)
GetHyphenation calls android.graphics.text.LineBreakConfig.getHyphenation.
func (*LineBreakConfig) GetLineBreakStyle ¶
func (m *LineBreakConfig) GetLineBreakStyle() (int32, error)
GetLineBreakStyle calls android.graphics.text.LineBreakConfig.getLineBreakStyle.
func (*LineBreakConfig) GetLineBreakWordStyle ¶
func (m *LineBreakConfig) GetLineBreakWordStyle() (int32, error)
GetLineBreakWordStyle calls android.graphics.text.LineBreakConfig.getLineBreakWordStyle.
func (*LineBreakConfig) HashCode ¶
func (m *LineBreakConfig) HashCode() (int32, error)
HashCode calls android.graphics.text.LineBreakConfig.hashCode.
func (*LineBreakConfig) ToString ¶
func (m *LineBreakConfig) ToString() (string, error)
ToString calls android.graphics.text.LineBreakConfig.toString.
func (*LineBreakConfig) WriteToParcel ¶
func (m *LineBreakConfig) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.graphics.text.LineBreakConfig.writeToParcel.
type LineBreakConfigBuilder ¶
LineBreakConfigBuilder wraps android.graphics.text.LineBreakConfig$Builder.
func (*LineBreakConfigBuilder) Build ¶
func (m *LineBreakConfigBuilder) Build() (*jni.Object, error)
Build calls android.graphics.text.LineBreakConfig$Builder.build.
func (*LineBreakConfigBuilder) Merge ¶
Merge calls android.graphics.text.LineBreakConfig$Builder.merge.
func (*LineBreakConfigBuilder) SetHyphenation ¶
func (m *LineBreakConfigBuilder) SetHyphenation(arg0 int32) (*jni.Object, error)
SetHyphenation calls android.graphics.text.LineBreakConfig$Builder.setHyphenation.
func (*LineBreakConfigBuilder) SetLineBreakStyle ¶
func (m *LineBreakConfigBuilder) SetLineBreakStyle(arg0 int32) (*jni.Object, error)
SetLineBreakStyle calls android.graphics.text.LineBreakConfig$Builder.setLineBreakStyle.
func (*LineBreakConfigBuilder) SetLineBreakWordStyle ¶
func (m *LineBreakConfigBuilder) SetLineBreakWordStyle(arg0 int32) (*jni.Object, error)
SetLineBreakWordStyle calls android.graphics.text.LineBreakConfig$Builder.setLineBreakWordStyle.
type LineBreaker ¶
LineBreaker wraps android.graphics.text.LineBreaker.
type LineBreakerBuilder ¶
LineBreakerBuilder wraps android.graphics.text.LineBreaker$Builder.
func (*LineBreakerBuilder) Build ¶
func (m *LineBreakerBuilder) Build() (*jni.Object, error)
Build calls android.graphics.text.LineBreaker$Builder.build.
func (*LineBreakerBuilder) SetBreakStrategy ¶
func (m *LineBreakerBuilder) SetBreakStrategy(arg0 int32) (*jni.Object, error)
SetBreakStrategy calls android.graphics.text.LineBreaker$Builder.setBreakStrategy.
func (*LineBreakerBuilder) SetHyphenationFrequency ¶
func (m *LineBreakerBuilder) SetHyphenationFrequency(arg0 int32) (*jni.Object, error)
SetHyphenationFrequency calls android.graphics.text.LineBreaker$Builder.setHyphenationFrequency.
func (*LineBreakerBuilder) SetIndents ¶
SetIndents calls android.graphics.text.LineBreaker$Builder.setIndents.
func (*LineBreakerBuilder) SetJustificationMode ¶
func (m *LineBreakerBuilder) SetJustificationMode(arg0 int32) (*jni.Object, error)
SetJustificationMode calls android.graphics.text.LineBreaker$Builder.setJustificationMode.
func (*LineBreakerBuilder) SetUseBoundsForWidth ¶
func (m *LineBreakerBuilder) SetUseBoundsForWidth(arg0 bool) (*jni.Object, error)
SetUseBoundsForWidth calls android.graphics.text.LineBreaker$Builder.setUseBoundsForWidth.
type LineBreakerParagraphConstraints ¶
LineBreakerParagraphConstraints wraps android.graphics.text.LineBreaker$ParagraphConstraints.
func (*LineBreakerParagraphConstraints) GetDefaultTabStop ¶
func (m *LineBreakerParagraphConstraints) GetDefaultTabStop() (float32, error)
GetDefaultTabStop calls android.graphics.text.LineBreaker$ParagraphConstraints.getDefaultTabStop.
func (*LineBreakerParagraphConstraints) GetFirstWidth ¶
func (m *LineBreakerParagraphConstraints) GetFirstWidth() (float32, error)
GetFirstWidth calls android.graphics.text.LineBreaker$ParagraphConstraints.getFirstWidth.
func (*LineBreakerParagraphConstraints) GetFirstWidthLineCount ¶
func (m *LineBreakerParagraphConstraints) GetFirstWidthLineCount() (int32, error)
GetFirstWidthLineCount calls android.graphics.text.LineBreaker$ParagraphConstraints.getFirstWidthLineCount.
func (*LineBreakerParagraphConstraints) GetTabStops ¶
func (m *LineBreakerParagraphConstraints) GetTabStops() (*jni.Object, error)
GetTabStops calls android.graphics.text.LineBreaker$ParagraphConstraints.getTabStops.
func (*LineBreakerParagraphConstraints) GetWidth ¶
func (m *LineBreakerParagraphConstraints) GetWidth() (float32, error)
GetWidth calls android.graphics.text.LineBreaker$ParagraphConstraints.getWidth.
func (*LineBreakerParagraphConstraints) SetIndent ¶
func (m *LineBreakerParagraphConstraints) SetIndent(arg0 float32, arg1 int32) error
SetIndent calls android.graphics.text.LineBreaker$ParagraphConstraints.setIndent.
func (*LineBreakerParagraphConstraints) SetTabStops ¶
func (m *LineBreakerParagraphConstraints) SetTabStops(arg0 *jni.Object, arg1 float32) error
SetTabStops calls android.graphics.text.LineBreaker$ParagraphConstraints.setTabStops.
func (*LineBreakerParagraphConstraints) SetWidth ¶
func (m *LineBreakerParagraphConstraints) SetWidth(arg0 float32) error
SetWidth calls android.graphics.text.LineBreaker$ParagraphConstraints.setWidth.
type LineBreakerResult ¶
LineBreakerResult wraps android.graphics.text.LineBreaker$Result.
func (*LineBreakerResult) GetEndLineHyphenEdit ¶
func (m *LineBreakerResult) GetEndLineHyphenEdit(arg0 int32) (int32, error)
GetEndLineHyphenEdit calls android.graphics.text.LineBreaker$Result.getEndLineHyphenEdit.
func (*LineBreakerResult) GetLineAscent ¶
func (m *LineBreakerResult) GetLineAscent(arg0 int32) (float32, error)
GetLineAscent calls android.graphics.text.LineBreaker$Result.getLineAscent.
func (*LineBreakerResult) GetLineBreakOffset ¶
func (m *LineBreakerResult) GetLineBreakOffset(arg0 int32) (int32, error)
GetLineBreakOffset calls android.graphics.text.LineBreaker$Result.getLineBreakOffset.
func (*LineBreakerResult) GetLineCount ¶
func (m *LineBreakerResult) GetLineCount() (int32, error)
GetLineCount calls android.graphics.text.LineBreaker$Result.getLineCount.
func (*LineBreakerResult) GetLineDescent ¶
func (m *LineBreakerResult) GetLineDescent(arg0 int32) (float32, error)
GetLineDescent calls android.graphics.text.LineBreaker$Result.getLineDescent.
func (*LineBreakerResult) GetLineWidth ¶
func (m *LineBreakerResult) GetLineWidth(arg0 int32) (float32, error)
GetLineWidth calls android.graphics.text.LineBreaker$Result.getLineWidth.
func (*LineBreakerResult) GetStartLineHyphenEdit ¶
func (m *LineBreakerResult) GetStartLineHyphenEdit(arg0 int32) (int32, error)
GetStartLineHyphenEdit calls android.graphics.text.LineBreaker$Result.getStartLineHyphenEdit.
func (*LineBreakerResult) HasLineTab ¶
func (m *LineBreakerResult) HasLineTab(arg0 int32) (bool, error)
HasLineTab calls android.graphics.text.LineBreaker$Result.hasLineTab.
type MeasuredText ¶
MeasuredText wraps android.graphics.text.MeasuredText.
func (*MeasuredText) GetCharWidthAt ¶
func (m *MeasuredText) GetCharWidthAt(arg0 int32) (float32, error)
GetCharWidthAt calls android.graphics.text.MeasuredText.getCharWidthAt.
func (*MeasuredText) GetFontMetricsInt ¶
GetFontMetricsInt calls android.graphics.text.MeasuredText.getFontMetricsInt.
type MeasuredTextBuilder ¶
MeasuredTextBuilder wraps android.graphics.text.MeasuredText$Builder.
func (*MeasuredTextBuilder) AppendReplacementRun ¶
func (m *MeasuredTextBuilder) AppendReplacementRun( arg0 *jni.Object, arg1 int32, arg2 float32, ) (*jni.Object, error)
AppendReplacementRun calls android.graphics.text.MeasuredText$Builder.appendReplacementRun.
func (*MeasuredTextBuilder) AppendStyleRun3_1 ¶
func (m *MeasuredTextBuilder) AppendStyleRun3_1( arg0 *jni.Object, arg1 int32, arg2 bool, ) (*jni.Object, error)
AppendStyleRun3_1 calls android.graphics.text.MeasuredText$Builder.appendStyleRun.
func (*MeasuredTextBuilder) AppendStyleRun4 ¶
func (m *MeasuredTextBuilder) AppendStyleRun4( arg0 *jni.Object, arg1 *jni.Object, arg2 int32, arg3 bool, ) (*jni.Object, error)
AppendStyleRun4 calls android.graphics.text.MeasuredText$Builder.appendStyleRun.
func (*MeasuredTextBuilder) Build ¶
func (m *MeasuredTextBuilder) Build() (*jni.Object, error)
Build calls android.graphics.text.MeasuredText$Builder.build.
func (*MeasuredTextBuilder) SetComputeHyphenation1 ¶
func (m *MeasuredTextBuilder) SetComputeHyphenation1(arg0 bool) (*jni.Object, error)
SetComputeHyphenation1 calls android.graphics.text.MeasuredText$Builder.setComputeHyphenation.
func (*MeasuredTextBuilder) SetComputeHyphenation1_1 ¶
func (m *MeasuredTextBuilder) SetComputeHyphenation1_1(arg0 int32) (*jni.Object, error)
SetComputeHyphenation1_1 calls android.graphics.text.MeasuredText$Builder.setComputeHyphenation.
func (*MeasuredTextBuilder) SetComputeLayout ¶
func (m *MeasuredTextBuilder) SetComputeLayout(arg0 bool) (*jni.Object, error)
SetComputeLayout calls android.graphics.text.MeasuredText$Builder.setComputeLayout.
type PositionedGlyphs ¶
PositionedGlyphs wraps android.graphics.text.PositionedGlyphs.
func (*PositionedGlyphs) Equals ¶
func (m *PositionedGlyphs) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.graphics.text.PositionedGlyphs.equals.
func (*PositionedGlyphs) GetAdvance ¶
func (m *PositionedGlyphs) GetAdvance() (float32, error)
GetAdvance calls android.graphics.text.PositionedGlyphs.getAdvance.
func (*PositionedGlyphs) GetAscent ¶
func (m *PositionedGlyphs) GetAscent() (float32, error)
GetAscent calls android.graphics.text.PositionedGlyphs.getAscent.
func (*PositionedGlyphs) GetDescent ¶
func (m *PositionedGlyphs) GetDescent() (float32, error)
GetDescent calls android.graphics.text.PositionedGlyphs.getDescent.
func (*PositionedGlyphs) GetFakeBold ¶
func (m *PositionedGlyphs) GetFakeBold(arg0 int32) (bool, error)
GetFakeBold calls android.graphics.text.PositionedGlyphs.getFakeBold.
func (*PositionedGlyphs) GetFakeItalic ¶
func (m *PositionedGlyphs) GetFakeItalic(arg0 int32) (bool, error)
GetFakeItalic calls android.graphics.text.PositionedGlyphs.getFakeItalic.
func (*PositionedGlyphs) GetFont ¶
func (m *PositionedGlyphs) GetFont(arg0 int32) (*jni.Object, error)
GetFont calls android.graphics.text.PositionedGlyphs.getFont.
func (*PositionedGlyphs) GetGlyphId ¶
func (m *PositionedGlyphs) GetGlyphId(arg0 int32) (int32, error)
GetGlyphId calls android.graphics.text.PositionedGlyphs.getGlyphId.
func (*PositionedGlyphs) GetGlyphX ¶
func (m *PositionedGlyphs) GetGlyphX(arg0 int32) (float32, error)
GetGlyphX calls android.graphics.text.PositionedGlyphs.getGlyphX.
func (*PositionedGlyphs) GetGlyphY ¶
func (m *PositionedGlyphs) GetGlyphY(arg0 int32) (float32, error)
GetGlyphY calls android.graphics.text.PositionedGlyphs.getGlyphY.
func (*PositionedGlyphs) GetItalicOverride ¶
func (m *PositionedGlyphs) GetItalicOverride(arg0 int32) (float32, error)
GetItalicOverride calls android.graphics.text.PositionedGlyphs.getItalicOverride.
func (*PositionedGlyphs) GetOffsetX ¶
func (m *PositionedGlyphs) GetOffsetX() (float32, error)
GetOffsetX calls android.graphics.text.PositionedGlyphs.getOffsetX.
func (*PositionedGlyphs) GetOffsetY ¶
func (m *PositionedGlyphs) GetOffsetY() (float32, error)
GetOffsetY calls android.graphics.text.PositionedGlyphs.getOffsetY.
func (*PositionedGlyphs) GetWeightOverride ¶
func (m *PositionedGlyphs) GetWeightOverride(arg0 int32) (float32, error)
GetWeightOverride calls android.graphics.text.PositionedGlyphs.getWeightOverride.
func (*PositionedGlyphs) GlyphCount ¶
func (m *PositionedGlyphs) GlyphCount() (int32, error)
GlyphCount calls android.graphics.text.PositionedGlyphs.glyphCount.
func (*PositionedGlyphs) HashCode ¶
func (m *PositionedGlyphs) HashCode() (int32, error)
HashCode calls android.graphics.text.PositionedGlyphs.hashCode.
func (*PositionedGlyphs) ToString ¶
func (m *PositionedGlyphs) ToString() (string, error)
ToString calls android.graphics.text.PositionedGlyphs.toString.
type RunShaper ¶
RunShaper wraps android.graphics.text.TextRunShaper.