[pangomm] Add Layout::set/get_line_spacing()



commit 1b553a463ba0bef920156d3cee6a3b27418eb9a2
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Fri Nov 27 15:40:35 2020 +0100

    Add Layout::set/get_line_spacing()
    
    See #9

 pango/src/layout.hg | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/pango/src/layout.hg b/pango/src/layout.hg
index 0a2f53f..d73ff15 100644
--- a/pango/src/layout.hg
+++ b/pango/src/layout.hg
@@ -47,7 +47,9 @@ _WRAP_ENUM(EllipsizeMode, PangoEllipsizeMode, decl_prefix PANGOMM_API)
 class PANGOMM_API Layout : public Glib::Object
 {
   _CLASS_GOBJECT(Layout, PangoLayout, PANGO_LAYOUT, Glib::Object, GObject, , , PANGOMM_API)
-  _IGNORE(pango_layout_set_text, pango_layout_set_markup, pango_layout_set_markup_with_accel, 
pango_layout_get_log_attrs, pango_layout_get_iter)
+
+  _IGNORE(pango_layout_set_text, pango_layout_set_markup, pango_layout_set_markup_with_accel,
+    pango_layout_get_log_attrs, pango_layout_get_log_attrs_readonly, pango_layout_get_iter)
 
 protected:
   explicit Layout(const Glib::RefPtr<Context>& context);
@@ -132,6 +134,8 @@ public:
   _WRAP_METHOD(int get_indent() const, pango_layout_get_indent)
   _WRAP_METHOD(void set_spacing(int spacing), pango_layout_set_spacing)
   _WRAP_METHOD(int get_spacing() const, pango_layout_get_spacing)
+  _WRAP_METHOD(void set_line_spacing(float factor), pango_layout_set_line_spacing)
+  _WRAP_METHOD(float get_line_spacing() const, pango_layout_get_line_spacing)
   _WRAP_METHOD(void set_justify(bool justify = true), pango_layout_set_justify)
   _WRAP_METHOD(bool get_justify() const, pango_layout_get_justify)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]