1. Compilation Units

    1. Cairo
    2. Cairo.Font_Face
    3. Cairo.Font_Options
    4. Cairo.Image_Surface
    5. Cairo.PDF
    6. Cairo.Matrix
    7. Cairo.Pattern
    8. Cairo.Png
    9. Cairo.SVG
    10. Cairo.Region
    11. Cairo.Scaled_Font
    12. Cairo.Surface
    13. Fontconfig
    14. Gdk
    15. Gdk.Cairo
    16. Gdk.Color
    17. Gdk.Cursor
    18. Gdk.Device
    19. Gdk.Device_Manager
    20. Gdk.Device_Tool
    21. Gdk.Display
    22. Gdk.Display_Manager
    23. Gdk.Dnd
    24. Gdk.Drag_Contexts
    25. Gdk.Drawing_Context
    26. Gdk.Event
      1. Gdk.Event.Handler_Set_User_Data
    27. Gdk.Frame_Clock
    28. Gdk.Frame_Timings
    29. Gdk.GLContext
    30. Gdk.Input
      1. Gdk.Input.Input_Add
    31. Gdk.Keyval
    32. Gdk.Main
    33. Gdk.Monitor
    34. Gdk.Pixbuf
    35. Gdk.RGBA
    36. Gdk.Property
    37. Gdk.Rectangle
    38. Gdk.Screen
    39. Gdk.Seat
    40. Gdk.Threads
    41. Gdk.Types
    42. Gdk.Types.Keysyms
    43. Gdk.Visual
    44. Gdk.Window
      1. Gdk.Window.Invalidate_Maybe_Recurse_User_Data
    45. Gdk.Window_Attr
    46. Glib
    47. Glib.Action
    48. Glib.Action_Group
    49. Glib.Action_Map
    50. Glib.Application
    51. Glib.Cancellable
      1. Glib.Cancellable.Connect_User_Data
    52. Glib.Convert
    53. Glib.Enums
    54. Glib.GSlist
      1. Glib.GSlist.Generic_SList
    55. Glib.Error
    56. Glib.G_Icon
    57. Glib.Generic_Properties
      1. Glib.Generic_Properties.Generic_Enumeration_Property
      2. Glib.Generic_Properties.Generic_Internal_Boxed_Property
      3. Glib.Generic_Properties.Generic_Internal_Discrete_Property
    58. Glib.Glist
      1. Glib.Glist.Generic_List
    59. Glib.Gnodes
      1. Glib.Gnodes.Gnode_Data
    60. Glib.Graphs
    61. Glib.Graphs.Layouts
      1. Glib.Graphs.Layouts.Layered_Layouts
    62. Glib.IOChannel
    63. Glib.Key_File
    64. Glib.List_Model
    65. Glib.Main
      1. Glib.Main.Generic_Sources
    66. Glib.Menu
    67. Glib.Menu_Model
    68. Glib.Messages
    69. Glib.Module
    70. Glib.Notification
    71. Glib.Object
      1. Glib.Object.User_Data
      2. Glib.Object.User_Data_Closure
    72. Glib.Option
      1. Glib.Option.Set_Translate_Func_User_Data
    73. Glib.Poll
    74. Glib.Properties
    75. Glib.Properties.Creation
    76. Glib.Simple_Action
    77. Glib.Simple_Action_Group
    78. Glib.Spawn
    79. Glib.String
    80. Glib.Type_Conversion_Hooks
      1. Glib.Type_Conversion_Hooks.Hook_Registrator
    81. Glib.Types
      1. Glib.Types.Implements
    82. Glib.Unicode
    83. Glib.Utils
    84. Glib.Values
    85. Glib.Variant
    86. Glib.XML
    87. Gtk
    88. Gtk.About_Dialog
    89. Gtk.Accel_Group
    90. Gtk.Accel_Label
    91. Gtk.Accel_Map
      1. Gtk.Accel_Map.Foreach_Unfiltered_User_Data
      2. Gtk.Accel_Map.Foreach_User_Data
    92. Gtk.Action
    93. Gtk.Action_Bar
    94. Gtk.Action_Group
      1. Gtk.Action_Group.Set_Translate_Func_User_Data
    95. Gtk.Actionable
    96. Gtk.Activatable
    97. Gtk.Adjustment
    98. Gtk.Alignment
    99. Gtk.Application
    100. Gtk.Application_Window
    101. Gtk.Arguments
    102. Gtk.Arrow
    103. Gtk.Aspect_Frame
    104. Gtk.Assistant
      1. Gtk.Assistant.Set_Forward_Page_Func_User_Data
    105. Gtk.Bin
    106. Gtk.Binding_Set
    107. Gtk.Bindings
    108. Gtk.Box
    109. Gtk.Buildable
    110. Gtk.Builder
    111. Gtk.Button
    112. Gtk.Button_Box
    113. Gtk.Calendar
      1. Gtk.Calendar.Set_Detail_Func_User_Data
    114. Gtk.Cell_Area
      1. Gtk.Cell_Area.Foreach_Alloc_User_Data
      2. Gtk.Cell_Area.Foreach_User_Data
      3. Gtk.Cell_Area.Set_Cell_Data_Func_User_Data
    115. Gtk.Cell_Area_Box
      1. Gtk.Cell_Area_Box.Set_Cell_Data_Func_User_Data
    116. Gtk.Cell_Area_Context
    117. Gtk.Cell_Editable
    118. Gtk.Cell_Layout
      1. Gtk.Cell_Layout.Set_Cell_Data_Func_User_Data
    119. Gtk.Cell_Renderer
    120. Gtk.Cell_Renderer_Accel
    121. Gtk.Cell_Renderer_Combo
    122. Gtk.Cell_Renderer_Pixbuf
    123. Gtk.Cell_Renderer_Progress
    124. Gtk.Cell_Renderer_Spin
    125. Gtk.Cell_Renderer_Spinner
    126. Gtk.Cell_Renderer_Text
    127. Gtk.Cell_Renderer_Toggle
    128. Gtk.Cell_View
      1. Gtk.Cell_View.Set_Cell_Data_Func_User_Data
    129. Gtk.Check_Button
    130. Gtk.Check_Menu_Item
    131. Gtk.Clipboard
    132. Gtk.Color_Button
    133. Gtk.Color_Chooser
    134. Gtk.Color_Chooser_Dialog
    135. Gtk.Color_Chooser_Widget
    136. Gtk.Color_Selection
    137. Gtk.Color_Selection_Dialog
    138. Gtk.Combo_Box
      1. Gtk.Combo_Box.Set_Cell_Data_Func_User_Data
      2. Gtk.Combo_Box.Set_Row_Separator_Func_User_Data
    139. Gtk.Combo_Box_Text
      1. Gtk.Combo_Box_Text.Set_Cell_Data_Func_User_Data
    140. Gtk.Container
      1. Gtk.Container.Forall_User_Data
      2. Gtk.Container.Foreach_User_Data
    141. Gtk.Css_Provider
    142. Gtk.Css_Section
    143. Gtk.Dialog
    144. Gtk.Dnd
    145. Gtk.Drawing_Area
    146. Gtk.Editable
    147. Gtk.Entry_Buffer
    148. Gtk.Entry_Completion
      1. Gtk.Entry_Completion.Set_Cell_Data_Func_User_Data
      2. Gtk.Entry_Completion.Set_Match_Func_User_Data
    149. Gtk.Enums
    150. Gtk.Event_Box
    151. Gtk.Event_Controller
    152. Gtk.Expander
    153. Gtk.File_Chooser
    154. Gtk.File_Chooser_Button
    155. Gtk.File_Chooser_Dialog
    156. Gtk.File_Chooser_Widget
    157. Gtk.File_Filter
      1. Gtk.File_Filter.Add_Custom_User_Data
    158. Gtk.Fixed
    159. Gtk.Flow_Box
      1. Gtk.Flow_Box.Bind_Model_User_Data
      2. Gtk.Flow_Box.Selected_Foreach_User_Data
      3. Gtk.Flow_Box.Set_Filter_Func_User_Data
      4. Gtk.Flow_Box.Set_Sort_Func_User_Data
    160. Gtk.Flow_Box_Child
    161. Gtk.Font_Button
      1. Gtk.Font_Button.Set_Filter_Func_User_Data
    162. Gtk.Font_Chooser
      1. Gtk.Font_Chooser.Set_Filter_Func_User_Data
    163. Gtk.Font_Chooser_Dialog
      1. Gtk.Font_Chooser_Dialog.Set_Filter_Func_User_Data
    164. Gtk.Font_Chooser_Widget
      1. Gtk.Font_Chooser_Widget.Set_Filter_Func_User_Data
    165. Gtk.Font_Selection
    166. Gtk.Font_Selection_Dialog
    167. Gtk.Frame
    168. Gtk.GLArea
    169. Gtk.GRange
    170. Gtk.GEntry
    171. Gtk.Gesture
    172. Gtk.Gesture_Drag
    173. Gtk.Gesture_Long_Press
    174. Gtk.Gesture_Multi_Press
    175. Gtk.Gesture_Pan
    176. Gtk.Gesture_Rotate
    177. Gtk.Gesture_Single
    178. Gtk.Gesture_Swipe
    179. Gtk.Gesture_Zoom
    180. Gtk.Gradient
    181. Gtk.Grid
    182. Gtk.Handle_Box
    183. Gtk.Hbutton_Box
    184. Gtk.Header_Bar
    185. Gtk.IM_Context
    186. Gtk.IM_Context_Simple
    187. Gtk.IM_Multi_Context
    188. Gtk.Hsv
    189. Gtk.Icon_Factory
    190. Gtk.Icon_Set
    191. Gtk.Icon_Source
    192. Gtk.Icon_Theme
    193. Gtk.Icon_View
      1. Gtk.Icon_View.Selected_Foreach_User_Data
      2. Gtk.Icon_View.Set_Cell_Data_Func_User_Data
    194. Gtk.Image
    195. Gtk.Image_Menu_Item
    196. Gtk.Info_Bar
    197. Gtk.Invisible
    198. Gtk.Label
    199. Gtk.Layout
    200. Gtk.Level_Bar
    201. Gtk.Link_Button
    202. Gtk.List_Box
      1. Gtk.List_Box.Bind_Model_User_Data
      2. Gtk.List_Box.Selected_Foreach_User_Data
      3. Gtk.List_Box.Set_Filter_Func_User_Data
      4. Gtk.List_Box.Set_Header_Func_User_Data
      5. Gtk.List_Box.Set_Sort_Func_User_Data
    203. Gtk.List_Box_Row
    204. Gtk.List_Store
      1. Gtk.List_Store.Foreach_User_Data
      2. Gtk.List_Store.Set_Default_Sort_Func_User_Data
      3. Gtk.List_Store.Set_Sort_Func_User_Data
    205. Gtk.Main
    206. Gtk.Menu
      1. Gtk.Menu.Popup_For_Device_User_Data
      2. Gtk.Menu.Popup_User_Data
    207. Gtk.Menu_Bar
    208. Gtk.Menu_Button
    209. Gtk.Menu_Item
    210. Gtk.Menu_Shell
    211. Gtk.Menu_Tool_Button
    212. Gtk.Message_Dialog
    213. Gtk.Misc
    214. Gtk.Notebook
    215. Gtk.Offscreen_Window
    216. Gtk.Orientable
    217. Gtk.Overlay
    218. Gtk.Page_Setup
    219. Gtk.Paned
    220. Gtk.Paper_Size
    221. Gtk.Popover
    222. Gtk.Print_Context
    223. Gtk.Print_Operation
    224. Gtk.Print_Operation_Preview
    225. Gtk.Print_Settings
      1. Gtk.Print_Settings.Foreach_User_Data
    226. Gtk.Progress_Bar
    227. Gtk.Radio_Action
    228. Gtk.Radio_Button
    229. Gtk.Radio_Menu_Item
    230. Gtk.Radio_Tool_Button
    231. Gtk.Rc
    232. Gtk.Recent_Action
      1. Gtk.Recent_Action.Set_Sort_Func_User_Data
    233. Gtk.Recent_Chooser
      1. Gtk.Recent_Chooser.Set_Sort_Func_User_Data
    234. Gtk.Recent_Chooser_Dialog
      1. Gtk.Recent_Chooser_Dialog.Set_Sort_Func_User_Data
    235. Gtk.Recent_Chooser_Menu
      1. Gtk.Recent_Chooser_Menu.Set_Sort_Func_User_Data
    236. Gtk.Recent_Chooser_Widget
      1. Gtk.Recent_Chooser_Widget.Set_Sort_Func_User_Data
    237. Gtk.Recent_Filter
      1. Gtk.Recent_Filter.Add_Custom_User_Data
    238. Gtk.Recent_Info
    239. Gtk.Recent_Manager
    240. Gtk.Revealer
    241. Gtk.Scale
    242. Gtk.Scale_Button
    243. Gtk.Scrollable
    244. Gtk.Scrollbar
    245. Gtk.Scrolled_Window
    246. Gtk.Search_Bar
    247. Gtk.Search_Entry
    248. Gtk.Selection_Data
    249. Gtk.Separator
    250. Gtk.Separator_Menu_Item
    251. Gtk.Separator_Tool_Item
    252. Gtk.Settings
    253. Gtk.Shortcuts_Window
    254. Gtk.Size_Group
    255. Gtk.Spin_Button
    256. Gtk.Spinner
    257. Gtk.Stack
    258. Gtk.Stack_Switcher
    259. Gtk.Status_Bar
    260. Gtk.Status_Icon
    261. Gtk.Stock
    262. Gtk.Style
    263. Gtk.Style_Context
    264. Gtk.Style_Properties
    265. Gtk.Style_Provider
    266. Gtk.Switch
    267. Gtk.Symbolic_Color
    268. Gtk.Table
    269. Gtk.Target_Entry
    270. Gtk.Target_List
    271. Gtk.Tearoff_Menu_Item
    272. Gtk.Text_Attributes
    273. Gtk.Text_Buffer
    274. Gtk.Text_Child
    275. Gtk.Text_Child_Anchor
    276. Gtk.Text_Iter
    277. Gtk.Text_Mark
    278. Gtk.Text_Tag
    279. Gtk.Text_Tag_Table
      1. Gtk.Text_Tag_Table.Foreach_User_Data
    280. Gtk.Text_View
    281. Gtk.Theming_Engine
    282. Gtk.Toggle_Action
    283. Gtk.Toggle_Button
    284. Gtk.Toggle_Tool_Button
    285. Gtk.Tool_Button
    286. Gtk.Tool_Item
    287. Gtk.Tool_Item_Group
    288. Gtk.Tool_Palette
    289. Gtk.Tool_Shell
    290. Gtk.Toolbar
    291. Gtk.Tooltip
    292. Gtk.Tree_Drag_Dest
    293. Gtk.Tree_Drag_Source
    294. Gtk.Tree_Model
      1. Gtk.Tree_Model.Foreach_User_Data
    295. Gtk.Tree_Model.Utils
    296. Gtk.Tree_Model_Filter
      1. Gtk.Tree_Model_Filter.Foreach_User_Data
      2. Gtk.Tree_Model_Filter.Set_Modify_Func_User_Data
      3. Gtk.Tree_Model_Filter.Set_Visible_Func_User_Data
    297. Gtk.Tree_Model_Sort
      1. Gtk.Tree_Model_Sort.Foreach_User_Data
      2. Gtk.Tree_Model_Sort.Set_Default_Sort_Func_User_Data
      3. Gtk.Tree_Model_Sort.Set_Sort_Func_User_Data
    298. Gtk.Tree_Row_Reference
    299. Gtk.Tree_Selection
      1. Gtk.Tree_Selection.Selected_Foreach_User_Data
      2. Gtk.Tree_Selection.Set_Select_Function_User_Data
    300. Gtk.Tree_Sortable
      1. Gtk.Tree_Sortable.Set_Default_Sort_Func_User_Data
      2. Gtk.Tree_Sortable.Set_Sort_Func_User_Data
    301. Gtk.Tree_Store
      1. Gtk.Tree_Store.Foreach_User_Data
      2. Gtk.Tree_Store.Generic_Set
      3. Gtk.Tree_Store.Set_Default_Sort_Func_User_Data
      4. Gtk.Tree_Store.Set_Sort_Func_User_Data
    302. Gtk.Tree_View
      1. Gtk.Tree_View.Insert_Column_With_Data_Func_User_Data
      2. Gtk.Tree_View.Map_Expanded_Rows_User_Data
      3. Gtk.Tree_View.Set_Column_Drag_Function_User_Data
      4. Gtk.Tree_View.Set_Destroy_Count_Func_User_Data
      5. Gtk.Tree_View.Set_Row_Separator_Func_User_Data
      6. Gtk.Tree_View.Set_Search_Equal_Func_User_Data
      7. Gtk.Tree_View.Set_Search_Position_Func_User_Data
    303. Gtk.Tree_View_Column
      1. Gtk.Tree_View_Column.Set_Cell_Data_Func_User_Data
    304. Gtk.Type_Conversion
    305. Gtk.UI_Manager
    306. Gtk.Vbutton_Box
    307. Gtk.Viewport
    308. Gtk.Volume_Button
    309. Gtk.Widget
      1. Gtk.Widget.Add_Tick_Callback_User_Data
      2. Gtk.Widget.Set_Connect_Func_User_Data
    310. Gtk.Window
    311. Gtkada
    312. Gtkada.Abstract_List_Model
    313. Gtkada.Abstract_Tree_Model
    314. Gtkada.Application
    315. Gtkada.Bindings
    316. Gtkada.Builder
    317. Gtkada.C
      1. Gtkada.C.Unbounded_Arrays
    318. Gtkada.Canvas
    319. Gtkada.Canvas_View
    320. Gtkada.Canvas_View.Astar
    321. Gtkada.Canvas_View.Links
    322. Gtkada.Canvas_View.Models
      1. Gtkada.Canvas_View.Models.Rtree_Models
    323. Gtkada.Canvas_View.Models.Layers
    324. Gtkada.Canvas_View.Objects
    325. Gtkada.Canvas_View.Rtrees
    326. Gtkada.Canvas_View.Views
    327. Gtkada.Dialogs
    328. Gtkada.File_Selection
    329. Gtkada.Handlers
    330. Gtkada.Intl
    331. Gtkada.MDI
      1. Gtkada.MDI.Desktop
    332. Gtkada.Multi_Paned
    333. Gtkada.Multiline_Entry
    334. Gtkada.Pixmaps
    335. Gtkada.Printing
    336. Gtkada.Stock_Icons
    337. Gtkada.Stock_Labels
    338. Gtkada.Style
    339. Gtkada.Types
    340. Pango
    341. Pango.Attributes
    342. Pango.Cairo
    343. Pango.Context
    344. Pango.Coverage
    345. Pango.Enums
    346. Pango.Font
    347. Pango.Font_Face
    348. Pango.Font_Family
    349. Pango.Font_Map
    350. Pango.Font_Metrics
    351. Pango.Fontset
      1. Pango.Fontset.Foreach_User_Data
    352. Pango.Language
    353. Pango.Layout
    354. Pango.Matrix
    355. Pango.Tabs
  2. Tagged Types

    1. Gdk.Device.Gdk_Device_Record
    2. Gdk.Device_Manager.Gdk_Device_Manager_Record
    3. Gdk.Device_Tool.Gdk_Device_Tool_Record
    4. Gdk.Display.Gdk_Display_Record
    5. Gdk.Drag_Contexts.Drag_Context_Record
    6. Gdk.Drawing_Context.Gdk_Drawing_Context_Record
    7. Gdk.Frame_Clock.Gdk_Frame_Clock_Record
    8. Gdk.Frame_Timings.Gdk_Frame_Timings
    9. Gdk.GLContext.Gdk_GLContext_Record
    10. Gdk.Monitor.Gdk_Monitor_Record
    11. Gdk.Pixbuf.Gdk_Pixbuf_Record
    12. Gdk.Screen.Gdk_Screen_Record
    13. Glib.Application.Gapplication_Command_Line_Record
    14. Glib.Application.Gapplication_Record
    15. Gdk.Seat.Gdk_Seat_Record
    16. Glib.C_Boxed
    17. Glib.Cancellable.Gcancellable_Record
    18. Glib.Graphs.Layouts.Base_Dummy_Vertex
    19. Glib.Graphs.Edge
    20. Glib.Graphs.Vertex
    21. Glib.Menu.Gmenu_Item_Record
    22. Glib.Menu.Gmenu_Record
    23. Glib.Menu_Model.Gmenu_Attribute_Iter_Record
    24. Glib.Menu_Model.Gmenu_Link_Iter_Record
    25. Glib.Menu_Model.Gmenu_Model_Record
    26. Glib.Object.GObject_Record
    27. Glib.Notification.Gnotification_Record
    28. Glib.Object.G_Binding_Record
    29. Glib.Option.Goption_Context
    30. Glib.Simple_Action.Gsimple_Action_Record
    31. Glib.Simple_Action_Group.Gsimple_Action_Group_Record
    32. Glib.Variant.Gvariant
    33. Gtk.About_Dialog.Gtk_About_Dialog_Record
    34. Gtk.Accel_Group.Gtk_Accel_Group_Record
    35. Gtk.Accel_Label.Gtk_Accel_Label_Record
    36. Gtk.Accel_Map.Gtk_Accel_Map_Record
    37. Gtk.Action.Gtk_Action_Record
    38. Gtk.Action_Bar.Gtk_Action_Bar_Record
    39. Gtk.Action_Group.Gtk_Action_Group_Record
    40. Gtk.Adjustment.Gtk_Adjustment_Record
    41. Gtk.Alignment.Gtk_Alignment_Record
    42. Gtk.Application.Gtk_Application_Record
    43. Gtk.Application_Window.Gtk_Application_Window_Record
    44. Gtk.Arrow.Gtk_Arrow_Record
    45. Gtk.Aspect_Frame.Gtk_Aspect_Frame_Record
    46. Gtk.Assistant.Gtk_Assistant_Record
    47. Gtk.Bin.Gtk_Bin_Record
    48. Gtk.Box.Gtk_Box_Record
    49. Gtk.Builder.Gtk_Builder_Record
    50. Gtk.Button.Gtk_Button_Record
    51. Gtk.Button_Box.Gtk_Button_Box_Record
    52. Gtk.Calendar.Gtk_Calendar_Record
    53. Gtk.Cell_Area.Gtk_Cell_Area_Record
    54. Gtk.Cell_Area_Box.Gtk_Cell_Area_Box_Record
    55. Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record
    56. Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record
    57. Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel_Record
    58. Gtk.Cell_Renderer_Combo.Gtk_Cell_Renderer_Combo_Record
    59. Gtk.Cell_Renderer_Pixbuf.Gtk_Cell_Renderer_Pixbuf_Record
    60. Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress_Record
    61. Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin_Record
    62. Gtk.Cell_Renderer_Spinner.Gtk_Cell_Renderer_Spinner_Record
    63. Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text_Record
    64. Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle_Record
    65. Gtk.Cell_View.Gtk_Cell_View_Record
    66. Gtk.Check_Button.Gtk_Check_Button_Record
    67. Gtk.Check_Menu_Item.Gtk_Check_Menu_Item_Record
    68. Gtk.Clipboard.Gtk_Clipboard_Record
    69. Gtk.Color_Button.Gtk_Color_Button_Record
    70. Gtk.Color_Chooser_Dialog.Gtk_Color_Chooser_Dialog_Record
    71. Gtk.Color_Chooser_Widget.Gtk_Color_Chooser_Widget_Record
    72. Gtk.Color_Selection.Gtk_Color_Selection_Record
    73. Gtk.Color_Selection_Dialog.Gtk_Color_Selection_Dialog_Record
    74. Gtk.Combo_Box.Gtk_Combo_Box_Record
    75. Gtk.Combo_Box_Text.Gtk_Combo_Box_Text_Record
    76. Gtk.Container.Gtk_Container_Record
    77. Gtk.Css_Provider.Gtk_Css_Provider_Record
    78. Gtk.Css_Section.Gtk_Css_Section
    79. Gtk.Dialog.Gtk_Dialog_Record
    80. Gtk.Drawing_Area.Gtk_Drawing_Area_Record
    81. Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record
    82. Gtk.Entry_Completion.Gtk_Entry_Completion_Record
    83. Gtk.Event_Box.Gtk_Event_Box_Record
    84. Gtk.Event_Controller.Gtk_Event_Controller_Record
    85. Gtk.Expander.Gtk_Expander_Record
    86. Gtk.File_Chooser_Button.Gtk_File_Chooser_Button_Record
    87. Gtk.File_Chooser_Dialog.Gtk_File_Chooser_Dialog_Record
    88. Gtk.File_Chooser_Widget.Gtk_File_Chooser_Widget_Record
    89. Gtk.File_Filter.Gtk_File_Filter_Record
    90. Gtk.Fixed.Gtk_Fixed_Record
    91. Gtk.Flow_Box.Gtk_Flow_Box_Record
    92. Gtk.Flow_Box_Child.Gtk_Flow_Box_Child_Record
    93. Gtk.Font_Button.Gtk_Font_Button_Record
    94. Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog_Record
    95. Gtk.Font_Chooser_Widget.Gtk_Font_Chooser_Widget_Record
    96. Gtk.Font_Selection.Gtk_Font_Selection_Record
    97. Gtk.Font_Selection_Dialog.Gtk_Font_Selection_Dialog_Record
    98. Gtk.Frame.Gtk_Frame_Record
    99. Gtk.GLArea.Gtk_GLArea_Record
    100. Gtk.GRange.Gtk_Range_Record
    101. Gtk.GEntry.Gtk_Entry_Record
    102. Gtk.Gesture.Gtk_Gesture_Record
    103. Gtk.Gesture_Drag.Gtk_Gesture_Drag_Record
    104. Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press_Record
    105. Gtk.Gesture_Multi_Press.Gtk_Gesture_Multi_Press_Record
    106. Gtk.Gesture_Pan.Gtk_Gesture_Pan_Record
    107. Gtk.Gesture_Rotate.Gtk_Gesture_Rotate_Record
    108. Gtk.Gesture_Single.Gtk_Gesture_Single_Record
    109. Gtk.Gesture_Swipe.Gtk_Gesture_Swipe_Record
    110. Gtk.Gesture_Zoom.Gtk_Gesture_Zoom_Record
    111. Gtk.Gradient.Gtk_Gradient
    112. Gtk.Grid.Gtk_Grid_Record
    113. Gtk.Handle_Box.Gtk_Handle_Box_Record
    114. Gtk.Hbutton_Box.Gtk_Hbutton_Box_Record
    115. Gtk.Header_Bar.Gtk_Header_Bar_Record
    116. Gtk.IM_Context.Gtk_IM_Context_Record
    117. Gtk.IM_Context_Simple.Gtk_IM_Context_Simple_Record
    118. Gtk.IM_Multi_Context.Gtk_IM_Multi_Context_Record
    119. Gtk.Hsv.Gtk_Hsv_Record
    120. Gtk.Icon_Factory.Gtk_Icon_Factory_Record
    121. Gtk.Icon_Set.Gtk_Icon_Set
    122. Gtk.Icon_Source.Gtk_Icon_Source
    123. Gtk.Icon_Theme.Gtk_Icon_Info_Record
    124. Gtk.Icon_Theme.Gtk_Icon_Theme_Record
    125. Gtk.Icon_View.Gtk_Icon_View_Record
    126. Gtk.Image.Gtk_Image_Record
    127. Gtk.Image_Menu_Item.Gtk_Image_Menu_Item_Record
    128. Gtk.Info_Bar.Gtk_Info_Bar_Record
    129. Gtk.Invisible.Gtk_Invisible_Record
    130. Gtk.Label.Gtk_Label_Record
    131. Gtk.Layout.Gtk_Layout_Record
    132. Gtk.Level_Bar.Gtk_Level_Bar_Record
    133. Gtk.Link_Button.Gtk_Link_Button_Record
    134. Gtk.List_Box.Gtk_List_Box_Record
    135. Gtk.List_Box_Row.Gtk_List_Box_Row_Record
    136. Gtk.List_Store.Gtk_List_Store_Record
    137. Gtk.Menu.Gtk_Menu_Record
    138. Gtk.Menu_Bar.Gtk_Menu_Bar_Record
    139. Gtk.Menu_Button.Gtk_Menu_Button_Record
    140. Gtk.Menu_Item.Gtk_Menu_Item_Record
    141. Gtk.Menu_Shell.Gtk_Menu_Shell_Record
    142. Gtk.Menu_Tool_Button.Gtk_Menu_Tool_Button_Record
    143. Gtk.Message_Dialog.Gtk_Message_Dialog_Record
    144. Gtk.Misc.Gtk_Misc_Record
    145. Gtk.Notebook.Gtk_Notebook_Record
    146. Gtk.Offscreen_Window.Gtk_Offscreen_Window_Record
    147. Gtk.Overlay.Gtk_Overlay_Record
    148. Gtk.Page_Setup.Gtk_Page_Setup_Record
    149. Gtk.Paned.Gtk_Paned_Record
    150. Gtk.Paper_Size.Gtk_Paper_Size
    151. Gtk.Popover.Gtk_Popover_Record
    152. Gtk.Print_Context.Gtk_Print_Context_Record
    153. Gtk.Print_Operation.Gtk_Print_Operation_Record
    154. Gtk.Print_Settings.Gtk_Print_Settings_Record
    155. Gtk.Progress_Bar.Gtk_Progress_Bar_Record
    156. Gtk.Radio_Action.Gtk_Radio_Action_Record
    157. Gtk.Radio_Button.Gtk_Radio_Button_Record
    158. Gtk.Radio_Menu_Item.Gtk_Radio_Menu_Item_Record
    159. Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button_Record
    160. Gtk.Recent_Action.Gtk_Recent_Action_Record
    161. Gtk.Recent_Chooser_Dialog.Gtk_Recent_Chooser_Dialog_Record
    162. Gtk.Recent_Chooser_Menu.Gtk_Recent_Chooser_Menu_Record
    163. Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget_Record
    164. Gtk.Recent_Filter.Gtk_Recent_Filter_Record
    165. Gtk.Recent_Info.Gtk_Recent_Info
    166. Gtk.Recent_Manager.Gtk_Recent_Manager_Record
    167. Gtk.Revealer.Gtk_Revealer_Record
    168. Gtk.Scale.Gtk_Scale_Record
    169. Gtk.Scale_Button.Gtk_Scale_Button_Record
    170. Gtk.Scrollbar.Gtk_Scrollbar_Record
    171. Gtk.Scrolled_Window.Gtk_Scrolled_Window_Record
    172. Gtk.Search_Bar.Gtk_Search_Bar_Record
    173. Gtk.Search_Entry.Gtk_Search_Entry_Record
    174. Gtk.Selection_Data.Gtk_Selection_Data
    175. Gtk.Separator.Gtk_Separator_Record
    176. Gtk.Separator_Menu_Item.Gtk_Separator_Menu_Item_Record
    177. Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item_Record
    178. Gtk.Settings.Gtk_Settings_Record
    179. Gtk.Shortcuts_Window.Gtk_Shortcuts_Window_Record
    180. Gtk.Size_Group.Gtk_Size_Group_Record
    181. Gtk.Spin_Button.Gtk_Spin_Button_Record
    182. Gtk.Spinner.Gtk_Spinner_Record
    183. Gtk.Stack.Gtk_Stack_Record
    184. Gtk.Stack_Switcher.Gtk_Stack_Switcher_Record
    185. Gtk.Status_Bar.Gtk_Status_Bar_Record
    186. Gtk.Status_Icon.Gtk_Status_Icon_Record
    187. Gtk.Style.Gtk_Style_Record
    188. Gtk.Style_Context.Gtk_Style_Context_Record
    189. Gtk.Style_Properties.Gtk_Style_Properties_Record
    190. Gtk.Switch.Gtk_Switch_Record
    191. Gtk.Symbolic_Color.Gtk_Symbolic_Color
    192. Gtk.Table.Gtk_Table_Record
    193. Gtk.Target_List.Gtk_Target_List
    194. Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item_Record
    195. Gtk.Text_Buffer.Gtk_Text_Buffer_Record
    196. Gtk.Text_Child.Gtk_Text_Child_Anchor_Record
    197. Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record
    198. Gtk.Text_Mark.Gtk_Text_Mark_Record
    199. Gtk.Text_Tag.Gtk_Text_Tag_Record
    200. Gtk.Text_Tag_Table.Gtk_Text_Tag_Table_Record
    201. Gtk.Text_View.Gtk_Text_View_Record
    202. Gtk.Theming_Engine.Gtk_Theming_Engine_Record
    203. Gtk.Toggle_Action.Gtk_Toggle_Action_Record
    204. Gtk.Toggle_Button.Gtk_Toggle_Button_Record
    205. Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button_Record
    206. Gtk.Tool_Button.Gtk_Tool_Button_Record
    207. Gtk.Tool_Item.Gtk_Tool_Item_Record
    208. Gtk.Tool_Item_Group.Gtk_Tool_Item_Group_Record
    209. Gtk.Tool_Palette.Gtk_Tool_Palette_Record
    210. Gtk.Toolbar.Gtk_Toolbar_Record
    211. Gtk.Tooltip.Gtk_Tooltip_Record
    212. Gtk.Tree_Model.Gtk_Root_Tree_Model_Record
    213. Gtk.Tree_Model.Gtk_Tree_Path
    214. Gtk.Tree_Model_Filter.Gtk_Tree_Model_Filter_Record
    215. Gtk.Tree_Model_Sort.Gtk_Tree_Model_Sort_Record
    216. Gtk.Tree_Row_Reference.Gtk_Tree_Row_Reference
    217. Gtk.Tree_Selection.Gtk_Tree_Selection_Record
    218. Gtk.Tree_Store.Gtk_Tree_Store_Record
    219. Gtk.Tree_View.Gtk_Tree_View_Record
    220. Gtk.Tree_View_Column.Gtk_Tree_View_Column_Record
    221. Gtk.UI_Manager.Gtk_UI_Manager_Record
    222. Gtk.Vbutton_Box.Gtk_Vbutton_Box_Record
    223. Gtk.Viewport.Gtk_Viewport_Record
    224. Gtk.Volume_Button.Gtk_Volume_Button_Record
    225. Gtk.Widget.Gtk_Widget_Record
    226. Gtk.Window.Gtk_Window_Group_Record
    227. Gtk.Window.Gtk_Window_Record
    228. Gtkada.Abstract_List_Model.Gtk_Abstract_List_Model_Record
    229. Gtkada.Abstract_Tree_Model.Gtk_Abstract_Tree_Model_Record
    230. Gtkada.Application.Gtkada_Application_Record
    231. Gtkada.Builder.Gtkada_Builder_Record
    232. Gtkada.Canvas.Buffered_Item_Record
    233. Gtkada.Canvas.Canvas_Item_Record
    234. Gtkada.Canvas.Canvas_Link_Record
    235. Gtkada.Canvas_View.Abstract_Item_Record
    236. Gtkada.Canvas.Interactive_Canvas_Record
    237. Gtkada.Canvas_View.Canvas_Item_Record
    238. Gtkada.Canvas_View.Canvas_Link_Record
    239. Gtkada.Canvas_View.Canvas_Model_Record
    240. Gtkada.Canvas_View.Canvas_View_Record
    241. Gtkada.Canvas_View.Container_Item_Record
    242. Gtkada.Canvas_View.Editable_Text_Item_Record
    243. Gtkada.Canvas_View.Ellipse_Item_Record
    244. Gtkada.Canvas_View.Hr_Item_Record
    245. Gtkada.Canvas_View.Image_Item_Record
    246. Gtkada.Canvas_View.Models.Rtree_Models.Rtree_Model_Record
    247. Gtkada.Canvas_View.List_Canvas_Model_Record
    248. Gtkada.Canvas_View.Polyline_Item_Record
    249. Gtkada.Canvas_View.Rtrees.Rtree
    250. Gtkada.Canvas_View.Rect_Item_Record
    251. Gtkada.Canvas_View.Text_Item_Record
    252. Gtkada.Canvas_View.Views.Animator
    253. Gtkada.Canvas_View.Views.Minimap_View_Record
    254. Gtkada.MDI.MDI_Child_Record
    255. Gtkada.MDI.MDI_Window_Record
    256. Gtkada.Multi_Paned.Gtkada_Multi_Paned_Record
    257. Gtkada.Multiline_Entry.Gtkada_Multiline_Entry_Record
    258. Gtkada.Printing.Gtkada_Print_Operation_Record
    259. Gtkada.Style.Drawing_Style
    260. Pango.Attributes.Pango_Attr_List
    261. Pango.Context.Pango_Context_Record
    262. Pango.Coverage.Pango_Coverage_Record
    263. Pango.Font.Pango_Font_Record
    264. Pango.Font_Face.Pango_Font_Face_Record
    265. Pango.Font_Family.Pango_Font_Family_Record
    266. Pango.Font_Map.Pango_Font_Map_Record
    267. Pango.Font_Metrics.Pango_Font_Metrics
    268. Pango.Fontset.Pango_Fontset_Record
    269. Pango.Language.Pango_Language
    270. Pango.Layout.Pango_Layout_Iter
    271. Pango.Layout.Pango_Layout_Record
    272. Pango.Tabs.Pango_Tab_Array

Gtk.Text_Buffer

Description

You may wish to begin by reading the [text widget conceptual overview][TextWidget] which gives an overview of all the objects and data types related to the text widget and how they work together.

Add_Mark

procedure Add_Mark
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Mark   : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class;
    Where  : Gtk.Text_Iter.Gtk_Text_Iter)

Adds the mark at position Where. The mark must not be added to another buffer, and if its name is not null then there must not be another mark in the buffer with the same name. Emits the Gtk.Text_Buffer.Gtk_Text_Buffer::mark-set signal as notification of the mark's initial placement. Since: gtk+ 2.12

Parameters
Buffer
Mark

the mark to add

Where

location to place mark

Add_Selection_Clipboard

procedure Add_Selection_Clipboard
   (Buffer    : not null access Gtk_Text_Buffer_Record;
    Clipboard : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class)

Adds Clipboard to the list of clipboards in which the selection contents of Buffer are available. In most cases, Clipboard will be the Gtk.Clipboard.Gtk_Clipboard of type GDK_SELECTION_PRIMARY for a view of Buffer.

Parameters
Buffer
Clipboard

a Gtk.Clipboard.Gtk_Clipboard

Apply_Tag

procedure Apply_Tag
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Tag     : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
    Start   : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : Gtk.Text_Iter.Gtk_Text_Iter)

Emits the "apply-tag" signal on Buffer. The default handler for the signal applies Tag to the given range. Start and End do not have to be in order.

Parameters
Buffer
Tag

a Gtk.Text_Tag.Gtk_Text_Tag

Start

one bound of range to be tagged

The_End

other bound of range to be tagged

Apply_Tag_By_Name

procedure Apply_Tag_By_Name
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Name    : UTF8_String;
    Start   : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : Gtk.Text_Iter.Gtk_Text_Iter)

Calls Gtk.Text_Tag_Table.Lookup on the buffer's tag table to get a Gtk.Text_Tag.Gtk_Text_Tag, then calls Gtk.Text_Buffer.Apply_Tag.

Parameters
Buffer
Name

name of a named Gtk.Text_Tag.Gtk_Text_Tag

Start

one bound of range to be tagged

The_End

other bound of range to be tagged

Backspace

function Backspace
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Iter             : Gtk.Text_Iter.Gtk_Text_Iter;
    Interactive      : Boolean;
    Default_Editable : Boolean) return Boolean

Performs the appropriate action as if the user hit the delete key with the cursor at the position specified by Iter. In the normal case a single character will be deleted, but when combining accents are involved, more than one character can be deleted, and when precomposed character and accent combinations are involved, less than one character will be deleted. Because the buffer is modified, all outstanding iterators become invalid after calling this function; however, the Iter will be re-initialized to point to the location where text was deleted. Since: gtk+ 2.6

Parameters
Buffer
Iter

a position in Buffer

Interactive

whether the deletion is caused by user interaction

Default_Editable

whether the buffer is editable by default

Return Value

True if the buffer was modified

Begin_User_Action

procedure Begin_User_Action
   (Buffer : not null access Gtk_Text_Buffer_Record)

Called to indicate that the buffer operations between here and a call to Gtk.Text_Buffer.End_User_Action are part of a single user-visible operation. The operations between Gtk.Text_Buffer.Begin_User_Action and Gtk.Text_Buffer.End_User_Action can then be grouped when creating an undo stack. Gtk.Text_Buffer.Gtk_Text_Buffer maintains a count of calls to Gtk.Text_Buffer.Begin_User_Action that have not been closed with a call to Gtk.Text_Buffer.End_User_Action, and emits the "begin-user-action" and "end-user-action" signals only for the outermost pair of calls. This allows you to build user actions from other user actions. The "interactive" buffer mutation functions, such as Gtk.Text_Buffer.Insert_Interactive, automatically call begin/end user action around the buffer operations they perform, so there's no need to add extra calls if you user action consists solely of a single call to one of those functions.

Parameters
Buffer

Cb_GObject_Gtk_Clipboard_Void

type Cb_GObject_Gtk_Clipboard_Void is not null access procedure
  (Self      : access Glib.Object.GObject_Record'Class;
   Clipboard : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class);
Parameters
Self
Clipboard

Cb_GObject_Gtk_Text_Iter_Gdk_Pixbuf_Void

type Cb_GObject_Gtk_Text_Iter_Gdk_Pixbuf_Void is not null access procedure
  (Self     : access Glib.Object.GObject_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Pixbuf   : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class);
Parameters
Self
Location
Pixbuf

Cb_GObject_Gtk_Text_Iter_Gtk_Text_Child_Anchor_Void

type Cb_GObject_Gtk_Text_Iter_Gtk_Text_Child_Anchor_Void is not null access procedure
  (Self     : access Glib.Object.GObject_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Anchor   : not null access Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record'Class);
Parameters
Self
Location
Anchor

Cb_GObject_Gtk_Text_Iter_Gtk_Text_Iter_Void

type Cb_GObject_Gtk_Text_Iter_Gtk_Text_Iter_Void is not null access procedure
  (Self    : access Glib.Object.GObject_Record'Class;
   Start   : Gtk.Text_Iter.Gtk_Text_Iter;
   The_End : Gtk.Text_Iter.Gtk_Text_Iter);
Parameters
Self
Start
The_End

Cb_GObject_Gtk_Text_Iter_Gtk_Text_Mark_Void

type Cb_GObject_Gtk_Text_Iter_Gtk_Text_Mark_Void is not null access procedure
  (Self     : access Glib.Object.GObject_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Mark     : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class);
Parameters
Self
Location
Mark

Cb_GObject_Gtk_Text_Iter_UTF8_String_Gint_Void

type Cb_GObject_Gtk_Text_Iter_UTF8_String_Gint_Void is not null access procedure
  (Self     : access Glib.Object.GObject_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Text     : UTF8_String;
   Len      : Glib.Gint);
Parameters
Self
Location
Text
Len

Cb_GObject_Gtk_Text_Mark_Void

type Cb_GObject_Gtk_Text_Mark_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class;
   Mark : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class);
Parameters
Self
Mark

Cb_GObject_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void

type Cb_GObject_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void is not null access procedure
  (Self    : access Glib.Object.GObject_Record'Class;
   Tag     : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
   Start   : Gtk.Text_Iter.Gtk_Text_Iter;
   The_End : Gtk.Text_Iter.Gtk_Text_Iter);
Parameters
Self
Tag
Start
The_End

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Cb_Gtk_Text_Buffer_Gtk_Clipboard_Void

type Cb_Gtk_Text_Buffer_Gtk_Clipboard_Void is not null access procedure
  (Self      : access Gtk_Text_Buffer_Record'Class;
   Clipboard : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class);
Parameters
Self
Clipboard

Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gdk_Pixbuf_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gdk_Pixbuf_Void is not null access procedure
  (Self     : access Gtk_Text_Buffer_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Pixbuf   : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class);
Parameters
Self
Location
Pixbuf

Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Child_Anchor_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Child_Anchor_Void is not null access procedure
  (Self     : access Gtk_Text_Buffer_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Anchor   : not null access Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record'Class);
Parameters
Self
Location
Anchor

Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Iter_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Iter_Void is not null access procedure
  (Self    : access Gtk_Text_Buffer_Record'Class;
   Start   : Gtk.Text_Iter.Gtk_Text_Iter;
   The_End : Gtk.Text_Iter.Gtk_Text_Iter);
Parameters
Self
Start
The_End

Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Mark_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Mark_Void is not null access procedure
  (Self     : access Gtk_Text_Buffer_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Mark     : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class);
Parameters
Self
Location
Mark

Cb_Gtk_Text_Buffer_Gtk_Text_Iter_UTF8_String_Gint_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Iter_UTF8_String_Gint_Void is not null access procedure
  (Self     : access Gtk_Text_Buffer_Record'Class;
   Location : Gtk.Text_Iter.Gtk_Text_Iter;
   Text     : UTF8_String;
   Len      : Glib.Gint);
Parameters
Self
Location
Text
Len

Cb_Gtk_Text_Buffer_Gtk_Text_Mark_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Mark_Void is not null access procedure
  (Self : access Gtk_Text_Buffer_Record'Class;
   Mark : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class);
Parameters
Self
Mark

Cb_Gtk_Text_Buffer_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void

type Cb_Gtk_Text_Buffer_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void is not null access procedure
  (Self    : access Gtk_Text_Buffer_Record'Class;
   Tag     : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
   Start   : Gtk.Text_Iter.Gtk_Text_Iter;
   The_End : Gtk.Text_Iter.Gtk_Text_Iter);
Parameters
Self
Tag
Start
The_End

Cb_Gtk_Text_Buffer_Void

type Cb_Gtk_Text_Buffer_Void is not null access procedure
  (Self : access Gtk_Text_Buffer_Record'Class);
Parameters
Self

Copy_Clipboard

procedure Copy_Clipboard
   (Buffer    : not null access Gtk_Text_Buffer_Record;
    Clipboard : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class)

Copies the currently-selected text to a clipboard.

Parameters
Buffer
Clipboard

the Gtk.Clipboard.Gtk_Clipboard object to copy to

Copy_Target_List_Property

Copy_Target_List_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Target_List.Gtk_Target_List The list of targets this buffer supports for clipboard copying and as DND source.

Create_Child_Anchor

function Create_Child_Anchor
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : Gtk.Text_Iter.Gtk_Text_Iter)
    return Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor

This is a convenience function which simply creates a child anchor with Gtk.Text_Child_Anchor.Gtk_New and inserts it into the buffer with Gtk.Text_Buffer.Insert_Child_Anchor. The new anchor is owned by the buffer; no reference count is returned to the caller of Gtk.Text_Buffer.Create_Child_Anchor.

Parameters
Buffer
Iter

location in the buffer

Return Value

the created child anchor

Create_Mark

function Create_Mark
   (Buffer       : not null access Gtk_Text_Buffer_Record;
    Mark_Name    : UTF8_String := "";
    Where        : Gtk.Text_Iter.Gtk_Text_Iter;
    Left_Gravity : Boolean := True) return Gtk.Text_Mark.Gtk_Text_Mark

Creates a mark at position Where. If Mark_Name is null, the mark is anonymous; otherwise, the mark can be retrieved by name using Gtk.Text_Buffer.Get_Mark. If a mark has left gravity, and text is inserted at the mark's current location, the mark will be moved to the left of the newly-inserted text. If the mark has right gravity (Left_Gravity = False), the mark will end up on the right of newly-inserted text. The standard left-to-right cursor is a mark with right gravity (when you type, the cursor stays on the right side of the text you're typing). The caller of this function does not own a reference to the returned Gtk.Text_Mark.Gtk_Text_Mark, so you can ignore the return value if you like. Marks are owned by the buffer and go away when the buffer does. Emits the Gtk.Text_Buffer.Gtk_Text_Buffer::mark-set signal as notification of the mark's initial placement.

Parameters
Buffer
Mark_Name

name for mark, or null

Where

location to place mark

Left_Gravity

whether the mark has left gravity

Return Value

the new Gtk.Text_Mark.Gtk_Text_Mark object

Create_Tag

function Create_Tag
  (Buffer              : access Gtk_Text_Buffer_Record;
   Tag_Name            : String := "")
return Gtk.Text_Tag.Gtk_Text_Tag

Creates a tag and adds it to the tag table for Buffer. Equivalent to calling gtk.text_tag.gtk_new and then adding the tag to the buffer's tag table. The returned tag is owned by the buffer's tag table, so the ref count will be equal to one.

If Tag_Name is NULL, the tag is anonymous, otherwise a tag called Tag_Name must not already exist in the tag table for this buffer.

Parameters
Buffer
Tag_Name
Return Value

Cursor_Position_Property

Cursor_Position_Property : constant Glib.Properties.Property_Int;

The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.

Cut_Clipboard

procedure Cut_Clipboard
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Clipboard        : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class;
    Default_Editable : Boolean)

Copies the currently-selected text to a clipboard, then deletes said text if it's editable.

Parameters
Buffer
Clipboard

the Gtk.Clipboard.Gtk_Clipboard object to cut to

Default_Editable

default editability of the buffer

Delete

procedure Delete
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Start   : in out Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : in out Gtk.Text_Iter.Gtk_Text_Iter)

Deletes text between Start and End. The order of Start and End is not actually relevant; Gtk.Text_Buffer.Delete will reorder them. This function actually emits the "delete-range" signal, and the default handler of that signal deletes the text. Because the buffer is modified, all outstanding iterators become invalid after calling this function; however, the Start and End will be re-initialized to point to the location where text was deleted.

Parameters
Buffer
Start

a position in Buffer

The_End

another position in Buffer

Delete_Interactive

procedure Delete_Interactive
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Start_Iter       : Gtk.Text_Iter.Gtk_Text_Iter;
    End_Iter         : Gtk.Text_Iter.Gtk_Text_Iter;
    Default_Editable : Boolean;
    Result           : out Boolean)

Deletes all editable text in the given range. Calls Gtk.Text_Buffer.Delete for each editable sub-range of [Start,End). Start and End are revalidated to point to the location of the last deleted range, or left untouched if no text was deleted.

Parameters
Buffer
Start_Iter

start of range to delete

End_Iter

end of range

Default_Editable

whether the buffer is editable by default @return whether some text was actually deleted

Result

Delete_Mark

procedure Delete_Mark
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Mark   : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class)

Deletes Mark, so that it's no longer located anywhere in the buffer. Removes the reference the buffer holds to the mark, so if you haven't called g_object_ref on the mark, it will be freed. Even if the mark isn't freed, most operations on Mark become invalid, until it gets added to a buffer again with Gtk.Text_Buffer.Add_Mark. Use Gtk.Text_Mark.Get_Deleted to find out if a mark has been removed from its buffer. The Gtk.Text_Buffer.Gtk_Text_Buffer::mark-deleted signal will be emitted as notification after the mark is deleted.

Parameters
Buffer
Mark

a Gtk.Text_Mark.Gtk_Text_Mark in Buffer

Delete_Mark_By_Name

procedure Delete_Mark_By_Name
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Name   : UTF8_String)

Deletes the mark named Name; the mark must exist. See Gtk.Text_Buffer.Delete_Mark for details.

Parameters
Buffer
Name

name of a mark in Buffer

Delete_Selection

function Delete_Selection
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Interactive      : Boolean;
    Default_Editable : Boolean) return Boolean

Deletes the range between the "insert" and "selection_bound" marks, that is, the currently-selected text. If Interactive is True, the editability of the selection will be considered (users can't delete uneditable text).

Parameters
Buffer
Interactive

whether the deletion is caused by user interaction

Default_Editable

whether the buffer is editable by default

Return Value

whether there was a non-empty selection to delete

Deserialize_Get_Can_Create_Tags

function Deserialize_Get_Can_Create_Tags
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Format : Gdk.Types.Gdk_Atom) return Boolean

This functions returns the value set with Gtk.Text_Buffer.Deserialize_Set_Can_Create_Tags Since: gtk+ 2.10

Parameters
Buffer
Format

a Gdk.Types.Gdk_Atom representing a registered rich text format

Return Value

whether deserializing this format may create tags

Deserialize_Set_Can_Create_Tags

procedure Deserialize_Set_Can_Create_Tags
   (Buffer          : not null access Gtk_Text_Buffer_Record;
    Format          : Gdk.Types.Gdk_Atom;
    Can_Create_Tags : Boolean)

Use this function to allow a rich text deserialization function to create new tags in the receiving buffer. Note that using this function is almost always a bad idea, because the rich text functions you register should know how to map the rich text format they handler to your text buffers set of tags. The ability of creating new (arbitrary!) tags in the receiving buffer is meant for special rich text formats like the internal one that is registered using Gtk.Text_Buffer.Register_Deserialize_Tagset, because that format is essentially a dump of the internal structure of the source buffer, including its tag names. You should allow creation of tags only if you know what you are doing, e.g. if you defined a tagset name for your application suite's text buffers and you know that it's fine to receive new tags from these buffers, because you know that your application can handle the newly created tags. Since: gtk+ 2.10

Parameters
Buffer
Format

a Gdk.Types.Gdk_Atom representing a registered rich text format

Can_Create_Tags

whether deserializing this format may create tags

End_User_Action

procedure End_User_Action
   (Buffer : not null access Gtk_Text_Buffer_Record)

Should be paired with a call to Gtk.Text_Buffer.Begin_User_Action. See that function for a full explanation.

Parameters
Buffer

Get_Bounds

procedure Get_Bounds
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Start   : out Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : out Gtk.Text_Iter.Gtk_Text_Iter)

Retrieves the first and last iterators in the buffer, i.e. the entire buffer lies within the range [Start,End).

Parameters
Buffer
Start

iterator to initialize with first position in the buffer

The_End

iterator to initialize with the end iterator

Get_Buffer

function Get_Buffer
  (Iter : Gtk_Text_Iter) return Gtk.Text_Buffer.Gtk_Text_Buffer

Returns the Gtk.Text_Buffer.Gtk_Text_Buffer this iterator is associated with.

Parameters
Iter
Return Value

Get_Buffer

function Get_Buffer
  (Mark : Gtk_Text_Mark)
return Gtk.Text_Buffer.Gtk_Text_Buffer

Gets the buffer this mark is located inside, or null if the mark is deleted.

Parameters
Mark
Return Value

Get_Char_Count

function Get_Char_Count
   (Buffer : not null access Gtk_Text_Buffer_Record) return Glib.Gint

Gets the number of characters in the buffer; note that characters and bytes are not the same, you can't e.g. expect the contents of the buffer in string form to be this many bytes long. The character count is cached, so this function is very fast.

Parameters
Buffer
Return Value

number of characters in the buffer

Get_Copy_Target_List

function Get_Copy_Target_List
   (Buffer : not null access Gtk_Text_Buffer_Record)
    return Gtk.Target_List.Gtk_Target_List

This function returns the list of targets this text buffer can provide for copying and as DND source. The targets in the list are added with Info values from the Gtk_Text_Buffer_Target_Info enum, using gtk_target_list_add_rich_text_targets and Gtk.Target_List.Add_Text_Targets. Since: gtk+ 2.10

Parameters
Buffer
Return Value

the Gtk.Target_List.Gtk_Target_List

Get_End_Iter

procedure Get_End_Iter
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : out Gtk.Text_Iter.Gtk_Text_Iter)

Initializes Iter with the "end iterator," one past the last valid character in the text buffer. If dereferenced with Gtk.Text_Iter.Get_Char, the end iterator has a character value of 0. The entire buffer lies in the range from the first position in the buffer (call Gtk.Text_Buffer.Get_Start_Iter to get character position 0) to the end iterator.

Parameters
Buffer
Iter

iterator to initialize

Get_Has_Selection

function Get_Has_Selection
   (Buffer : not null access Gtk_Text_Buffer_Record) return Boolean

Indicates whether the buffer has some text currently selected. Since: gtk+ 2.10

Parameters
Buffer
Return Value

True if the there is text selected

Get_Insert

function Get_Insert
   (Buffer : not null access Gtk_Text_Buffer_Record)
    return Gtk.Text_Mark.Gtk_Text_Mark

Returns the mark that represents the cursor (insertion point). Equivalent to calling Gtk.Text_Buffer.Get_Mark to get the mark named "insert", but very slightly more efficient, and involves less typing.

Parameters
Buffer
Return Value

insertion point mark

Get_Iter_At_Child_Anchor

procedure Get_Iter_At_Child_Anchor
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : out Gtk.Text_Iter.Gtk_Text_Iter;
    Anchor : not null access Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record'Class)

Obtains the location of Anchor within Buffer.

Parameters
Buffer
Iter

an iterator to be initialized

Anchor

a child anchor that appears in Buffer

Get_Iter_At_Line

procedure Get_Iter_At_Line
   (Buffer      : not null access Gtk_Text_Buffer_Record;
    Iter        : out Gtk.Text_Iter.Gtk_Text_Iter;
    Line_Number : Glib.Gint)

Initializes Iter to the start of the given line. If Line_Number is greater than the number of lines in the Buffer, the end iterator is returned.

Parameters
Buffer
Iter

iterator to initialize

Line_Number

line number counting from 0

Get_Iter_At_Line_Index

procedure Get_Iter_At_Line_Index
   (Buffer      : not null access Gtk_Text_Buffer_Record;
    Iter        : out Gtk.Text_Iter.Gtk_Text_Iter;
    Line_Number : Glib.Gint;
    Byte_Index  : Glib.Gint)

Obtains an iterator pointing to Byte_Index within the given line. Byte_Index must be the start of a UTF-8 character. Note bytes, not characters; UTF-8 may encode one character as multiple bytes. Before the 3.20 version, it was not allowed to pass an invalid location. Since the 3.20 version, if Line_Number is greater than the number of lines in the Buffer, the end iterator is returned. And if Byte_Index is off the end of the line, the iterator at the end of the line is returned.

Parameters
Buffer
Iter

iterator to initialize

Line_Number

line number counting from 0

Byte_Index

byte index from start of line

Get_Iter_At_Line_Offset

procedure Get_Iter_At_Line_Offset
   (Buffer      : not null access Gtk_Text_Buffer_Record;
    Iter        : out Gtk.Text_Iter.Gtk_Text_Iter;
    Line_Number : Glib.Gint;
    Char_Offset : Glib.Gint)

Obtains an iterator pointing to Char_Offset within the given line. Note characters, not bytes; UTF-8 may encode one character as multiple bytes. Before the 3.20 version, it was not allowed to pass an invalid location. Since the 3.20 version, if Line_Number is greater than the number of lines in the Buffer, the end iterator is returned. And if Char_Offset is off the end of the line, the iterator at the end of the line is returned.

Parameters
Buffer
Iter

iterator to initialize

Line_Number

line number counting from 0

Char_Offset

char offset from start of line

Get_Iter_At_Mark

procedure Get_Iter_At_Mark
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : out Gtk.Text_Iter.Gtk_Text_Iter;
    Mark   : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class)

Initializes Iter with the current position of Mark.

Parameters
Buffer
Iter

iterator to initialize

Mark

a Gtk.Text_Mark.Gtk_Text_Mark in Buffer

Get_Iter_At_Offset

procedure Get_Iter_At_Offset
   (Buffer      : not null access Gtk_Text_Buffer_Record;
    Iter        : out Gtk.Text_Iter.Gtk_Text_Iter;
    Char_Offset : Glib.Gint)

Initializes Iter to a position Char_Offset chars from the start of the entire buffer. If Char_Offset is -1 or greater than the number of characters in the buffer, Iter is initialized to the end iterator, the iterator one past the last valid character in the buffer.

Parameters
Buffer
Iter

iterator to initialize

Char_Offset

char offset from start of buffer, counting from 0, or -1

Get_Line_Count

function Get_Line_Count
   (Buffer : not null access Gtk_Text_Buffer_Record) return Glib.Gint

Obtains the number of lines in the buffer. This value is cached, so the function is very fast.

Parameters
Buffer
Return Value

number of lines in the buffer

Get_Mark

function Get_Mark
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Name   : UTF8_String) return Gtk.Text_Mark.Gtk_Text_Mark

Returns the mark named Name in buffer Buffer, or null if no such mark exists in the buffer.

Parameters
Buffer
Name

a mark name

Return Value

a Gtk.Text_Mark.Gtk_Text_Mark, or null

Get_Modified

function Get_Modified
   (Buffer : not null access Gtk_Text_Buffer_Record) return Boolean

Indicates whether the buffer has been modified since the last call to Gtk.Text_Buffer.Set_Modified set the modification flag to False. Used for example to enable a "save" function in a text editor.

Parameters
Buffer
Return Value

True if the buffer has been modified

Get_Paste_Target_List

function Get_Paste_Target_List
   (Buffer : not null access Gtk_Text_Buffer_Record)
    return Gtk.Target_List.Gtk_Target_List

This function returns the list of targets this text buffer supports for pasting and as DND destination. The targets in the list are added with Info values from the Gtk_Text_Buffer_Target_Info enum, using gtk_target_list_add_rich_text_targets and Gtk.Target_List.Add_Text_Targets. Since: gtk+ 2.10

Parameters
Buffer
Return Value

the Gtk.Target_List.Gtk_Target_List

Get_Selection_Bound

function Get_Selection_Bound
   (Buffer : not null access Gtk_Text_Buffer_Record)
    return Gtk.Text_Mark.Gtk_Text_Mark

Returns the mark that represents the selection bound. Equivalent to calling Gtk.Text_Buffer.Get_Mark to get the mark named "selection_bound", but very slightly more efficient, and involves less typing. The currently-selected text in Buffer is the region between the "selection_bound" and "insert" marks. If "selection_bound" and "insert" are in the same place, then there is no current selection. Gtk.Text_Buffer.Get_Selection_Bounds is another convenient function for handling the selection, if you just want to know whether there's a selection and what its bounds are.

Parameters
Buffer
Return Value

selection bound mark

Get_Selection_Bounds

procedure Get_Selection_Bounds
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Start   : out Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : out Gtk.Text_Iter.Gtk_Text_Iter;
    Result  : out Boolean)

Returns True if some text is selected; places the bounds of the selection in Start and End (if the selection has length 0, then Start and End are filled in with the same value). Start and End will be in ascending order. If Start and End are NULL, then they are not filled in, but the return value still indicates whether text is selected.

Parameters
Buffer
Start

iterator to initialize with selection start

The_End

iterator to initialize with selection end @return whether the selection has nonzero length

Result

Get_Slice

function Get_Slice
   (Buffer               : not null access Gtk_Text_Buffer_Record;
    Start                : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End              : Gtk.Text_Iter.Gtk_Text_Iter;
    Include_Hidden_Chars : Boolean := False) return UTF8_String

Returns the text in the range [Start,End). Excludes undisplayed text (text marked with tags that set the invisibility attribute) if Include_Hidden_Chars is False. The returned string includes a 0xFFFC character whenever the buffer contains embedded images, so byte and character indexes into the returned string do correspond to byte and character indexes into the buffer. Contrast with Gtk.Text_Buffer.Get_Text. Note that 0xFFFC can occur in normal text as well, so it is not a reliable indicator that a pixbuf or widget is in the buffer.

Parameters
Buffer
Start

start of a range

The_End

end of a range

Include_Hidden_Chars

whether to include invisible text

Return Value

an allocated UTF-8 string

Get_Start_Iter

procedure Get_Start_Iter
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : out Gtk.Text_Iter.Gtk_Text_Iter)

Initialized Iter with the first position in the text buffer. This is the same as using Gtk.Text_Buffer.Get_Iter_At_Offset to get the iter at character offset 0.

Parameters
Buffer
Iter

iterator to initialize

Get_Tag_Table

function Get_Tag_Table
   (Buffer : not null access Gtk_Text_Buffer_Record)
    return Gtk.Text_Tag_Table.Gtk_Text_Tag_Table

Get the Gtk.Text_Tag_Table.Gtk_Text_Tag_Table associated with this buffer.

Parameters
Buffer
Return Value

the buffer's tag table

Get_Text

function Get_Text
  (Buffer               : access Gtk_Text_Buffer_Record;
   Start                : Gtk.Text_Iter.Gtk_Text_Iter;
   The_End              : Gtk.Text_Iter.Gtk_Text_Iter;
   Include_Hidden_Chars : Boolean := False) return Gtkada.Types.Chars_Ptr

Same as Get_Text above, but return a pointer to a C string, for efficiency. The caller is responsible for freeing (using Gtkada.Types.g_free) the returned pointer.

Parameters
Buffer
Start
The_End
Include_Hidden_Chars
Return Value

Get_Text

function Get_Text
   (Buffer               : not null access Gtk_Text_Buffer_Record;
    Start                : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End              : Gtk.Text_Iter.Gtk_Text_Iter;
    Include_Hidden_Chars : Boolean := False) return UTF8_String

Returns the text in the range [Start,End). Excludes undisplayed text (text marked with tags that set the invisibility attribute) if Include_Hidden_Chars is False. Does not include characters representing embedded images, so byte and character indexes into the returned string do not correspond to byte and character indexes into the buffer. Contrast with Gtk.Text_Buffer.Get_Slice.

Parameters
Buffer
Start

start of a range

The_End

end of a range

Include_Hidden_Chars

whether to include invisible text

Return Value

an allocated UTF-8 string

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

procedure Gtk_New
   (Buffer : out Gtk_Text_Buffer;
    Table  : Gtk.Text_Tag_Table.Gtk_Text_Tag_Table := null)

Creates a new text buffer. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Buffer
Table

a tag table, or null to create a new one

Gtk_Text_Buffer

type Gtk_Text_Buffer is access all Gtk_Text_Buffer_Record'Class;

Gtk_Text_Buffer_New

function Gtk_Text_Buffer_New
   (Table : Gtk.Text_Tag_Table.Gtk_Text_Tag_Table := null)
    return Gtk_Text_Buffer

Creates a new text buffer.

Parameters
Table

a tag table, or null to create a new one

Return Value

Gtk_Text_Buffer_Record

type Gtk_Text_Buffer_Record is new GObject_Record with null record;

Has_Selection_Property

Has_Selection_Property : constant Glib.Properties.Property_Boolean;

Whether the buffer has some text currently selected.

Initialize

procedure Initialize
   (Buffer : not null access Gtk_Text_Buffer_Record'Class;
    Table  : Gtk.Text_Tag_Table.Gtk_Text_Tag_Table := null)

Creates a new text buffer. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Buffer
Table

a tag table, or null to create a new one

Insert

procedure Insert
  (Buffer : access Gtk_Text_Buffer_Record;
   Iter   : in out Gtk.Text_Iter.Gtk_Text_Iter;
   Text   : Gtkada.Types.Chars_Ptr)

More efficient version of Insert, which doesn't require a string copy.

Parameters
Buffer
Iter
Text

Insert

procedure Insert
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : in out Gtk.Text_Iter.Gtk_Text_Iter;
    Text   : UTF8_String)

Inserts Len bytes of Text at position Iter. If Len is -1, Text must be nul-terminated and will be inserted in its entirety. Emits the "insert-text" signal; insertion actually occurs in the default handler for the signal. Iter is invalidated when insertion occurs (because the buffer contents change), but the default signal handler revalidates it to point to the end of the inserted text.

Parameters
Buffer
Iter

a position in the buffer

Text

text in UTF-8 format

Insert_At_Cursor

procedure Insert_At_Cursor
  (Buffer : access Gtk_Text_Buffer_Record;
   Text   : Gtkada.Types.Chars_Ptr;
   Len    : Gint := -1)

Call Buffer_Insert, using the current cursor position as the insertion point. Text: UTF-8 format C string to insert.

Parameters
Buffer
Text
Len

Insert_At_Cursor

procedure Insert_At_Cursor
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Text   : UTF8_String)

Simply calls Gtk.Text_Buffer.Insert, using the current cursor position as the insertion point.

Parameters
Buffer
Text

text in UTF-8 format

Insert_Child_Anchor

procedure Insert_Child_Anchor
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : Gtk.Text_Iter.Gtk_Text_Iter;
    Anchor : not null access Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record'Class)

Inserts a child widget anchor into the text buffer at Iter. The anchor will be counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" 0xFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for child anchors, but the "text" variants do not. E.g. see Gtk.Text_Buffer.Get_Slice and Gtk.Text_Buffer.Get_Text. Consider Gtk.Text_Buffer.Create_Child_Anchor as a more convenient alternative to this function. The buffer will add a reference to the anchor, so you can unref it after insertion.

Parameters
Buffer
Iter

location to insert the anchor

Anchor

a Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor

Insert_Interactive

function Insert_Interactive
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Iter             : access Gtk.Text_Iter.Gtk_Text_Iter;
    Text             : UTF8_String;
    Default_Editable : Boolean) return Boolean

Like Gtk.Text_Buffer.Insert, but the insertion will not occur if Iter is at a non-editable location in the buffer. Usually you want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive). Default_Editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of Gtk.Text_View.Get_Editable is appropriate here.

Parameters
Buffer
Iter

a position in Buffer

Text

some UTF-8 text

Default_Editable

default editability of buffer

Return Value

whether text was actually inserted

Insert_Interactive_At_Cursor

function Insert_Interactive_At_Cursor
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Text             : UTF8_String;
    Default_Editable : Boolean) return Boolean

Calls Gtk.Text_Buffer.Insert_Interactive at the cursor position. Default_Editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of Gtk.Text_View.Get_Editable is appropriate here.

Parameters
Buffer
Text

text in UTF-8 format

Default_Editable

default editability of buffer

Return Value

whether text was actually inserted

Insert_Markup

procedure Insert_Markup
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : Gtk.Text_Iter.Gtk_Text_Iter;
    Markup : UTF8_String;
    Len    : Glib.Gint)

Inserts the text in Markup at position Iter. Markup will be inserted in its entirety and must be nul-terminated and valid UTF-8. Emits the Gtk.Text_Buffer.Gtk_Text_Buffer::insert-text signal, possibly multiple times; insertion actually occurs in the default handler for the signal. Iter will point to the end of the inserted text on return. Since: gtk+ 3.16

Parameters
Buffer
Iter

location to insert the markup

Markup

a nul-terminated UTF-8 string containing [Pango markup][PangoMarkupFormat]

Len

length of Markup in bytes, or -1

Insert_Pixbuf

procedure Insert_Pixbuf
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Iter   : Gtk.Text_Iter.Gtk_Text_Iter;
    Pixbuf : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class)

Inserts an image into the text buffer at Iter. The image will be counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" 0xFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for pixbufs, but the "text" variants do not. e.g. see Gtk.Text_Buffer.Get_Slice and Gtk.Text_Buffer.Get_Text.

Parameters
Buffer
Iter

location to insert the pixbuf

Pixbuf

a Gdk.Pixbuf.Gdk_Pixbuf

Insert_Range

procedure Insert_Range
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Iter    : Gtk.Text_Iter.Gtk_Text_Iter;
    Start   : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : Gtk.Text_Iter.Gtk_Text_Iter)

Copies text, tags, and pixbufs between Start and End (the order of Start and End doesn't matter) and inserts the copy at Iter. Used instead of simply getting/inserting text because it preserves images and tags. If Start and End are in a different buffer from Buffer, the two buffers must share the same tag table. Implemented via emissions of the insert_text and apply_tag signals, so expect those.

Parameters
Buffer
Iter

a position in Buffer

Start

a position in a Gtk.Text_Buffer.Gtk_Text_Buffer

The_End

another position in the same buffer as Start

Insert_Range_Interactive

function Insert_Range_Interactive
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Iter             : Gtk.Text_Iter.Gtk_Text_Iter;
    Start            : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End          : Gtk.Text_Iter.Gtk_Text_Iter;
    Default_Editable : Boolean) return Boolean

Same as Gtk.Text_Buffer.Insert_Range, but does nothing if the insertion point isn't editable. The Default_Editable parameter indicates whether the text is editable at Iter if no tags enclosing Iter affect editability. Typically the result of Gtk.Text_View.Get_Editable is appropriate here.

Parameters
Buffer
Iter

a position in Buffer

Start

a position in a Gtk.Text_Buffer.Gtk_Text_Buffer

The_End

another position in the same buffer as Start

Default_Editable

default editability of the buffer

Return Value

whether an insertion was possible at Iter

Insert_With_Tags

procedure Insert_With_Tags
  (Buffer : access Gtk_Text_Buffer_Record;
   Iter   : in out Gtk.Text_Iter.Gtk_Text_Iter;
   Text   : UTF8_String;
   Tag    : Gtk_Text_Tag)

Same as Insert, but specifies the tag to apply to the range.

Parameters
Buffer
Iter
Text
Tag

Insert_With_Tags

procedure Insert_With_Tags
  (Buffer : access Gtk_Text_Buffer_Record;
   Iter   : in out Gtk.Text_Iter.Gtk_Text_Iter;
   Text   : Gtkada.Types.Chars_Ptr;
   Tag    : Gtk.Text_Tag.Gtk_Text_Tag)

Same as Insert, but specifies the tag to apply to the range.

Parameters
Buffer
Iter
Text
Tag

Move_Mark

procedure Move_Mark
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Mark   : not null access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class;
    Where  : Gtk.Text_Iter.Gtk_Text_Iter)

Moves Mark to the new location Where. Emits the Gtk.Text_Buffer.Gtk_Text_Buffer::mark-set signal as notification of the move.

Parameters
Buffer
Mark

a Gtk.Text_Mark.Gtk_Text_Mark

Where

new location for Mark in Buffer

Move_Mark_By_Name

procedure Move_Mark_By_Name
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Name   : UTF8_String;
    Where  : Gtk.Text_Iter.Gtk_Text_Iter)

Moves the mark named Name (which must exist) to location Where. See Gtk.Text_Buffer.Move_Mark for details.

Parameters
Buffer
Name

name of a mark

Where

new location for mark

On_Apply_Tag

procedure On_Apply_Tag
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::apply-tag signal is emitted to apply a tag to a range of text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Applying actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them).

See also: Gtk.Text_Buffer.Apply_Tag, gtk_text_buffer_insert_with_tags, Gtk.Text_Buffer.Insert_Range.

Callback parameters: -- @param Tag the applied tag -- @param Start the start of the range the tag is applied to -- @param The_End the end of the range the tag is applied to

Parameters
Self
Call
Slot
After

On_Apply_Tag

procedure On_Apply_Tag
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void;
    After : Boolean := False)

The ::apply-tag signal is emitted to apply a tag to a range of text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Applying actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them).

See also: Gtk.Text_Buffer.Apply_Tag, gtk_text_buffer_insert_with_tags, Gtk.Text_Buffer.Insert_Range.

Callback parameters: -- @param Tag the applied tag -- @param Start the start of the range the tag is applied to -- @param The_End the end of the range the tag is applied to

Parameters
Self
Call
After

On_Begin_User_Action

procedure On_Begin_User_Action
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::begin-user-action signal is emitted at the beginning of a single user-visible operation on a Gtk.Text_Buffer.Gtk_Text_Buffer.

See also: Gtk.Text_Buffer.Begin_User_Action, Gtk.Text_Buffer.Insert_Interactive, Gtk.Text_Buffer.Insert_Range_Interactive, Gtk.Text_Buffer.Delete_Interactive, Gtk.Text_Buffer.Backspace, Gtk.Text_Buffer.Delete_Selection.

Parameters
Self
Call
Slot
After

On_Begin_User_Action

procedure On_Begin_User_Action
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Void;
    After : Boolean := False)

The ::begin-user-action signal is emitted at the beginning of a single user-visible operation on a Gtk.Text_Buffer.Gtk_Text_Buffer.

See also: Gtk.Text_Buffer.Begin_User_Action, Gtk.Text_Buffer.Insert_Interactive, Gtk.Text_Buffer.Insert_Range_Interactive, Gtk.Text_Buffer.Delete_Interactive, Gtk.Text_Buffer.Backspace, Gtk.Text_Buffer.Delete_Selection.

Parameters
Self
Call
After

On_Changed

procedure On_Changed
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::changed signal is emitted when the content of a Gtk.Text_Buffer.Gtk_Text_Buffer has changed.

Parameters
Self
Call
Slot
After

On_Changed

procedure On_Changed
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Void;
    After : Boolean := False)

The ::changed signal is emitted when the content of a Gtk.Text_Buffer.Gtk_Text_Buffer has changed.

Parameters
Self
Call
After

On_Delete_Range

procedure On_Delete_Range
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Iter_Gtk_Text_Iter_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::delete-range signal is emitted to delete a range from a Gtk.Text_Buffer.Gtk_Text_Buffer.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them). The default signal handler revalidates the Start and End iters to both point to the location where text was deleted. Handlers which run after the default handler (see g_signal_connect_after) do not have access to the deleted text.

See also: Gtk.Text_Buffer.Delete.

Callback parameters: -- @param Start the start of the range to be deleted -- @param The_End the end of the range to be deleted

Parameters
Self
Call
Slot
After

On_Delete_Range

procedure On_Delete_Range
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Iter_Void;
    After : Boolean := False)

The ::delete-range signal is emitted to delete a range from a Gtk.Text_Buffer.Gtk_Text_Buffer.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them). The default signal handler revalidates the Start and End iters to both point to the location where text was deleted. Handlers which run after the default handler (see g_signal_connect_after) do not have access to the deleted text.

See also: Gtk.Text_Buffer.Delete.

Callback parameters: -- @param Start the start of the range to be deleted -- @param The_End the end of the range to be deleted

Parameters
Self
Call
After

On_End_User_Action

procedure On_End_User_Action
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::end-user-action signal is emitted at the end of a single user-visible operation on the Gtk.Text_Buffer.Gtk_Text_Buffer.

See also: Gtk.Text_Buffer.End_User_Action, Gtk.Text_Buffer.Insert_Interactive, Gtk.Text_Buffer.Insert_Range_Interactive, Gtk.Text_Buffer.Delete_Interactive, Gtk.Text_Buffer.Backspace, Gtk.Text_Buffer.Delete_Selection, Gtk.Text_Buffer.Backspace.

Parameters
Self
Call
Slot
After

On_End_User_Action

procedure On_End_User_Action
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Void;
    After : Boolean := False)

The ::end-user-action signal is emitted at the end of a single user-visible operation on the Gtk.Text_Buffer.Gtk_Text_Buffer.

See also: Gtk.Text_Buffer.End_User_Action, Gtk.Text_Buffer.Insert_Interactive, Gtk.Text_Buffer.Insert_Range_Interactive, Gtk.Text_Buffer.Delete_Interactive, Gtk.Text_Buffer.Backspace, Gtk.Text_Buffer.Delete_Selection, Gtk.Text_Buffer.Backspace.

Parameters
Self
Call
After

On_Insert_Child_Anchor

procedure On_Insert_Child_Anchor
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Iter_Gtk_Text_Child_Anchor_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::insert-child-anchor signal is emitted to insert a Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted Anchor.

See also: Gtk.Text_Buffer.Insert_Child_Anchor.

Callback parameters: -- @param Location position to insert Anchor in Textbuffer -- @param Anchor the Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor to be -- inserted

Parameters
Self
Call
Slot
After

On_Insert_Child_Anchor

procedure On_Insert_Child_Anchor
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Child_Anchor_Void;
    After : Boolean := False)

The ::insert-child-anchor signal is emitted to insert a Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted Anchor.

See also: Gtk.Text_Buffer.Insert_Child_Anchor.

Callback parameters: -- @param Location position to insert Anchor in Textbuffer -- @param Anchor the Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor to be -- inserted

Parameters
Self
Call
After

On_Insert_Pixbuf

procedure On_Insert_Pixbuf
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Iter_Gdk_Pixbuf_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::insert-pixbuf signal is emitted to insert a Gdk.Pixbuf.Gdk_Pixbuf in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted Pixbuf.

See also: Gtk.Text_Buffer.Insert_Pixbuf.

Callback parameters: -- @param Location position to insert Pixbuf in Textbuffer -- @param Pixbuf the Gdk.Pixbuf.Gdk_Pixbuf to be inserted

Parameters
Self
Call
Slot
After

On_Insert_Pixbuf

procedure On_Insert_Pixbuf
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gdk_Pixbuf_Void;
    After : Boolean := False)

The ::insert-pixbuf signal is emitted to insert a Gdk.Pixbuf.Gdk_Pixbuf in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted Pixbuf.

See also: Gtk.Text_Buffer.Insert_Pixbuf.

Callback parameters: -- @param Location position to insert Pixbuf in Textbuffer -- @param Pixbuf the Gdk.Pixbuf.Gdk_Pixbuf to be inserted

Parameters
Self
Call
After

On_Insert_Text

procedure On_Insert_Text
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Iter_UTF8_String_Gint_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::insert-text signal is emitted to insert text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text.

See also: Gtk.Text_Buffer.Insert, Gtk.Text_Buffer.Insert_Range.

Callback parameters: -- @param Location position to insert Text in Textbuffer -- @param Text the UTF-8 text to be inserted -- @param Len length of the inserted text in bytes

Parameters
Self
Call
Slot
After

On_Insert_Text

procedure On_Insert_Text
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Iter_UTF8_String_Gint_Void;
    After : Boolean := False)

The ::insert-text signal is emitted to insert text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text.

See also: Gtk.Text_Buffer.Insert, Gtk.Text_Buffer.Insert_Range.

Callback parameters: -- @param Location position to insert Text in Textbuffer -- @param Text the UTF-8 text to be inserted -- @param Len length of the inserted text in bytes

Parameters
Self
Call
After

On_Mark_Deleted

procedure On_Mark_Deleted
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Mark_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::mark-deleted signal is emitted as notification after a Gtk.Text_Mark.Gtk_Text_Mark is deleted.

See also: Gtk.Text_Buffer.Delete_Mark.

Parameters
Self
Call
Slot
After

On_Mark_Deleted

procedure On_Mark_Deleted
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Mark_Void;
    After : Boolean := False)

The ::mark-deleted signal is emitted as notification after a Gtk.Text_Mark.Gtk_Text_Mark is deleted.

See also: Gtk.Text_Buffer.Delete_Mark.

Parameters
Self
Call
After

On_Mark_Set

procedure On_Mark_Set
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Iter_Gtk_Text_Mark_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::mark-set signal is emitted as notification after a Gtk.Text_Mark.Gtk_Text_Mark is set.

See also: Gtk.Text_Buffer.Create_Mark, Gtk.Text_Buffer.Move_Mark.

Callback parameters: -- @param Location The location of Mark in Textbuffer -- @param Mark The mark that is set

Parameters
Self
Call
Slot
After

On_Mark_Set

procedure On_Mark_Set
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Iter_Gtk_Text_Mark_Void;
    After : Boolean := False)

The ::mark-set signal is emitted as notification after a Gtk.Text_Mark.Gtk_Text_Mark is set.

See also: Gtk.Text_Buffer.Create_Mark, Gtk.Text_Buffer.Move_Mark.

Callback parameters: -- @param Location The location of Mark in Textbuffer -- @param Mark The mark that is set

Parameters
Self
Call
After

On_Modified_Changed

procedure On_Modified_Changed
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::modified-changed signal is emitted when the modified bit of a Gtk.Text_Buffer.Gtk_Text_Buffer flips.

See also: Gtk.Text_Buffer.Set_Modified.

Parameters
Self
Call
Slot
After

On_Modified_Changed

procedure On_Modified_Changed
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Void;
    After : Boolean := False)

The ::modified-changed signal is emitted when the modified bit of a Gtk.Text_Buffer.Gtk_Text_Buffer flips.

See also: Gtk.Text_Buffer.Set_Modified.

Parameters
Self
Call
After

On_Paste_Done

procedure On_Paste_Done
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Clipboard_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The paste-done signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text. See Gtk.Text_Buffer.Paste_Clipboard for more details.

Parameters
Self
Call
Slot
After

On_Paste_Done

procedure On_Paste_Done
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Clipboard_Void;
    After : Boolean := False)

The paste-done signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text. See Gtk.Text_Buffer.Paste_Clipboard for more details.

Parameters
Self
Call
After

On_Remove_Tag

procedure On_Remove_Tag
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_GObject_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::remove-tag signal is emitted to remove all occurrences of Tag from a range of text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Removal actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them).

See also: Gtk.Text_Buffer.Remove_Tag.

Callback parameters: -- @param Tag the tag to be removed -- @param Start the start of the range the tag is removed from -- @param The_End the end of the range the tag is removed from

Parameters
Self
Call
Slot
After

On_Remove_Tag

procedure On_Remove_Tag
   (Self  : not null access Gtk_Text_Buffer_Record;
    Call  : Cb_Gtk_Text_Buffer_Gtk_Text_Tag_Gtk_Text_Iter_Gtk_Text_Iter_Void;
    After : Boolean := False)

The ::remove-tag signal is emitted to remove all occurrences of Tag from a range of text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Removal actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them).

See also: Gtk.Text_Buffer.Remove_Tag.

Callback parameters: -- @param Tag the tag to be removed -- @param Start the start of the range the tag is removed from -- @param The_End the end of the range the tag is removed from

Parameters
Self
Call
After

Paste_Clipboard

procedure Paste_Clipboard
   (Buffer           : not null access Gtk_Text_Buffer_Record;
    Clipboard        : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class;
    Default_Editable : Boolean := True)

Pastes the contents of a clipboard. If Override_Location is null, the pasted text will be inserted at the cursor position, or the buffer selection will be replaced if the selection is non-empty. Note: pasting is asynchronous, that is, we'll ask for the paste data and return, and at some point later after the main loop runs, the paste data will be inserted.

Parameters
Buffer
Clipboard

the Gtk.Clipboard.Gtk_Clipboard to paste from

Default_Editable

whether the buffer is editable by default

Paste_Target_List_Property

Paste_Target_List_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Target_List.Gtk_Target_List The list of targets this buffer supports for clipboard pasting and as DND destination.

Place_Cursor

procedure Place_Cursor
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Where  : Gtk.Text_Iter.Gtk_Text_Iter)

This function moves the "insert" and "selection_bound" marks simultaneously. If you move them to the same place in two steps with Gtk.Text_Buffer.Move_Mark, you will temporarily select a region in between their old and new locations, which can be pretty inefficient since the temporarily-selected region will force stuff to be recalculated. This function moves them as a unit, which can be optimized.

Parameters
Buffer
Where

where to put the cursor

Register_Deserialize_Tagset

function Register_Deserialize_Tagset
   (Buffer      : not null access Gtk_Text_Buffer_Record;
    Tagset_Name : UTF8_String := "") return Gdk.Types.Gdk_Atom

This function registers GTK+'s internal rich text serialization format with the passed Buffer. See Gtk.Text_Buffer.Register_Serialize_Tagset for details. Since: gtk+ 2.10

Parameters
Buffer
Tagset_Name

an optional tagset name, on null

Return Value

the Gdk.Types.Gdk_Atom that corresponds to the newly registered format's mime-type.

Register_Serialize_Tagset

function Register_Serialize_Tagset
   (Buffer      : not null access Gtk_Text_Buffer_Record;
    Tagset_Name : UTF8_String := "") return Gdk.Types.Gdk_Atom

This function registers GTK+'s internal rich text serialization format with the passed Buffer. The internal format does not comply to any standard rich text format and only works between Gtk.Text_Buffer.Gtk_Text_Buffer instances. It is capable of serializing all of a text buffer's tags and embedded pixbufs. This function is just a wrapper around gtk_text_buffer_register_serialize_format. The mime type used for registering is "application/x-gtk-text-buffer-rich-text", or "application/x-gtk-text-buffer-rich-text;format=Tagset_Name" if a Tagset_Name was passed. The Tagset_Name can be used to restrict the transfer of rich text to buffers with compatible sets of tags, in order to avoid unknown tags from being pasted. It is probably the common case to pass an identifier != null here, since the null tagset requires the receiving buffer to deal with with pasting of arbitrary tags. Since: gtk+ 2.10

Parameters
Buffer
Tagset_Name

an optional tagset name, on null

Return Value

the Gdk.Types.Gdk_Atom that corresponds to the newly registered format's mime-type.

Remove_All_Tags

procedure Remove_All_Tags
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Start   : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : Gtk.Text_Iter.Gtk_Text_Iter)

Removes all tags in the range between Start and End. Be careful with this function; it could remove tags added in code unrelated to the code you're currently writing. That is, using this function is probably a bad idea if you have two or more unrelated code sections that add tags.

Parameters
Buffer
Start

one bound of range to be untagged

The_End

other bound of range to be untagged

Remove_Selection_Clipboard

procedure Remove_Selection_Clipboard
   (Buffer    : not null access Gtk_Text_Buffer_Record;
    Clipboard : not null access Gtk.Clipboard.Gtk_Clipboard_Record'Class)

Removes a Gtk.Clipboard.Gtk_Clipboard added with Gtk.Text_Buffer.Add_Selection_Clipboard.

Parameters
Buffer
Clipboard

a Gtk.Clipboard.Gtk_Clipboard added to Buffer by Gtk.Text_Buffer.Add_Selection_Clipboard

Remove_Tag

procedure Remove_Tag
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Tag     : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
    Start   : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : Gtk.Text_Iter.Gtk_Text_Iter)

Emits the "remove-tag" signal. The default handler for the signal removes all occurrences of Tag from the given range. Start and End don't have to be in order.

Parameters
Buffer
Tag

a Gtk.Text_Tag.Gtk_Text_Tag

Start

one bound of range to be untagged

The_End

other bound of range to be untagged

Remove_Tag_By_Name

procedure Remove_Tag_By_Name
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Name    : UTF8_String;
    Start   : Gtk.Text_Iter.Gtk_Text_Iter;
    The_End : Gtk.Text_Iter.Gtk_Text_Iter)

Calls Gtk.Text_Tag_Table.Lookup on the buffer's tag table to get a Gtk.Text_Tag.Gtk_Text_Tag, then calls Gtk.Text_Buffer.Remove_Tag.

Parameters
Buffer
Name

name of a Gtk.Text_Tag.Gtk_Text_Tag

Start

one bound of range to be untagged

The_End

other bound of range to be untagged

Select_Range

procedure Select_Range
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Ins    : Gtk.Text_Iter.Gtk_Text_Iter;
    Bound  : Gtk.Text_Iter.Gtk_Text_Iter)

This function moves the "insert" and "selection_bound" marks simultaneously. If you move them in two steps with Gtk.Text_Buffer.Move_Mark, you will temporarily select a region in between their old and new locations, which can be pretty inefficient since the temporarily-selected region will force stuff to be recalculated. This function moves them as a unit, which can be optimized. Since: gtk+ 2.4

Parameters
Buffer
Ins

where to put the "insert" mark

Bound

where to put the "selection_bound" mark

Selection_Exists

function Selection_Exists
  (Buffer : access Gtk_Text_Buffer_Record) return Boolean

Return True if some text in the buffer is currently selected.

Parameters
Buffer
Return Value

Set_Modified

procedure Set_Modified
   (Buffer  : not null access Gtk_Text_Buffer_Record;
    Setting : Boolean)

Used to keep track of whether the buffer has been modified since the last time it was saved. Whenever the buffer is saved to disk, call gtk_text_buffer_set_modified (Buffer, FALSE). When the buffer is modified, it will automatically toggled on the modified bit again. When the modified bit flips, the buffer emits the Gtk.Text_Buffer.Gtk_Text_Buffer::modified-changed signal.

Parameters
Buffer
Setting

modification flag setting

Set_Text

procedure Set_Text
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Text   : UTF8_String)

Deletes current contents of Buffer, and inserts Text instead. If Len is -1, Text must be nul-terminated. Text must be valid UTF-8.

Parameters
Buffer
Text

UTF-8 text to insert

Signal_Apply_Tag

Signal_Apply_Tag : constant Glib.Signal_Name := "apply-tag";

The ::apply-tag signal is emitted to apply a tag to a range of text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Applying actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them).

See also: Gtk.Text_Buffer.Apply_Tag, gtk_text_buffer_insert_with_tags, Gtk.Text_Buffer.Insert_Range.

Callback parameters: -- @param Tag the applied tag -- @param Start the start of the range the tag is applied to -- @param The_End the end of the range the tag is applied to

Signal_Begin_User_Action

Signal_Begin_User_Action : constant Glib.Signal_Name := "begin-user-action";

The ::begin-user-action signal is emitted at the beginning of a single user-visible operation on a Gtk.Text_Buffer.Gtk_Text_Buffer.

See also: Gtk.Text_Buffer.Begin_User_Action, Gtk.Text_Buffer.Insert_Interactive, Gtk.Text_Buffer.Insert_Range_Interactive, Gtk.Text_Buffer.Delete_Interactive, Gtk.Text_Buffer.Backspace, Gtk.Text_Buffer.Delete_Selection.

Signal_Changed

Signal_Changed : constant Glib.Signal_Name := "changed";

The ::changed signal is emitted when the content of a Gtk.Text_Buffer.Gtk_Text_Buffer has changed.

Signal_Delete_Range

Signal_Delete_Range : constant Glib.Signal_Name := "delete-range";

The ::delete-range signal is emitted to delete a range from a Gtk.Text_Buffer.Gtk_Text_Buffer.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them). The default signal handler revalidates the Start and End iters to both point to the location where text was deleted. Handlers which run after the default handler (see g_signal_connect_after) do not have access to the deleted text.

See also: Gtk.Text_Buffer.Delete.

Callback parameters: -- @param Start the start of the range to be deleted -- @param The_End the end of the range to be deleted

Signal_End_User_Action

Signal_End_User_Action : constant Glib.Signal_Name := "end-user-action";

The ::end-user-action signal is emitted at the end of a single user-visible operation on the Gtk.Text_Buffer.Gtk_Text_Buffer.

See also: Gtk.Text_Buffer.End_User_Action, Gtk.Text_Buffer.Insert_Interactive, Gtk.Text_Buffer.Insert_Range_Interactive, Gtk.Text_Buffer.Delete_Interactive, Gtk.Text_Buffer.Backspace, Gtk.Text_Buffer.Delete_Selection, Gtk.Text_Buffer.Backspace.

Signal_Insert_Child_Anchor

Signal_Insert_Child_Anchor : constant Glib.Signal_Name := "insert-child-anchor";

The ::insert-child-anchor signal is emitted to insert a Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted Anchor.

See also: Gtk.Text_Buffer.Insert_Child_Anchor.

Callback parameters: -- @param Location position to insert Anchor in Textbuffer -- @param Anchor the Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor to be -- inserted

Signal_Insert_Pixbuf

Signal_Insert_Pixbuf : constant Glib.Signal_Name := "insert-pixbuf";

The ::insert-pixbuf signal is emitted to insert a Gdk.Pixbuf.Gdk_Pixbuf in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted Pixbuf.

See also: Gtk.Text_Buffer.Insert_Pixbuf.

Callback parameters: -- @param Location position to insert Pixbuf in Textbuffer -- @param Pixbuf the Gdk.Pixbuf.Gdk_Pixbuf to be inserted

Signal_Insert_Text

Signal_Insert_Text : constant Glib.Signal_Name := "insert-text";

The ::insert-text signal is emitted to insert text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text.

See also: Gtk.Text_Buffer.Insert, Gtk.Text_Buffer.Insert_Range.

Callback parameters: -- @param Location position to insert Text in Textbuffer -- @param Text the UTF-8 text to be inserted -- @param Len length of the inserted text in bytes

Signal_Mark_Deleted

Signal_Mark_Deleted : constant Glib.Signal_Name := "mark-deleted";

The ::mark-deleted signal is emitted as notification after a Gtk.Text_Mark.Gtk_Text_Mark is deleted.

See also: Gtk.Text_Buffer.Delete_Mark.

Signal_Mark_Set

Signal_Mark_Set : constant Glib.Signal_Name := "mark-set";

The ::mark-set signal is emitted as notification after a Gtk.Text_Mark.Gtk_Text_Mark is set.

See also: Gtk.Text_Buffer.Create_Mark, Gtk.Text_Buffer.Move_Mark.

Callback parameters: -- @param Location The location of Mark in Textbuffer -- @param Mark The mark that is set

Signal_Modified_Changed

Signal_Modified_Changed : constant Glib.Signal_Name := "modified-changed";

The ::modified-changed signal is emitted when the modified bit of a Gtk.Text_Buffer.Gtk_Text_Buffer flips.

See also: Gtk.Text_Buffer.Set_Modified.

Signal_Paste_Done

Signal_Paste_Done : constant Glib.Signal_Name := "paste-done";

The paste-done signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text. See Gtk.Text_Buffer.Paste_Clipboard for more details.

Signal_Remove_Tag

Signal_Remove_Tag : constant Glib.Signal_Name := "remove-tag";

The ::remove-tag signal is emitted to remove all occurrences of Tag from a range of text in a Gtk.Text_Buffer.Gtk_Text_Buffer. Removal actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the Start and End iters (or has to revalidate them).

See also: Gtk.Text_Buffer.Remove_Tag.

Callback parameters: -- @param Tag the tag to be removed -- @param Start the start of the range the tag is removed from -- @param The_End the end of the range the tag is removed from

Tag_Table_Property

Tag_Table_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Text_Tag_Table.Gtk_Text_Tag_Table

Text_Property

Text_Property : constant Glib.Properties.Property_String;

The text content of the buffer. Without child widgets and images, see Gtk.Text_Buffer.Get_Text for more information.

Unregister_Deserialize_Format

procedure Unregister_Deserialize_Format
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Format : Gdk.Types.Gdk_Atom)

This function unregisters a rich text format that was previously registered using gtk_text_buffer_register_deserialize_format or Gtk.Text_Buffer.Register_Deserialize_Tagset. Since: gtk+ 2.10

Parameters
Buffer
Format

a Gdk.Types.Gdk_Atom representing a registered rich text format.

Unregister_Serialize_Format

procedure Unregister_Serialize_Format
   (Buffer : not null access Gtk_Text_Buffer_Record;
    Format : Gdk.Types.Gdk_Atom)

This function unregisters a rich text format that was previously registered using gtk_text_buffer_register_serialize_format or Gtk.Text_Buffer.Register_Serialize_Tagset Since: gtk+ 2.10

Parameters
Buffer
Format

a Gdk.Types.Gdk_Atom representing a registered rich text format.

Tagged Types

Access Types

Constants

Subprograms