82 #if defined(DEBUG) && 0
83 printf(
"left %d right %d (xdiff=%d) upper %d lower %d (ydiff=%d) width=%d height=%d\n",
111 while (window && window->
aww != aw) {
112 window = window->
next;
162 AW_world rect = { 0, srect.height(), 0, srect.width() };
172 set_scrollbar_indents();
219 #if defined(DEBUG) && 0
220 static int toggle = 0;
222 toggle = (toggle+1)&7;
234 AW_pos fx = dx<0 ? x1-dx : x1;
235 AW_pos fy = dy<0 ? y1-dy : y1;
236 AW_pos tx = dx>0 ? x1+dx : x1;
237 AW_pos ty = dy>0 ? y1+dy : y1;
238 int xs =
int(x2-x1-
abs(dx));
239 int ys =
int(y2-y1-
abs(dy));
244 rect.
b =
int(ty+ys-1);
246 rect.
r =
int(tx+xs-1);
308 skip_move = (
abs(
int(dy)) > (bottom_y - top_y - 20)) || (
abs(
int(dx)) > (right_x - left_x - 20));
340 void ED4_window::set_scrollbar_indents() {
360 while (temp != window) {
431 slider_pos_horizontal(0),
432 slider_pos_vertical(0),
#define AWAR_EDIT_BASE_POSITION
AW_device * get_device() const
void set_resize_callback(AW_area area, const WindowCallback &wcb)
AW_device * current_device()
void special_window_refresh(bool handle_updates)
const AW_screen_area & get_area_size() const
static void ED4_resize_cb(AW_window *aww)
ED4_area_manager * top_area_man
void ED4_horizontal_change_cb(AW_window *aww)
ED4_scrolled_rectangle scrolled_rect
void update_window_coords()
virtual void clear_part(const AW::Rectangle &rect, AW_bitset filteri)
void set_vertical_scrollbar_top_indent(int indent)
#define AWAR_EDIT_SEQ_POSITION
ED4_area_manager * middle_area_man
int slider_pos_horizontal
char awar_path_for_IUPAC[50]
ED4_update_info update_info
ED4_window * get_matching_ed4w(AW_window *aww)
void update_scrolled_rectangle()
void _get_area_size(AW_area area, AW_screen_area *square)
const AW_bitset AW_ALL_DEVICES
int slider_pos_horizontal
current position of the vertical slider
static ED4_window * insert_window(AW_window_menu_modes *new_aww)
ED4_folding_line * insert_folding_line(AW_pos pos, AW_pos dimension, ED4_properties prop)
char awar_path_for_basePos[50]
void set_motion_callback(AW_area area, const WindowCallback &wcb)
void ED4_motion_cb(AW_window *aww)
const AW_bitset AW_ALL_DEVICES_SCALED
void set_bottom_font_overlap(bool allow)
static void update_rectangle(AW_pos x1, AW_pos y1, AW_pos x2, AW_pos y2)
ED4_folding_line * delete_member(ED4_folding_line *fl)
#define AWAR_EDIT_HELIXNR
long window_upper_clip_point
const double & ypos() const
long window_lower_clip_point
GBDATA * get_gb_main() const
void check_valid_scrollbar_values()
void ED4_input_cb(AW_window *aww)
void calculate_scrollbars()
static void move_and_update_rectangle(AW_pos x1, AW_pos y1, AW_pos x2, AW_pos y2, int dx, int dy)
void set_expose_callback(AW_area area, const WindowCallback &wcb)
ED4_window * first_window
static void clear_and_update_rectangle(AW_pos x1, AW_pos y1, AW_pos x2, AW_pos y2)
ED4_window(AW_window_menu_modes *window)
int get_max_width() const
const Position & upper_left_corner() const
void reset_all_for_new_config()
char awar_path_for_cursor[50]
ED4_main_manager * main_manager
void calc_world_coords(AW_pos *x, AW_pos *y) const
AW_awar * awar(const char *awar)
static void ED4_expose_cb(AW_window *aww)
void delete_window(ED4_window *window)
ED4_scroll_links scroll_links
void set_top_font_overlap(bool allow)
void set_horizontal_scrollbar_left_indent(int indent)
void ED4_vertical_change_cb(AW_window *aww)
void tell_scrolled_picture_size(AW_screen_area rectangle)
AW_awar * awar_int(const char *var_name, long default_value=0, AW_default default_file=AW_ROOT_DEFAULT)
#define AWAR_EDIT_ECOLI_POSITION
char awar_path_for_Ecoli[50]
char awar_path_for_helixNr[50]
void set_right_font_overlap(bool allow)
void insertAs(ED4_folding_line *&ptr)
ED4_window * current_ed4w()
long window_right_clip_point
ED4_returncode set_scrolled_rectangle(ED4_base *x_link, ED4_base *y_link, ED4_base *width_link, ED4_base *height_link)
ED4_returncode scroll_rectangle(int dx, int dy)
const double & xpos() const
GB_ERROR write_string(const char *aw_string)
virtual void move_region(AW_pos src_x, AW_pos src_y, AW_pos width, AW_pos height, AW_pos dest_x, AW_pos dest_y)
void delete_folding_line(ED4_folding_line *fl, ED4_properties prop)
Position lower_right_corner() const
AW_window_menu_modes * aww
GB_transaction ta(gb_var)
void set_horizontal_change_callback(const WindowCallback &wcb)
bool box(int gc, AW::FillStyle filled, const AW::Rectangle &rect, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
void set_vertical_change_callback(const WindowCallback &wcb)
long window_left_clip_point
AW_awar * awar_string(const char *var_name, const char *default_value="", AW_default default_file=AW_ROOT_DEFAULT)
void set_left_font_overlap(bool allow)
int slider_pos_vertical
window id
void set_input_callback(AW_area area, const WindowCallback &wcb)
GB_ERROR write_int(long aw_int)
unsigned int linked_to_scrolled_rectangle