summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-19 20:45:46 +0000
committerrubidium <rubidium@openttd.org>2007-12-19 20:45:46 +0000
commit2cf7d5b2cb661ab905bbd8e37f2c10be1d00908f (patch)
tree01d7c4429e1c30bf65208609d37c644b6618ab26 /src/window_gui.h
parent8bfbfd0031bd155440432759cd6b2af0df1bccbd (diff)
downloadopenttd-2cf7d5b2cb661ab905bbd8e37f2c10be1d00908f.tar.xz
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index b4f87661c..ef2b8a77c 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -19,8 +19,6 @@
*/
static const int MAX_NUMBER_OF_WINDOWS = 25;
-struct WindowEvent;
-
typedef void WindowProc(Window *w, WindowEvent *e);
/* How the resize system works:
@@ -228,20 +226,7 @@ enum WindowDefaultPosition {
WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar
};
-struct Textbuf {
- char *buf; ///< buffer in which text is saved
- uint16 maxlength, maxwidth; ///< the maximum size of the buffer. Maxwidth specifies screensize in pixels, maxlength is in bytes
- uint16 length, width; ///< the current size of the string. Width specifies screensize in pixels, length is in bytes
- bool caret; ///< is the caret ("_") visible or not
- uint16 caretpos; ///< the current position of the caret in the buffer, in bytes
- uint16 caretxoffs; ///< the current position of the caret in pixels
-};
-
#define WP(ptr, str) (*(str*)(ptr)->custom)
-/* You cannot 100% reliably calculate the biggest custom struct as
- * the number of pointers in it and alignment will have a huge impact.
- * 96 is the largest window-size for 64-bit machines currently */
-#define WINDOW_CUSTOM_SIZE 96
struct Scrollbar {
uint16 count, cap, pos;
@@ -307,20 +292,6 @@ struct Window {
void InvalidateWidget(byte widget_index) const;
};
-struct querystr_d {
- StringID caption;
- Textbuf text;
- const char *orig;
- CharSetFilter afilter;
- bool handled;
-};
-assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(querystr_d));
-
-struct chatquerystr_d : public querystr_d {
- int dest;
-};
-assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(chatquerystr_d));
-
struct menu_d {
byte item_count; ///< follow_vehicle
byte sel_index; ///< scrollpos_x
@@ -637,7 +608,6 @@ void InputLoop();
void InvalidateThisWindowData(Window *w);
void InvalidateWindowData(WindowClass cls, WindowNumber number);
void RelocateAllWindows(int neww, int newh);
-int PositionMainToolbar(Window *w);
/* misc_gui.cpp */
void GuiShowTooltipsWithArgs(StringID str, uint paramcount, const uint64 params[]);