<?xml version='1.0' encoding='utf-8' /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html><head> <title>GtkAda: Gtk.Text_Attributes</title> <link rel='stylesheet' href='gtkada_rm.css' type='text/css'> <script src='gtkada_rm.js' type='text/javascript'></script> </head><body> <div id='objectName'> <span><a href='index.html'><img src='home.png' alt='Toc' title='Table of Contents'/></a> <a href='gallery.html'><img src='gallery.png' alt='Gallery' title='Widgets gallery'/></a> <a href='entities.html'><img src='entities.png' alt='Index' title='Global Index'/></a> <a href='tree.html'><img src='tree.png' alt='Tree' title='Widgets Inheritance Tree'/></a> </span> Gtk.Text_Attributes </div> <!-- objectName --> <div id='leftSide'> <div id='navigation'> <h2>Navigation</h2> <ul> <li><a href='#Description' onclick='return switchPage("page1")'>Description</a></li> <li><a href='#Types' onclick='return switchPage("page1")'>Types</a></li> <li><a href='#Subprograms' onclick='return switchPage("page1")'>Subprograms</a> <ul> <li><a href='#Subprograms__General' onclick='return switchPage("page1")'>General</a></li> <li><a href='#Subprograms__Text_appearance' onclick='return switchPage("page1")'>Text appearance</a></li> <li><a href='#Subprograms__Attributes' onclick='return switchPage("page1")'>Attributes</a></li> </ul> </li> <li><a href='#Properties' onclick='return switchPage("page3")'>Properties</a></li> </ul> </div> <!-- navigation --> </div> <!-- leftSide --> <div id='documentation'> <ul id='notebook'> <li id='tab_page1' class='current'><a href='' onclick='return !switchPage("page1")'>Entities</a></li> <li id='tab_page3'><a href='#Properties' onclick='return !switchPage("page3")'>Properties</a></li> </ul> <!-- notebook --> <div id='notebook_page1' class='notebookPage'> <a name='Description'></a> <div class='description'> <h2>Description</h2> This package defines the <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a> type. </div> <!-- description --> <a name='Types'></a> <div id='types'> <h2>Types</h2> <ul> <li><a name='Gtk_Text_Appearance_'></a> <div class='profile'><b>type</b> Gtk_Text_Appearance <b>is</b> <b>new</b> <a href='glib.html'>Glib.C_Proxy</a>;</div> <div class='comment'></div></li> <li><a name='Gtk_Text_Attributes_'></a> <div class='profile'><b>type</b> Gtk_Text_Attributes <b>is</b> <b>new</b> <a href='glib.html'>Glib.C_Proxy</a>;</div> <div class='comment'></div></li> </ul> </div> <!-- types --> <a name='Subprograms'> </a> <a name='Subprograms__General'> </a> <div id='subprograms'> <h2>Subprograms</h2> <ul> <li><a name='Gtk_New_1_'></a> <div class='profile'><b>procedure</b> <span class='name'>Gtk_New</span> (Text_Attr : <b>out</b> Gtk_Text_Attributes);</div> <div class='comment'>Create a new <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a> structure. </div></li> <li><a name='Get_Type_2_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Type</span> <b>return</b> <a href='glib.html'>Glib.GType</a>;</div> <div class='comment'>Return the internal type used fro a <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a> </div></li> <li><a name='Ref_3_'></a> <div class='profile'><b>procedure</b> <span class='name'>Ref</span> (Values : Gtk_Text_Attributes);</div> <div class='comment'>Increase the reference counter of the given <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a> by one (this counter is initially set to 1 when this structure is created). </div></li> <li><a name='Unref_4_'></a> <div class='profile'><b>procedure</b> <span class='name'>Unref</span> (Values : Gtk_Text_Attributes);</div> <div class='comment'>Decrease the reference counter by one. When it reaches zero, the <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a> is automatically deallocated. </div></li> <li><a name='Copy_5_'></a> <div class='profile'><b>function</b> <span class='name'>Copy</span> (Src : Gtk_Text_Attributes) <b>return</b> Gtk_Text_Attributes;</div> <div class='comment'>Create a copy of the given <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a> structure. </div></li> <li><a name='Copy_Values_6_'></a> <div class='profile'><b>procedure</b> <span class='name'>Copy_Values</span> (Src : Gtk_Text_Attributes; Dest : Gtk_Text_Attributes);</div> <div class='comment'><a href='gtk-text_attributes.html#Copy_5_'>Copy</a> the values from <tt>Src</tt> into <tt>Dest</tt> so that <tt>Dest</tt> has the same values as <tt>Src</tt>. Free existing values in <tt>Dest</tt>. <tt>Dest</tt>'s reference counter is preserved. </div></li> <a name='Subprograms__Text_appearance'></a> <h3>Text appearance</h3> <div class='description'></div> <li><a name='Set_Rise_7_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Rise</span> (Appearance : Gtk_Text_Appearance; Rise : Gint);</div> <a name='Get_Rise_8_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Rise</span> (Appearance : Gtk_Text_Appearance) <b>return</b> Gint;</div> <div class='comment'>Offset of the text above the baseline (or below if negative) </div></li> <li><a name='Set_Underline_9_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Underline</span> (Appearance : Gtk_Text_Appearance; Underline : Pango.Enums.Underline);</div> <a name='Get_Underline_10_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Underline</span> (Appearance : Gtk_Text_Appearance) <b>return</b> Pango.Enums.Underline;</div> <div class='comment'>Set the underline mode </div></li> <li><a name='Set_Strikethrough_11_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Strikethrough</span> (Appearance : Gtk_Text_Appearance; Strikethrough : Boolean);</div> <a name='Get_Strikethrough_12_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Strikethrough</span> (Appearance : Gtk_Text_Appearance) <b>return</b> Boolean;</div> <div class='comment'>Whether to strike through the text </div></li> <li><a name='Set_Fg_Color_13_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Fg_Color</span> (Appearance : Gtk_Text_Appearance; Color : <a href='gdk-color.html'>Gdk.Color.Gdk_Color</a>);</div> <a name='Get_Fg_Color_14_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Fg_Color</span> (Appearance : Gtk_Text_Attributes) <b>return</b> <a href='gdk-color.html'>Gdk.Color.Gdk_Color</a>;</div> <div class='comment'>The color used to display the text </div></li> <li><a name='Set_Bg_Color_15_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Bg_Color</span> (Appearance : Gtk_Text_Appearance; Color : <a href='gdk-color.html'>Gdk.Color.Gdk_Color</a>);</div> <a name='Get_Bg_Color_16_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Bg_Color</span> (Appearance : Gtk_Text_Attributes) <b>return</b> <a href='gdk-color.html'>Gdk.Color.Gdk_Color</a>;</div> <div class='comment'>The background color for the text </div></li> <li><a name='Set_Fg_Stipple_17_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Fg_Stipple</span> (Appearance : Gtk_Text_Appearance; Stipple : <a href='gdk.html'>Gdk.Gdk_Bitmap</a>);</div> <a name='Get_Fg_Stipple_18_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Fg_Stipple</span> (Appearance : Gtk_Text_Attributes) <b>return</b> <a href='gdk.html'>Gdk.Gdk_Bitmap</a>;</div> <div class='comment'>The pattern used in the foreground </div></li> <li><a name='Set_Bg_Stipple_19_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Bg_Stipple</span> (Appearance : Gtk_Text_Appearance; Stipple : <a href='gdk.html'>Gdk.Gdk_Bitmap</a>);</div> <a name='Get_Bg_Stipple_20_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Bg_Stipple</span> (Appearance : Gtk_Text_Attributes) <b>return</b> <a href='gdk.html'>Gdk.Gdk_Bitmap</a>;</div> <div class='comment'>The pattern used in the background </div></li> <a name='Subprograms__Attributes'></a> <h3>Attributes</h3> <div class='description'></div> <li><a name='Set_Font_21_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Font</span> (Text_Attr : Gtk_Text_Attributes; Font : <a href='pango-font.html'>Pango.Font.Pango_Font_Description</a>);</div> <a name='Get_Font_22_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Font</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> <a href='pango-font.html'>Pango.Font.Pango_Font_Description</a>;</div> <div class='comment'>Return the Pango_Font_Description associated to the given <a href='gtk-text_attributes.html'>Gtk_Text_Attributes</a>. </div></li> <li><a name='Set_Justification_23_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Justification</span> (Text_Attr : Gtk_Text_Attributes; Justification : <a href='gtk-enums.html'>Gtk.Enums.Gtk_Justification</a>);</div> <a name='Get_Justification_24_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Justification</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> <a href='gtk-enums.html'>Gtk.Enums.Gtk_Justification</a>;</div> <div class='comment'>Set the justification for this attributes </div></li> <li><a name='Set_Direction_25_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Direction</span> (Text_Attr : Gtk_Text_Attributes; Direction : <a href='gtk-enums.html'>Gtk.Enums.Gtk_Text_Direction</a>);</div> <a name='Get_Direction_26_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Direction</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> <a href='gtk-enums.html'>Gtk.Enums.Gtk_Text_Direction</a>;</div> <div class='comment'>Set the text direction for this attributes </div></li> <li><a name='Set_Font_Scale_27_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Font_Scale</span> (Text_Attr : Gtk_Text_Attributes; Scale : Gdouble);</div> <a name='Get_Font_Scale_28_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Font_Scale</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gdouble;</div> <div class='comment'>Set the scaling to use for the font </div></li> <li><a name='Set_Left_Margin_29_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Left_Margin</span> (Text_Attr : Gtk_Text_Attributes; Margin : Gint);</div> <a name='Get_Left_Margin_30_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Left_Margin</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gint;</div> <div class='comment'>Set the left margin </div></li> <li><a name='Set_Right_Margin_31_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Right_Margin</span> (Text_Attr : Gtk_Text_Attributes; Margin : Gint);</div> <a name='Get_Right_Margin_32_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Right_Margin</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gint;</div> <div class='comment'>Set the right margin </div></li> <li><a name='Set_Indent_33_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Indent</span> (Text_Attr : Gtk_Text_Attributes; Margin : Gint);</div> <a name='Get_Indent_34_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Indent</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gint;</div> <div class='comment'>Amount to indent the paragraph </div></li> <li><a name='Set_Pixels_Above_Line_35_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Pixels_Above_Line</span> (Text_Attr : Gtk_Text_Attributes; Margin : Gint);</div> <a name='Get_Pixels_Above_Line_36_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Pixels_Above_Line</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gint;</div> <div class='comment'>Set the number of blank pixels above paragraphs </div></li> <li><a name='Set_Pixels_Below_Line_37_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Pixels_Below_Line</span> (Text_Attr : Gtk_Text_Attributes; Margin : Gint);</div> <a name='Get_Pixels_Below_Line_38_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Pixels_Below_Line</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gint;</div> <div class='comment'>Set the number of blank pixels below paragraphs </div></li> <li><a name='Set_Pixels_Inside_Wrap_39_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Pixels_Inside_Wrap</span> (Text_Attr : Gtk_Text_Attributes; Margin : Gint);</div> <a name='Get_Pixels_Inside_Wrap_40_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Pixels_Inside_Wrap</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gint;</div> <div class='comment'>Set the number of pixels between wrapped lines in a paragraph </div></li> <li><a name='Set_Wrap_Mode_41_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Wrap_Mode</span> (Text_Attr : Gtk_Text_Attributes; Mode : <a href='gtk-enums.html'>Gtk.Enums.Gtk_Wrap_Mode</a>);</div> <a name='Get_Wrap_Mode_42_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Wrap_Mode</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> <a href='gtk-enums.html'>Gtk.Enums.Gtk_Wrap_Mode</a>;</div> <div class='comment'>Set the wrapping mode </div></li> <li><a name='Set_Invisible_43_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Invisible</span> (Text_Attr : Gtk_Text_Attributes; Invisible : Boolean);</div> <a name='Get_Invisible_44_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Invisible</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Boolean;</div> <div class='comment'>Whether the text is invisible </div></li> <li><a name='Set_Bg_Full_Height_45_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Bg_Full_Height</span> (Text_Attr : Gtk_Text_Attributes; Full_Height : Boolean);</div> <a name='Get_Bg_Full_Height_46_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Bg_Full_Height</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Boolean;</div> <div class='comment'>Whether the background occupies the full line height rather than just the area occupied by the text. </div></li> <li><a name='Set_Editable_47_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Editable</span> (Text_Attr : Gtk_Text_Attributes; Editable : Boolean);</div> <a name='Get_Editable_48_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Editable</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Boolean;</div> <div class='comment'>Whether the text is editable </div></li> <li><a name='Set_Tabs_49_'></a> <div class='profile'><b>procedure</b> <span class='name'>Set_Tabs</span> (Text_Attr : Gtk_Text_Attributes; Tabs : Pango.Tabs.Pango_Tab_Array);</div> <a name='Get_Tabs_50_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Tabs</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Pango.Tabs.Pango_Tab_Array;</div> <div class='comment'>Set the default tab stops for paragraphs </div></li> <li><a name='Get_Appearance_51_'></a> <div class='profile'><b>function</b> <span class='name'>Get_Appearance</span> (Text_Attr : Gtk_Text_Attributes) <b>return</b> Gtk_Text_Appearance;</div> <div class='comment'>Return the appearance of the text. This can be modified with the subprograms above. </div></li> </ul> </div> <!-- subprograms --> </div> <!-- notebook_page1 --> <div id='notebook_page3' class='notebookPage'> <a name='Properties'></a> <div class='properties'> <h2>Properties</h2> <ul> </ul> </div> <!-- properties --> </div> <!-- notebook_page3 --> </div> <!-- documentation --> <div id='rightSide'> <div id='Index'> <h2>Alphabetical Index</h2> <ul> <li><a href='#Copy_5_' onclick='return switchPage("page1")'>Copy</a></li> <li><a href='#Copy_Values_6_' onclick='return switchPage("page1")'>Copy_Values</a></li> <li><a href='#Get_Appearance_51_' onclick='return switchPage("page1")'>Get_Appearance</a></li> <li><a href='#Get_Bg_Color_16_' onclick='return switchPage("page1")'>Get_Bg_Color</a></li> <li><a href='#Get_Bg_Full_Height_46_' onclick='return switchPage("page1")'>Get_Bg_Full_Height</a></li> <li><a href='#Get_Bg_Stipple_20_' onclick='return switchPage("page1")'>Get_Bg_Stipple</a></li> <li><a href='#Get_Direction_26_' onclick='return switchPage("page1")'>Get_Direction</a></li> <li><a href='#Get_Editable_48_' onclick='return switchPage("page1")'>Get_Editable</a></li> <li><a href='#Get_Fg_Color_14_' onclick='return switchPage("page1")'>Get_Fg_Color</a></li> <li><a href='#Get_Fg_Stipple_18_' onclick='return switchPage("page1")'>Get_Fg_Stipple</a></li> <li><a href='#Get_Font_22_' onclick='return switchPage("page1")'>Get_Font</a></li> <li><a href='#Get_Font_Scale_28_' onclick='return switchPage("page1")'>Get_Font_Scale</a></li> <li><a href='#Get_Indent_34_' onclick='return switchPage("page1")'>Get_Indent</a></li> <li><a href='#Get_Invisible_44_' onclick='return switchPage("page1")'>Get_Invisible</a></li> <li><a href='#Get_Justification_24_' onclick='return switchPage("page1")'>Get_Justification</a></li> <li><a href='#Get_Left_Margin_30_' onclick='return switchPage("page1")'>Get_Left_Margin</a></li> <li><a href='#Get_Pixels_Above_Line_36_' onclick='return switchPage("page1")'>Get_Pixels_Above_Line</a></li> <li><a href='#Get_Pixels_Below_Line_38_' onclick='return switchPage("page1")'>Get_Pixels_Below_Line</a></li> <li><a href='#Get_Pixels_Inside_Wrap_40_' onclick='return switchPage("page1")'>Get_Pixels_Inside_Wrap</a></li> <li><a href='#Get_Right_Margin_32_' onclick='return switchPage("page1")'>Get_Right_Margin</a></li> <li><a href='#Get_Rise_8_' onclick='return switchPage("page1")'>Get_Rise</a></li> <li><a href='#Get_Strikethrough_12_' onclick='return switchPage("page1")'>Get_Strikethrough</a></li> <li><a href='#Get_Tabs_50_' onclick='return switchPage("page1")'>Get_Tabs</a></li> <li><a href='#Get_Type_2_' onclick='return switchPage("page1")'>Get_Type</a></li> <li><a href='#Get_Underline_10_' onclick='return switchPage("page1")'>Get_Underline</a></li> <li><a href='#Get_Wrap_Mode_42_' onclick='return switchPage("page1")'>Get_Wrap_Mode</a></li> <li><a href='#Gtk_New_1_' onclick='return switchPage("page1")'>Gtk_New</a></li> <li><a href='#Ref_3_' onclick='return switchPage("page1")'>Ref</a></li> <li><a href='#Set_Bg_Color_15_' onclick='return switchPage("page1")'>Set_Bg_Color</a></li> <li><a href='#Set_Bg_Full_Height_45_' onclick='return switchPage("page1")'>Set_Bg_Full_Height</a></li> <li><a href='#Set_Bg_Stipple_19_' onclick='return switchPage("page1")'>Set_Bg_Stipple</a></li> <li><a href='#Set_Direction_25_' onclick='return switchPage("page1")'>Set_Direction</a></li> <li><a href='#Set_Editable_47_' onclick='return switchPage("page1")'>Set_Editable</a></li> <li><a href='#Set_Fg_Color_13_' onclick='return switchPage("page1")'>Set_Fg_Color</a></li> <li><a href='#Set_Fg_Stipple_17_' onclick='return switchPage("page1")'>Set_Fg_Stipple</a></li> <li><a href='#Set_Font_21_' onclick='return switchPage("page1")'>Set_Font</a></li> <li><a href='#Set_Font_Scale_27_' onclick='return switchPage("page1")'>Set_Font_Scale</a></li> <li><a href='#Set_Indent_33_' onclick='return switchPage("page1")'>Set_Indent</a></li> <li><a href='#Set_Invisible_43_' onclick='return switchPage("page1")'>Set_Invisible</a></li> <li><a href='#Set_Justification_23_' onclick='return switchPage("page1")'>Set_Justification</a></li> <li><a href='#Set_Left_Margin_29_' onclick='return switchPage("page1")'>Set_Left_Margin</a></li> <li><a href='#Set_Pixels_Above_Line_35_' onclick='return switchPage("page1")'>Set_Pixels_Above_Line</a></li> <li><a href='#Set_Pixels_Below_Line_37_' onclick='return switchPage("page1")'>Set_Pixels_Below_Line</a></li> <li><a href='#Set_Pixels_Inside_Wrap_39_' onclick='return switchPage("page1")'>Set_Pixels_Inside_Wrap</a></li> <li><a href='#Set_Right_Margin_31_' onclick='return switchPage("page1")'>Set_Right_Margin</a></li> <li><a href='#Set_Rise_7_' onclick='return switchPage("page1")'>Set_Rise</a></li> <li><a href='#Set_Strikethrough_11_' onclick='return switchPage("page1")'>Set_Strikethrough</a></li> <li><a href='#Set_Tabs_49_' onclick='return switchPage("page1")'>Set_Tabs</a></li> <li><a href='#Set_Underline_9_' onclick='return switchPage("page1")'>Set_Underline</a></li> <li><a href='#Set_Wrap_Mode_41_' onclick='return switchPage("page1")'>Set_Wrap_Mode</a></li> <li><a href='#Unref_4_' onclick='return switchPage("page1")'>Unref</a></li> </ul> </div> <!-- Index --> </div> <!-- rightSide --> <script language='javascript'>switchPage('page1'); adjust_height()</script> </body> </html>