101 WWB_PUSHBUTTON = 1 << 7,
133 virtual void FillNestedArray(
NWidgetBase **array, uint length) = 0;
138 virtual bool IsHighlighted()
const {
return false; }
139 virtual TextColour GetHighlightColour()
const {
return TC_INVALID; }
140 virtual void SetHighlighted(
TextColour highlight_colour) {}
149 inline void SetPadding(uint8 top, uint8 right, uint8 bottom, uint8 left)
241 void SetFill(uint fill_x, uint fill_y);
288 void SetIndex(
int index);
291 inline void SetLowered(
bool lowered);
292 inline bool IsLowered()
const;
293 inline void SetDisabled(
bool disabled);
294 inline bool IsDisabled()
const;
296 void FillNestedArray(
NWidgetBase **array, uint length);
298 bool IsHighlighted()
const;
300 void SetHighlighted(
TextColour highlight_colour);
374 void FillNestedArray(
NWidgetBase **array, uint length);
409 void SetIndex(
int index);
413 void FillNestedArray(
NWidgetBase **array, uint length);
438 void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post);
440 void Draw(
const Window *w);
497 void SetIndex(
int index);
498 void SetColour(Colours
colour);
505 void FillNestedArray(
NWidgetBase **array, uint length);
521 void GetScrollOffsets(
int &start_x,
int &start_y,
int &base_offs_x,
int &base_offs_y);
534 void FillNestedArray(
NWidgetBase **array, uint length);
551 void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post);
556 void FillNestedArray(
NWidgetBase **array, uint length);
661 assert(stepsize > 0);
677 if (num < 0) num = 0;
678 if (num < this->
pos) this->pos = num;
688 assert(capacity > 0);
691 this->
cap = capacity;
703 assert(position >= 0);
704 assert(this->count <= this->
cap ? (position == 0) : (position + this->cap <= this->
count));
705 this->
pos = position;
716 if (difference == 0)
return;
719 case SS_BIG: difference *= this->
cap;
break;
757 static void InvalidateDimensionCache();
759 static Dimension GetHorizontalDimension();
800 if (base >= max_space || step == 0)
return base;
801 if (step == 1)
return max_space;
802 uint increment = max_space - base;
803 increment -= increment % step;
804 return base + increment;
877 uint8 top, right, bottom,
left;
988 part.u.
xy.x = fill_x;
989 part.u.
xy.y = fill_y;
1053 part.u.
padding.bottom = bottom;
1066 return SetPadding(padding, padding, padding, padding);
1081 part.u.
pip.pre = pre;
1082 part.u.
pip.inter = inter;