12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 29 ■ Widget <strong>Reference</strong> 1209GetFontObjectReturns the Font object from which the properties <strong>of</strong> a font used in the frameare inherited.font = SimpleHTML:GetFontObject([“element“])Arguments:element (optional)—Name <strong>of</strong> an HTML element <strong>for</strong> which to return font in<strong>for</strong>mation(e.g. p, h1); if omitted, returns in<strong>for</strong>mation about the frame’s default font(string)Returns:font—<strong>Reference</strong> to the Font object from which font properties are inherited, ornil if no properties are inherited (font)GetHyperlinkFormatReturns the <strong>for</strong>mat string used <strong>for</strong> displaying hyperlinks in the frame.<strong>for</strong>mat = SimpleHTML:GetHyperlinkFormat()See :SetHyperlinkFormat() <strong>for</strong> details.Returns:<strong>for</strong>mat—Format string used <strong>for</strong> displaying hyperlinks in the frame (string)GetHyperlinksEnabledReturns whether hyperlinks in the frame’s text are interactive.enabled = SimpleHTML:GetHyperlinksEnabled()Returns:enabled—1 if hyperlinks in the frame’s text are interactive; otherwise nil(1nil)GetIndentedWordWrapReturns whether long lines <strong>of</strong> text are indented when wrapping.indent = SimpleHTML:GetIndentedWordWrap([“element“])Arguments:element (optional)—Name <strong>of</strong> an HTML element <strong>for</strong> which to return text stylein<strong>for</strong>mation (e.g. p, h1); if omitted, returns in<strong>for</strong>mation about the frame’s defaulttext style (string)Returns:indent—1 if long lines <strong>of</strong> text are indented when wrapping; otherwise nil(1nil)GetJustifyHReturns the horizontal alignment style <strong>for</strong> text in the frame.justify = SimpleHTML:GetJustifyH([“element“])Arguments:element (optional)—Name <strong>of</strong> an HTML element <strong>for</strong> which to return text stylein<strong>for</strong>mation (e.g. p, h1); if omitted, returns in<strong>for</strong>mation about the frame’s defaulttext style (string)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!