#include <wx/panel.h>#include <wx/dcclient.h>#include <wx/bitmap.h>#include <wx/image.h>#include <wx/intl.h>#include <cmath>#include <stdexcept>#include <wx/log.h>#include "utils/debug.h"#include "utils/conversion.h"#include "utils/math.h"#include "uiutils.h"#include "mapctrl.h"#include "springunitsync.h"#include "user.h"#include "ui.h"#include "server.h"#include "ibattle.h"#include "settings.h"#include "iconimagelist.h"#include "images/close.xpm"#include "images/close_hi.xpm"#include "images/bot.xpm"#include "images/no1_icon.png.h"#include "images/no2_icon.png.h"

Go to the source code of this file.
Functions | |
| const wxSize | user_box_icon_size (USER_BOX_ICON_WIDTH+2 *USER_BOX_ICON_PADDING, USER_BOX_ICON_HEIGHT+2 *USER_BOX_ICON_PADDING) |
| const wxSize | user_box_expanded_size (USER_BOX_EXPANDED_WIDTH, USER_BOX_EXPANDED_HEIGHT) |
| static void | WriteInt24 (unsigned char *p, int i) |
| static int | ReadInt24 (const unsigned char *p) |
| wxPoint | FitInside (const wxRect &what, const wxRect &container) |
Try to fit what inside container. | |
Variables | |
| const int | USER_BOX_EXPANDED_HEIGHT = 70 |
| const int | USER_BOX_EXPANDED_WIDTH = 75 |
| const int | USER_BOX_ICON_PADDING = 2 |
| How much padding to place around the icon of a user box. | |
| const int | USER_BOX_ICON_WIDTH = 16 |
| Width of the e.g. | |
| const int | USER_BOX_ICON_HEIGHT = 16 |
| Height of the e.g. | |
| const int | USER_BOX_ICON_HALFWIDTH = (USER_BOX_ICON_WIDTH / 2) |
| const int | USER_BOX_ICON_HALFHEIGHT = (USER_BOX_ICON_HEIGHT / 2) |
| const int | boxsize = 8 |
| const int | minboxsize = 40 |
Try to fit what inside container.
Definition at line 794 of file mapctrl.cpp.
| static int ReadInt24 | ( | const unsigned char * | p | ) | [inline, static] |
Definition at line 90 of file mapctrl.cpp.
| const wxSize user_box_expanded_size | ( | USER_BOX_EXPANDED_WIDTH | , | |
| USER_BOX_EXPANDED_HEIGHT | ||||
| ) |
| const wxSize user_box_icon_size | ( | USER_BOX_ICON_WIDTH+2 * | USER_BOX_ICON_PADDING, | |
| USER_BOX_ICON_HEIGHT+2 * | USER_BOX_ICON_PADDING | |||
| ) |
| static void WriteInt24 | ( | unsigned char * | p, | |
| int | i | |||
| ) | [inline, static] |
Definition at line 83 of file mapctrl.cpp.
| const int boxsize = 8 |
Definition at line 80 of file mapctrl.cpp.
| const int minboxsize = 40 |
Definition at line 81 of file mapctrl.cpp.
| const int USER_BOX_EXPANDED_HEIGHT = 70 |
Definition at line 41 of file mapctrl.cpp.
| const int USER_BOX_EXPANDED_WIDTH = 75 |
Definition at line 42 of file mapctrl.cpp.
| const int USER_BOX_ICON_HALFHEIGHT = (USER_BOX_ICON_HEIGHT / 2) |
Definition at line 61 of file mapctrl.cpp.
| const int USER_BOX_ICON_HALFWIDTH = (USER_BOX_ICON_WIDTH / 2) |
Definition at line 60 of file mapctrl.cpp.
| const int USER_BOX_ICON_HEIGHT = 16 |
Height of the e.g.
player or bot images that mark a player/bot's chosen start position.
Definition at line 57 of file mapctrl.cpp.
| const int USER_BOX_ICON_PADDING = 2 |
How much padding to place around the icon of a user box.
Definition at line 46 of file mapctrl.cpp.
| const int USER_BOX_ICON_WIDTH = 16 |
Width of the e.g.
player or bot images that mark a player/bot's chosen start position.
Definition at line 52 of file mapctrl.cpp.
1.6.3