/[svn]/gigedit/trunk/src/gigedit/wrapLabel.hh
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/wrapLabel.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1799 by persson, Sat Dec 6 13:49:26 2008 UTC revision 3735 by schoenebeck, Sat Feb 1 19:28:43 2020 UTC
# Line 30  Line 30 
30    
31  namespace view {  namespace view {
32    
33    /** @brief Multi-line label for gtk(mm) <= 2.
34     *
35     * This class is only used for gtk(mm) <= 2. If application is compiled against
36     * gtk(mm) >= 3 then this class is not compiled at all. gtk(mm) 3 added support
37     * for automatic multi-line labels by calling its set_line_wrap() method.
38     * However Gtk::Label may still cause size calculation problems under certain
39     * conditions. If you encountered such a problem, then use @c MultiLineLabel for
40     * for gtk(mm) >= 3 instead.
41     *
42     * @see MultiLineLabel for gtk(mm) >= 3
43     */
44  class WrapLabel  class WrapLabel
45     : public Gtk::Label     : public Gtk::Label
46  {  {
# Line 45  protected: Line 55  protected:
55     virtual void on_size_request(Gtk::Requisition *req);     virtual void on_size_request(Gtk::Requisition *req);
56    
57  private:  private:
58     void SetWrapWidth(size_t width);     void SetWrapWidth(int width);
59    
60     size_t mWrapWidth;     int mWrapWidth;
61       int mWrapHeight;
62  };  };
63    
64    

Legend:
Removed from v.1799  
changed lines
  Added in v.3735

  ViewVC Help
Powered by ViewVC