1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898
|
<Type Name="Layout" FullName="Pango.Layout">
<TypeSignature Language="C#" Maintainer="auto" Value="public class Layout : GLib.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Layout extends GLib.Object" />
<AssemblyInfo>
<AssemblyName>pango-sharp</AssemblyName>
<AssemblyPublicKey>[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4]</AssemblyPublicKey>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Base>
<BaseTypeName>GLib.Object</BaseTypeName>
</Base>
<Interfaces>
</Interfaces>
<Docs>
<summary>High-level driver for formatting entire paragraphs of text at once.</summary>
<remarks>
<para>While complete access to the layout capabilities of Pango is provided using the detailed interfaces for itemization and shaping, using that functionality directly involves writing a fairly large amount of code. The objects and functions in <see cref="T:Pango.Layout" /> provide a high-level driver for formatting entire paragraphs of text at once.</para>
<para>The <see cref="T:Pango.Layout" /> represents and entire paragraph of text. It is initialized with a <see cref="T:Pango.Context" />, UTF-8 string and set of attributes for that string. Once that is done, the set of formatted lines can be extracted from the object, the layout can be rendered, and conversion between logical character positions within the layout's text, and the physical position of the resulting glyphs can be made.</para>
<para>There are also a number of parameters to adjust the formatting of a <see cref="T:Pango.Layout" />. It is possible, as well, to ignore the 2-D setup, and simply treat the results of a <see cref="T:Pango.Layout" /> as a list of lines.</para>
</remarks>
<example>
<code lang="C#">
using System;
using Gtk;
using Pango;
class LayoutSample : DrawingArea
{
Pango.Layout layout;
static void Main ()
{
Application.Init ();
new LayoutSample ();
Application.Run ();
}
LayoutSample ()
{
Window win = new Window ("Layout sample");
win.SetDefaultSize (400, 300);
win.DeleteEvent += OnWinDelete;
this.Realized += OnRealized;
this.ExposeEvent += OnExposed;
win.Add (this);
win.ShowAll ();
}
void OnExposed (object o, ExposeEventArgs args)
{
this.GdkWindow.DrawLayout (this.Style.TextGC (StateType.Normal), 100, 150, layout);
}
void OnRealized (object o, EventArgs args)
{
layout = new Pango.Layout (this.PangoContext);
layout.Wrap = Pango.WrapMode.Word;
layout.FontDescription = FontDescription.FromString ("Tahoma 16");
layout.SetMarkup ("Hello Pango.Layout");
}
void OnWinDelete (object o, DeleteEventArgs args)
{
Application.Quit ();
}
}
</code>
</example>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected Layout (GLib.GType gtype);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(valuetype GLib.GType gtype) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete</AttributeName>
</Attribute>
</Attributes>
<ReturnValue />
<Parameters>
<Parameter Name="gtype" Type="GLib.GType" />
</Parameters>
<Docs>
<param name="gtype">Pointer to the C object.</param>
<summary>Internal constructor</summary>
<remarks>
<para>This is an internal constructor and should not be used by user code.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Layout (Pango.Context context);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Pango.Context context) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="context" Type="Pango.Context" />
</Parameters>
<Docs>
<param name="context">a <see cref="T:Pango.Context" />.</param>
<summary>Create a new PangoLayout object with attributes initialized to default values for a particular <see cref="T:Pango.Context" />.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Layout (IntPtr raw);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="raw" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="raw">a <see cref="T:Pango.Context" />.</param>
<summary>Create a new PangoLayout object with attributes initialized to default values for a particular <see cref="T:Pango.Context" />.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="Alignment">
<MemberSignature Language="C#" Value="public Pango.Alignment Alignment { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Pango.Alignment Alignment" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.Alignment</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Set or return the alignment for lines within the layout that do not take up the full width.</summary>
<value>an object of type <see cref="T:Pango.Alignment" /></value>
<value>an object of type <see cref="T:Pango.Alignment" /></value>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="Attributes">
<MemberSignature Language="C#" Value="public Pango.AttrList Attributes { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.AttrList Attributes" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.AttrList</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Sets/gets the text attributes for a Layout object.</summary>
<value>a <see cref="T:Pango.AttrList" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="AutoDir">
<MemberSignature Language="C#" Value="public bool AutoDir { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AutoDir" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:System.Boolean" /></value>
<remarks>To be added</remarks>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Context">
<MemberSignature Language="C#" Value="public Pango.Context Context { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.Context Context" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.Context</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>the <see cref="T:Pango.Context" /> used for this layout.</summary>
<value>an object of type <see cref="T:Pango.LayoutIter" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="ContextChanged">
<MemberSignature Language="C#" Value="public void ContextChanged ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ContextChanged() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Forces recomputation of any state in the <see cref="T:Pango.Layout" /> that might depend on the layout's context.</summary>
<remarks>This function should be called if you make changes to the context subsequent to creating the layout.</remarks>
</Docs>
</Member>
<Member MemberName="Copy">
<MemberSignature Language="C#" Value="public Pango.Layout Copy ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Pango.Layout Copy() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.Layout</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Copies an existing layout into a new one.</summary>
<returns>an object of type <see cref="T:Pango.Layout" /></returns>
<remarks />
</Docs>
</Member>
<Member MemberName="Ellipsize">
<MemberSignature Language="C#" Value="public Pango.EllipsizeMode Ellipsize { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Pango.EllipsizeMode Ellipsize" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.EllipsizeMode</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Pango.EllipsizeMode" /></value>
<remarks>To be added</remarks>
<since version="Gtk# 2.6" />
</Docs>
</Member>
<Member MemberName="FontDescription">
<MemberSignature Language="C#" Value="public Pango.FontDescription FontDescription { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.FontDescription FontDescription" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.FontDescription</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>The default font description for the layout.</summary>
<value>a <see cref="T:Pango.FontDescription" /></value>
<remarks>If no font description is set on the layout, the font description from the layout's context is used.</remarks>
<since version="Gtk# 2.6" />
</Docs>
</Member>
<Member MemberName="GetCursorPos">
<MemberSignature Language="C#" Value="public void GetCursorPos (int index_, out Pango.Rectangle strong_pos, out Pango.Rectangle weak_pos);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetCursorPos(int32 index_, valuetype Pango.Rectangle strong_pos, valuetype Pango.Rectangle weak_pos) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index_" Type="System.Int32" />
<Parameter Name="strong_pos" Type="Pango.Rectangle&" RefType="out" />
<Parameter Name="weak_pos" Type="Pango.Rectangle&" RefType="out" />
</Parameters>
<Docs>
<param name="index_"> the byte index of the cursor</param>
<param name="strong_pos"> location to store the strong cursor position (may be <see langword="null" />)</param>
<param name="weak_pos"> location to store the weak cursor position (may be <see langword="null" />)</param>
<summary>Given an index within a layout, determines the positions that of the strong and weak cursors if the insertion point is at that index.</summary>
<remarks>The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the layout are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the layout are inserted.</remarks>
</Docs>
</Member>
<Member MemberName="GetExtents">
<MemberSignature Language="C#" Value="public void GetExtents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetExtents(valuetype Pango.Rectangle ink_rect, valuetype Pango.Rectangle logical_rect) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ink_rect" Type="Pango.Rectangle&" RefType="out" />
<Parameter Name="logical_rect" Type="Pango.Rectangle&" RefType="out" />
</Parameters>
<Docs>
<param name="ink_rect"> rectangle used to store the extents of the layout as drawn or <see langword="null" /> to indicate that the result is not needed.</param>
<param name="logical_rect"> rectangle used to store the logical extents of the layout or <see langword="null" /> to indicate that the result is not needed.</param>
<summary>Computes the logical and ink extents</summary>
<remarks>Logical extents are usually what you want for positioning things. The extents are given in layout coordinates; layout coordinates begin at the top left corner of the layout.</remarks>
</Docs>
</Member>
<Member MemberName="GetLine">
<MemberSignature Language="C#" Value="public Pango.LayoutLine GetLine (int line);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Pango.LayoutLine GetLine(int32 line) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.LayoutLine</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="line" Type="System.Int32" />
</Parameters>
<Docs>
<param name="line">the index of a line.</param>
<summary>Retrieves a particular line.</summary>
<returns>the requested <see cref="T:Pango.LayoutLine" />, or null if the index is out of range.</returns>
<remarks>This layout line can be referenced and retained, but will become invalid
if changes are made to the Layout.
</remarks>
</Docs>
</Member>
<Member MemberName="GetLineReadonly">
<MemberSignature Language="C#" Value="public Pango.LayoutLine GetLineReadonly (int line);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Pango.LayoutLine GetLineReadonly(int32 line) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.LayoutLine</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="line" Type="System.Int32" />
</Parameters>
<Docs>
<param name="line">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<since version="Gtk# 2.12" />
</Docs>
</Member>
<Member MemberName="GetPixelExtents">
<MemberSignature Language="C#" Value="public void GetPixelExtents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetPixelExtents(valuetype Pango.Rectangle ink_rect, valuetype Pango.Rectangle logical_rect) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ink_rect" Type="Pango.Rectangle&" RefType="out" />
<Parameter Name="logical_rect" Type="Pango.Rectangle&" RefType="out" />
</Parameters>
<Docs>
<param name="ink_rect">Rectangle used to store the extents of the layout as drawn.</param>
<param name="logical_rect">Rectangle used to store the logical extents of the layout.</param>
<summary>Compute the logical and ink extents of layout.</summary>
<remarks>
<para>
Logical extents are usually what you want for positioning things. The extents are given in layout coordinates; layout coordinates begin at the top left corner of the layout.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetPixelSize">
<MemberSignature Language="C#" Value="public void GetPixelSize (out int width, out int height);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetPixelSize(int32 width, int32 height) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="width" Type="System.Int32&" RefType="out" />
<Parameter Name="height" Type="System.Int32&" RefType="out" />
</Parameters>
<Docs>
<param name="width">an object of type <see cref="T:System.Int32" /></param>
<param name="height">an object of type <see cref="T:System.Int32" /></param>
<summary>Determine the logical width and height of a <see cref="T:Pango.Layout" /> in device units.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="GetSize">
<MemberSignature Language="C#" Value="public void GetSize (out int width, out int height);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetSize(int32 width, int32 height) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="width" Type="System.Int32&" RefType="out" />
<Parameter Name="height" Type="System.Int32&" RefType="out" />
</Parameters>
<Docs>
<param name="width"> location to store the logical width, or <see langword="null" /></param>
<param name="height"> location to store the logical height, or <see langword="null" /></param>
<summary>Determines the logical width and height of a <see cref="T:Pango.Layout" /> in Pango units (device units divided by <see cref="F:Pango.Scale.PangoScale" />).</summary>
<remarks>This is simply a convenience function around <see cref="M:Pango.Layout.GetExtents()" />.</remarks>
</Docs>
</Member>
<Member MemberName="GType">
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; }" />
<MemberSignature Language="ILAsm" Value=".property valuetype GLib.GType GType" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>GType Property.</summary>
<value>a <see cref="T:GLib.GType" /></value>
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Pango.Layout" />.</remarks>
</Docs>
</Member>
<Member MemberName="Indent">
<MemberSignature Language="C#" Value="public int Indent { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Indent" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Set or return the amount by which the first line should be shorter than the rest of the lines.</summary>
<value>an object of type <see cref="T:System.Int32" /></value>
<remarks>The value can be negative, in which case the subsequent lines will be shorter than the first line. (However, in either case, the entire width of the layout will be given by the value.</remarks>
</Docs>
</Member>
<Member MemberName="IndexToLineX">
<MemberSignature Language="C#" Value="public void IndexToLineX (int index_, bool trailing, out int line, out int x_pos);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void IndexToLineX(int32 index_, bool trailing, int32 line, int32 x_pos) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index_" Type="System.Int32" />
<Parameter Name="trailing" Type="System.Boolean" />
<Parameter Name="line" Type="System.Int32&" RefType="out" />
<Parameter Name="x_pos" Type="System.Int32&" RefType="out" />
</Parameters>
<Docs>
<param name="index_">a byte index of a grapheme within the layout.</param>
<param name="trailing">Somewhat confusingly, <see langword="false" /> for the trailing edge of the grapheme, <see langword="true" /> for the leading.</param>
<param name="line">Returns the line index of the grapheme, starting with index 0.</param>
<param name="x_pos">Returns the x offset of the grapheme in Pango units.</param>
<summary>Converts from a byte index to a line and X position.</summary>
<remarks>The <paramref name="x_pos" /> is measured from the left edge of the line.</remarks>
<since version="Gtk# 2.10" />
</Docs>
</Member>
<Member MemberName="IndexToPos">
<MemberSignature Language="C#" Value="public Pango.Rectangle IndexToPos (int index_);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype Pango.Rectangle IndexToPos(int32 index_) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.Rectangle</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index_" Type="System.Int32" />
</Parameters>
<Docs>
<param name="index_">a byte offset within the text buffer.</param>
<summary>Obtains the graphical position of an offset in the <see cref="T:Pango.Layout" />.</summary>
<returns>a <see cref="T:Pango.Rectangle" /> representing the position of the grapheme associated with <paramref name="index_" />.</returns>
<remarks>
<para>
The X coordinate of the resulting <see cref="T:Pango.Rectangle" /> represents the leading edge of the grapheme. If the direction of the grapheme is right to left, the Width value will be negative.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="IsEllipsized">
<MemberSignature Language="C#" Value="public bool IsEllipsized { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsEllipsized" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<since version="Gtk# 2.12" />
</Docs>
</Member>
<Member MemberName="IsWrapped">
<MemberSignature Language="C#" Value="public bool IsWrapped { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsWrapped" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<since version="Gtk# 2.12" />
</Docs>
</Member>
<Member MemberName="Iter">
<MemberSignature Language="C#" Value="public Pango.LayoutIter Iter { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.LayoutIter Iter" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.LayoutIter</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>An iterator to iterate over the visual extents of the layout.</summary>
<value>a new <see cref="T:Pango.LayoutIter" />.</value>
<remarks />
</Docs>
</Member>
<Member MemberName="Justify">
<MemberSignature Language="C#" Value="public bool Justify { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Justify" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Sets whether or not each complete line should be stretched to fill the entire width of the layout.</summary>
<value>an object of type <see cref="T:System.Int32" /></value>
<remarks>This stretching is typically done by adding whitespace, but for some scripts (such as Arabic), the justification is done by extending the characters.</remarks>
</Docs>
</Member>
<Member MemberName="LineCount">
<MemberSignature Language="C#" Value="public int LineCount { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 LineCount" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves the count of lines for the layout.</summary>
<value>An integer, the line count</value>
<remarks />
</Docs>
</Member>
<Member MemberName="Lines">
<MemberSignature Language="C#" Value="public Pango.LayoutLine[] Lines { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.LayoutLine[] Lines" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.LayoutLine[]</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>The count of lines for the layout.</summary>
<value>The count of lines for the layout.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LinesReadOnly">
<MemberSignature Language="C#" Value="public Pango.LayoutLine[] LinesReadOnly { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.LayoutLine[] LinesReadOnly" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.LayoutLine[]</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<since version="Gtk# 2.12" />
</Docs>
</Member>
<Member MemberName="LogAttrs">
<MemberSignature Language="C#" Value="public Pango.LogAttr[] LogAttrs { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Pango.LogAttr[] LogAttrs" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.LogAttr[]</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves an array of logical attributes for each character in the layout.</summary>
<value>a <see cref="T:Pango.LogAttr[]" /></value>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="MoveCursorVisually">
<MemberSignature Language="C#" Value="public void MoveCursorVisually (bool strong, int old_index, int old_trailing, int direction, out int new_index, out int new_trailing);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void MoveCursorVisually(bool strong, int32 old_index, int32 old_trailing, int32 direction, int32 new_index, int32 new_trailing) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="strong" Type="System.Boolean" />
<Parameter Name="old_index" Type="System.Int32" />
<Parameter Name="old_trailing" Type="System.Int32" />
<Parameter Name="direction" Type="System.Int32" />
<Parameter Name="new_index" Type="System.Int32&" RefType="out" />
<Parameter Name="new_trailing" Type="System.Int32&" RefType="out" />
</Parameters>
<Docs>
<param name="strong"> whether the moving cursor is the strong cursor or the weak cursor. The strong cursor is the cursor corresponding to text insertion in the base direction for the layout.</param>
<param name="old_index"> the byte index of the grapheme for the old index </param>
<param name="old_trailing"> if 0, the cursor was at the trailing edge of the grapheme indicated by old_index, if > 0, the cursor was at the leading edge.</param>
<param name="direction"> direction to move cursor. A negative value indicates motion to the left.</param>
<param name="new_index"> location to store the new cursor byte index. A value of -1 indicates that the cursor has been moved off the beginning of the layout. A value of G_MAXINT indicates that the cursor has been moved off the end of the layout.</param>
<param name="new_trailing"> number of characters to move forward from the location returned for <paramref name="new_index" /> to get the position where the cursor should be displayed. This allows distinguishing the position at the beginning of one line from the position at the end of the preceding line. <paramref name="new_index" /> is always on the line where the cursor should be displayed.</param>
<summary>Computes a new cursor position from an old position and a count of positions to move visually.</summary>
<remarks>
<para>If <paramref name="count" /> is positive, then the new strong cursor position will be one position to the right of the old cursor position. If <paramref name="count" /> is negative then the new strong cursor position will be one position to the left of the old cursor position.
</para>
<para>In the presence of bi-directional text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run.
</para>
<para>Motion here is in cursor positions, not in characters, so a single call may move the cursor over multiple characters when multiple characters combine to form a single grapheme.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="SetMarkup">
<MemberSignature Language="C#" Value="public void SetMarkup (string markup);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetMarkup(string markup) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="markup" Type="System.String" />
</Parameters>
<Docs>
<param name="markup">marked-up text</param>
<summary>Sets the layout text and attribute list from marked-up text (see markup format).</summary>
<remarks>Replaces the current text and attribute list.
</remarks>
</Docs>
</Member>
<Member MemberName="SetMarkupWithAccel">
<MemberSignature Language="C#" Value="public void SetMarkupWithAccel (string markup, char accel_marker, out char accel_char);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetMarkupWithAccel(string markup, char accel_marker, char accel_char) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="markup" Type="System.String" />
<Parameter Name="accel_marker" Type="System.Char" />
<Parameter Name="accel_char" Type="System.Char&" RefType="out" />
</Parameters>
<Docs>
<param name="markup">marked-up text</param>
<param name="accel_marker">the character following this char is underlined.</param>
<param name="accel_char">returns a parsed accelerator char from the marked-up text.</param>
<summary>Sets the text of a Layout includ</summary>
<summary>Sets the layout text and attribute list from marked-up text with an accelerator marker (see markup format).</summary>
<remarks>Replaces the current text and attribute list.</remarks>
</Docs>
</Member>
<Member MemberName="SetText">
<MemberSignature Language="C#" Value="public void SetText (string text);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetText(string text) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="text" Type="System.String" />
</Parameters>
<Docs>
<param name="text">an object of type <see cref="T:System.String" /></param>
<summary>Set the text of the layout.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="SingleParagraphMode">
<MemberSignature Language="C#" Value="public bool SingleParagraphMode { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool SingleParagraphMode" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Whether or not to treat newlines and similar characters as paragraph separators.</summary>
<value>an object of type <see cref="T:Pango.Context" /></value>
<remarks>
<para>If set to true, do not treat newlines and similar characters as paragraph separators; instead, keep all text in a single paragraph, and display a glyph for paragraph separator characters.</para>
<para>Used when you want to allow editing of newlines on a single text line.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Spacing">
<MemberSignature Language="C#" Value="public int Spacing { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Spacing" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>the amount of spacing between the lines of the layout.</summary>
<value>the amount of spacing (in <see cref="T:Pango.GlyphUnit" />) </value>
<remarks />
</Docs>
</Member>
<Member MemberName="Tabs">
<MemberSignature Language="C#" Value="public Pango.TabArray Tabs { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Pango.TabArray Tabs" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.TabArray</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>The tabs to use for the layout.</summary>
<value>the current <see cref="T:Pango.TabArray" /> used by this layout. If no <see cref="T:Pango.TabArray" /> has been set, then the default tabs are in use and null is returned.</value>
<remarks>
<para>By default, tabs are every 8 spaces.</para>
<para>Setting new tabs overrides the default tabs. If Tabs is set to null, the default tabs are reinstated.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Text">
<MemberSignature Language="C#" Value="public string Text { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Text" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Sets the text of the layout.</summary>
<value>a <see cref="T:System.String" /> in UTF-8 encoding.</value>
<remarks />
</Docs>
</Member>
<Member MemberName="UnknownGlyphsCount">
<MemberSignature Language="C#" Value="public int UnknownGlyphsCount { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 UnknownGlyphsCount" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<since version="Gtk# 2.12" />
</Docs>
</Member>
<Member MemberName="Width">
<MemberSignature Language="C#" Value="public int Width { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Width" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Sets the width to which the lines of the Layout should be wrapped.</summary>
<value>an object of type <see cref="T:System.String" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="Wrap">
<MemberSignature Language="C#" Value="public Pango.WrapMode Wrap { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Pango.WrapMode Wrap" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Pango.WrapMode</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets or sets the wrap mode</summary>
<value> Active wrap mode.</value>
<remarks>The wrap mode only has an effect if a width is set on the layout using <see cref="P:Pango.Layout.Width" />. To turn off wrapping, set the width to -1.</remarks>
</Docs>
</Member>
<Member MemberName="XyToIndex">
<MemberSignature Language="C#" Value="public bool XyToIndex (int x, int y, out int index_, out int trailing);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool XyToIndex(int32 x, int32 y, int32 index_, int32 trailing) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.12.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="x" Type="System.Int32" />
<Parameter Name="y" Type="System.Int32" />
<Parameter Name="index_" Type="System.Int32&" RefType="out" />
<Parameter Name="trailing" Type="System.Int32&" RefType="out" />
</Parameters>
<Docs>
<param name="x">a <see cref="T:System.Int32" />, the X offset (in thousandths of a device unit) from the left edge of the layout.</param>
<param name="y">a <see cref="T:System.Int32" />, the Y offset (in thousandths of a device unit) from the top edge of the layout.</param>
<param name="index_">a <see cref="T:System.Int32" /> for storing the calculated byte index</param>
<param name="trailing">a <see cref="T:System.Int32" /> to store where in the grapheme the user clicked. It will either
be zero or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme.</param>
<summary>Convert from X and Y position within a layout to the byte index to the character at that logical position.</summary>
<returns>a <see cref="T:System.Boolean" />, true if the coordinates are inside the Layout.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
|