summaryrefslogtreecommitdiff
path: root/src/fl_boxtype.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-09-01 12:33:11 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-09-01 12:35:48 +0200
commitb65d3a249d4db1ada6d0bc96031e55459e0d6381 (patch)
treecb2d4c2778263df4245b6cb7122ab0bd8826c5c4 /src/fl_boxtype.cxx
parent95799bd3641ebe43400aa85dd8cf84405f26aac8 (diff)
Customize corner radius for rounded box/frame (#130)
Make maximum box corner radius and shadow width configurable. See Fl::box_border_radius_max() and Fl::box_shadow_width(). Documentation: update image of box types. Fixes #130
Diffstat (limited to 'src/fl_boxtype.cxx')
-rw-r--r--src/fl_boxtype.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fl_boxtype.cxx b/src/fl_boxtype.cxx
index 2d30ff421..e5e19d630 100644
--- a/src/fl_boxtype.cxx
+++ b/src/fl_boxtype.cxx
@@ -1,7 +1,7 @@
//
// Box drawing code for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2015 by Bill Spitzak and others.
+// Copyright 1998-2020 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -46,6 +46,9 @@ static const uchar inactive_ramp[24] = {
51, 51, 52, 52};
static int draw_it_active = 1;
+int Fl::box_border_radius_max_ = 15;
+int Fl::box_shadow_width_ = 3;
+
/**
Determines if the currently drawn box is active or inactive.