diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-06-21 20:00:28 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-06-21 20:00:28 +0000 |
| commit | 51ed4e2162d4630c19da3d95ce689e59a8ca7b3c (patch) | |
| tree | 604ccf736a403afc91b8fc233bcdaa73857726ac /src/Fl_Tabs.cxx | |
| parent | 93a99431ed1e4889a103f7bcccf4f498f05f5139 (diff) | |
Code formatting only. No significant changes.
In preparation of adding Fl_Scroll_Tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tabs.cxx')
| -rw-r--r-- | src/Fl_Tabs.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 624ba681c..85f8d10a7 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -168,13 +168,15 @@ int Fl_Tabs::handle(int event) { switch (event) { - case FL_PUSH: { - int H = tab_height(); - if (H >= 0) { - if (Fl::event_y() > y()+H) return Fl_Group::handle(event); - } else { - if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event); - }} + case FL_PUSH: + { + int H = tab_height(); + if (H >= 0) { + if (Fl::event_y() > y()+H) return Fl_Group::handle(event); + } else { + if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event); + } + } /* FALLTHROUGH */ case FL_DRAG: case FL_RELEASE: @@ -464,8 +466,8 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) { can be automatic (local) variables, but you must declare the Fl_Tabs widget <I>first</I> so that it is destroyed last. */ -Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) : - Fl_Group(X,Y,W,H,l) +Fl_Tabs::Fl_Tabs(int X, int Y, int W, int H, const char *L) : + Fl_Group(X,Y,W,H,L) { box(FL_THIN_UP_BOX); push_ = 0; @@ -518,7 +520,7 @@ void Fl_Tabs::client_area(int &rx, int &ry, int &rw, int &rh, int tabh) { if (tabh == 0) // use default (at top) y_offset = label_height; - else if (tabh == -1) // use default (at bottom) + else if (tabh == -1) // use default (at bottom) y_offset = -label_height; else y_offset = tabh; // user given value |
