172 const struct tile *ptile);
177 const struct tile *center,
184#define edit_buffer_type_iterate(ARG_ebuf, NAME_type) \
190 for (NAME_type = 1; NAME_type < EBT_ALL; NAME_type <<= 1) {\
191 if (!(edit_buffer_has_type((ARG_ebuf), NAME_type))) {\
195#define edit_buffer_type_iterate_end \
struct canvas int int canvas_y
struct canvas int canvas_x
int edit_buffer_get_status_string(const struct edit_buffer *ebuf, char *buf, int buflen)
bool editor_is_active(void)
void editor_selection_remove(const struct tile *ptile)
bool edit_buffer_has_type(const struct edit_buffer *ebuf, int type)
int editor_tool_get_size(enum editor_tool_type ett)
void editor_mouse_button_press(int canvas_x, int canvas_y, int button, int modifiers)
void editor_set_current_tile(const struct tile *ptile)
void editor_mouse_move(int canvas_x, int canvas_y, int modifiers)
enum editor_tool_mode editor_tool_get_mode(enum editor_tool_type ett)
bool editor_tool_has_value_erase(enum editor_tool_type ett)
void editor_tool_set_count(enum editor_tool_type ett, int count)
void editor_tool_toggle_mode(enum editor_tool_type ett, enum editor_tool_mode etm)
void editor_selection_add(const struct tile *ptile)
void editor_notify_edit_finished(void)
int editor_tool_get_value(enum editor_tool_type ett)
void editor_tool_set_applied_player(enum editor_tool_type, int player_no)
struct edit_buffer * edit_buffer_new(int type_flags)
struct edit_buffer * editor_get_copy_buffer(void)
const char * editor_tool_get_mode_name(enum editor_tool_type ett, enum editor_tool_mode etm)
void editor_set_tool(enum editor_tool_type emt)
void editor_tool_cycle_mode(enum editor_tool_type ett)
int editor_tool_get_count(enum editor_tool_type ett)
const struct tile * edit_buffer_get_origin(const struct edit_buffer *ebuf)
void edit_buffer_copy(struct edit_buffer *ebuf, const struct tile *ptile)
int editor_selection_count(void)
void editor_tool_set_size(enum editor_tool_type ett, int size)
const char * editor_get_mode_tooltip(enum editor_tool_mode etm)
bool editor_tool_is_usable(enum editor_tool_type ett)
enum editor_tool_type editor_get_tool(void)
bool editor_tool_has_applied_player(enum editor_tool_type ett)
bool editor_tool_has_size(enum editor_tool_type ett)
void edit_buffer_clear(struct edit_buffer *ebuf)
void editor_tool_set_value(enum editor_tool_type ett, int value)
bool editor_tool_has_value(enum editor_tool_type ett)
const char * editor_tool_get_tooltip(enum editor_tool_type ett)
void editor_selection_clear(void)
void editor_mouse_button_release(int canvas_x, int canvas_y, int button, int modifiers)
void edit_buffer_copy_square(struct edit_buffer *ebuf, const struct tile *center, int radius)
struct sprite * editor_tool_get_sprite(enum editor_tool_type ett)
const struct tile * editor_get_current_tile(void)
void editor_apply_tool_to_selection(void)
const char * editor_tool_get_value_name(enum editor_tool_type ett, int value)
void editor_apply_tool(const struct tile *ptile, bool part_of_selection)
bool editor_tile_is_selected(const struct tile *ptile)
void edit_buffer_set_origin(struct edit_buffer *ebuf, const struct tile *ptile)
void edit_buffer_paste(struct edit_buffer *ebuf, const struct tile *dest)
const struct tile * editor_get_selection_center(void)
bool editor_tool_has_mode(enum editor_tool_type ett, enum editor_tool_mode etm)
struct unit * editor_unit_virtual_create(void)
void editor_ruleset_changed(void)
int editor_tool_get_applied_player(enum editor_tool_type ett)
editor_keyboard_modifiers
bool editor_tool_has_count(enum editor_tool_type ett)
struct sprite * editor_get_mode_sprite(enum editor_tool_mode etm)
const char * editor_tool_get_name(enum editor_tool_type ett)
void edit_buffer_free(struct edit_buffer *ebuf)
void editor_tool_set_mode(enum editor_tool_type ett, enum editor_tool_mode etm)