diff options
author | rubidium <rubidium@openttd.org> | 2009-11-07 22:29:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-07 22:29:17 +0000 |
commit | 618621e851ce03b100cbc4c3413316ee59546c4a (patch) | |
tree | 2d29c281790b7ce8d63b20dd58e340ed0e5d28cb /src/window_gui.h | |
parent | 587c379c6ff5ad91ed34c8f913d2d2f3c26c3120 (diff) | |
download | openttd-618621e851ce03b100cbc4c3413316ee59546c4a.tar.xz |
(svn r18003) -Cleanup: prune some unused functions from Window
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 13e72ed9a..a0b9bb824 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -347,7 +347,6 @@ protected: void FindWindowPlacementAndResize(const WindowDesc *desc); public: - Window(int x, int y, int width, int height, WindowClass cls, const Widget *widget); Window(const WindowDesc *desc, WindowNumber number = 0); Window(); @@ -581,31 +580,6 @@ public: return HasBit(this->widget[widget_index].display_flags, WIDG_LOWERED); } - /** - * Align widgets a and b next to each other. - * @param widget_index_a the left widget - * @param widget_index_b the right widget (fixed) - */ - inline void AlignWidgetRight(byte widget_index_a, byte widget_index_b) - { - assert(widget_index_a < this->widget_count); - assert(widget_index_b < this->widget_count); - int w = this->widget[widget_index_a].right - this->widget[widget_index_a].left; - this->widget[widget_index_a].right = this->widget[widget_index_b].left - 1; - this->widget[widget_index_a].left = this->widget[widget_index_a].right - w; - } - - /** - * Get the width of a widget. - * @param widget_index the widget - * @return width of the widget - */ - inline int GetWidgetWidth(byte widget_index) const - { - assert(widget_index < this->widget_count); - return this->widget[widget_index].right - this->widget[widget_index].left + 1; - } - bool SetFocusedWidget(byte widget_index); void HandleButtonClick(byte widget); |