47 {
return(
static_cast<CharDist>(1 + (witharrows ? 2 : 0))); }
53 bool & vert,
bool & horiz,
58 bool scrollfromcontent =
true);
77 size_t & vertbound,
size_t & horizbound,
107 {
return(needed >= availleninnude ?
108 static_cast<int>(needed - availleninnude) : 0); }
117 char orientation,
bool witharrows,
CharDist maxlen,
118 const std::string & valformat,
char kindofvalue,
119 double minval,
double maxval,
double incval,
120 const std::string & tooltiptext =
"",
158 void bounds(
double & minval,
double & maxval)
const noexcept;
161 bool changeBounds(
double minval,
double maxval,
bool noredraw =
false);
170 const char *
className(
void)
const noexcept {
return(
"SlideWidget"); }
185 static const uint8_t kUDGs[4*8];
186 static const ID kIDSubs[NUMCHILDREN];
189 const bool witharrows_;
192 const std::string valformat_;
193 const char kindofvalue_;
195 Widget * firstarrow_;
196 Widget * secondarrow_;
201 CharDist valueLengthAsString(
double v)
const;
202 std::string valueAsString(
void)
const;
204 int processEvent(
const EventData & evdata, Widget * who)
override;
uint16_t CharDist
A distance meadured in screen chars.
The main namespace of the library, that spans across all the zx modules.