lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 95e616e 105/156: Add wx_table_generator::colu


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 95e616e 105/156: Add wx_table_generator::columns_count() accessor
Date: Tue, 30 Jan 2018 17:22:22 -0500 (EST)

branch: master
commit 95e616eaedebc80da6219c53cc7a1a19bc7fed5e
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>

    Add wx_table_generator::columns_count() accessor
    
    This is convenient to be able to draw the line under the table headers
    without knowing how many of them there are beforehand.
---
 wx_table_generator.hpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index 5e138ff..5b9b19b 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -95,6 +95,9 @@ class wx_table_generator
         ,std::string const& value
         );
 
+    // Return the number of columns.
+    std::size_t columns_count() const {return columns_.size();}
+
     // Return the height of a single table row.
     int row_height() const {return row_height_;}
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]