/dports/games/simutrans/simutrans-121.0/display/ |
H A D | scr_coord.h | 17 class scr_coord 24 scr_coord( ) { x = y = 0; } in scr_coord() function 29 …const scr_coord operator +(const scr_coord& other ) const { return scr_coord( other.x + x, other.y… 30 …const scr_coord operator -(const scr_coord& other ) const { return scr_coord( x - other.x, y - oth… 39 const scr_coord& operator +=(const scr_coord& other ) { 45 const scr_coord& operator -=(const scr_coord& other ) { 85 scr_coord( const koord); 90 static inline scr_coord operator * (const scr_coord &k, const sint16 m) 96 static inline scr_coord operator / (const scr_coord &k, const sint16 m) 114 operator scr_coord() const { return scr_coord(w,h); } in scr_coord() function [all …]
|
H A D | viewport.h | 132 scr_coord get_screen_coord( const koord3d& pos, const koord& off = koord(0,0) ) const; 137 scr_coord scale_offset(const koord &value); 186 void change_world_position(const koord3d& pos, const koord& off, scr_coord sc); 226 …grund_t* get_ground_on_screen_coordinate(scr_coord screen_pos, sint32 &found_i, sint32 &found_j, c… 234 koord3d get_new_cursor_position(const scr_coord &screen_pos, bool grid_coordinates);
|
H A D | viewport.cc | 46 scr_coord viewport_t::get_screen_coord( const koord3d& pos, const koord& off) const in get_screen_coord() 61 return scr_coord(x,y); in get_screen_coord() 65 scr_coord viewport_t::scale_offset( const koord &value ) in scale_offset() 67 …return scr_coord(tile_raster_scale_x( value.x, cached_img_size ), tile_raster_scale_y( value.x, ca… in scale_offset() 112 void viewport_t::change_world_position(const koord3d& pos, const koord& off, scr_coord sc) in change_world_position() 143 grund_t* viewport_t::get_ground_on_screen_coordinate(scr_coord screen_pos, sint32 &found_i, sint32 … in get_ground_on_screen_coordinate() 252 koord3d viewport_t::get_new_cursor_position( const scr_coord &screen_pos, bool grid_coordinates ) in get_new_cursor_position() 266 …const grund_t *bd = get_ground_on_screen_coordinate(scr_coord(screen_pos.x, screen_pos.y + offset_… in get_new_cursor_position()
|
/dports/games/simutrans/simutrans-121.0/gui/components/ |
H A D | gui_building.cc | 15 tl = scr_coord(0,0); in init() 16 br = scr_coord(0,0); in init() 34 img->set_pos(scr_coord( 2*(i-j)*rw4, (i+j)*rw4 )); in init() 39 tl.clip_rightbottom(img->get_pos() + scr_coord(x,y)); in init() 40 br.clip_lefttop(img->get_pos() + scr_coord(x+w,y+h)); in init() 55 scr_coord diff = br - tl; in get_min_size() 60 void gui_building_t::draw(scr_coord offset) in draw() 62 scr_coord pos = get_pos() + offset - tl; in draw()
|
H A D | gui_component.h | 50 scr_coord pos; 75 void init(scr_coord pos_par, scr_size size_par=scr_size(0,0)) { 124 virtual void set_pos(scr_coord pos_par) { in set_pos() 132 virtual scr_coord get_pos() const { in get_pos() 212 virtual void draw(scr_coord offset) = 0; 228 virtual scr_coord get_focus_pos() { in get_focus_pos() 239 …ponent_t* component_par, control_alignment_t alignment_par, scr_coord offset_par = scr_coord(0,0) … 270 void draw(scr_coord) OVERRIDE { } in draw() argument 290 void draw(scr_coord) OVERRIDE { } in draw() argument
|
H A D | gui_image_list.h | 55 scr_coord grid; 56 scr_coord placement; 84 void set_grid(scr_coord grid) { this->grid = grid; } in set_grid() 91 void set_placement(scr_coord placement) { this->placement = placement; } in set_placement() 101 void draw(scr_coord offset) OVERRIDE; 110 int index_at(scr_coord parent_pos, int xpos, int ypos) const;
|
H A D | gui_textinput.h | 132 void draw(scr_coord offset) OVERRIDE; 142 void display_with_focus(scr_coord offset, bool has_focus); 145 virtual void display_with_cursor(scr_coord offset, bool cursor_active, bool cursor_visible); 165 void display_with_cursor(scr_coord offset, bool cursor_active, bool cursor_visible) OVERRIDE;
|
H A D | gui_convoiinfo.cc | 35 return draw_vehicles( scr_coord(0,0), false); in get_min_size() 38 scr_size draw_vehicles(scr_coord offset, bool display_images) const in draw_vehicles() 40 scr_coord p = offset + get_pos(); in draw_vehicles() 60 void draw( scr_coord offset ) OVERRIDE in draw() 154 void gui_convoiinfo_t::draw(scr_coord offset) in draw()
|
H A D | gui_scrollbar.cc | 43 button_def[left_top_arrow_index].set_pos(scr_coord(0,0)); in scrollbar_t() 44 button_def[right_bottom_arrow_index].set_pos(scr_coord(0,0)); in scrollbar_t() 129 …button_def[left_top_arrow_index].set_pos( scr_coord( (D_SCROLLBAR_WIDTH - D_ARROW_UP_WIDTH)/2, 0) … in reposition_buttons() 130 …button_def[right_bottom_arrow_index].set_pos( scr_coord( (D_SCROLLBAR_WIDTH - D_ARROW_DOWN_WIDTH)/… in reposition_buttons() 135 …button_def[left_top_arrow_index].set_pos( scr_coord(0,(D_SCROLLBAR_HEIGHT - D_ARROW_LEFT_HEIGHT)/2… in reposition_buttons() 136 …button_def[right_bottom_arrow_index].set_pos( scr_coord(size.w - D_ARROW_RIGHT_WIDTH, (D_SCROLLBAR… in reposition_buttons() 214 if( knobarea.contains( scr_coord(x,y) ) || dragging ) { in infowin_event() 251 void scrollbar_t::draw(scr_coord pos_par) in draw()
|
H A D | gui_world_view_t.cc | 75 void world_view_t::internal_draw(const scr_coord offset, obj_t const* const obj) in internal_draw() 81 scr_coord fine_here = scr_coord(0, 0); in internal_draw() 84 …fine_here = scr_coord(tile_raster_scale_x(-obj->get_xoff(), raster), tile_raster_scale_y(-obj->get… in internal_draw() 90 fine_here -= scr_coord(x, y); in internal_draw() 108 const scr_coord pos = get_pos() + offset + scr_coord(1, 1); in internal_draw() 153 const scr_coord display_off = scr_coord((size.w - raster) / 2, hgt + yoff) + fine_here; in internal_draw()
|
H A D | gui_container.h | 64 void draw(scr_coord offset) OVERRIDE; 98 …scr_coord get_focus_pos() OVERRIDE { return comp_focus ? pos+comp_focus->get_focus_pos() : scr_coo… in get_focus_pos()
|
H A D | gui_image.cc | 9 remove_offset = scr_coord(0,0); in gui_image_t() 42 remove_offset = scr_coord(-x,-y); in set_size() 59 remove_offset = scr_coord(0,0); in set_image() 72 void gui_image_t::draw( scr_coord offset ) { in draw()
|
H A D | gui_flowtext.cc | 50 void draw(scr_coord offset) OVERRIDE; 58 scr_size output(scr_coord pos, bool doit, bool return_max_width=true); 91 scr_coord tl; // top left display position 92 scr_coord br; // bottom right display position 101 scr_coord last_offset; 108 last_offset = scr_coord::invalid; in gui_flowtext_intern_t() 345 void gui_flowtext_intern_t::draw(scr_coord offset) in draw() 356 scr_size gui_flowtext_intern_t::output(scr_coord offset, bool doit, bool return_max_width) in output() 526 scr_coord evpos = scr_coord( ev->cx, ev->cy ); // - get_pos(); in infowin_event()
|
H A D | gui_fixedwidth_textarea.cc | 27 scr_size newsize = calc_display_text(scr_coord::invalid, false); in recalc_size() 63 scr_size size = calc_display_text(scr_coord(0,0), false); in get_min_size() 80 scr_size gui_fixedwidth_textarea_t::calc_display_text(const scr_coord offset, const bool draw) const in calc_display_text() 155 void gui_fixedwidth_textarea_t::draw(scr_coord offset) in draw()
|
H A D | gui_combobox.cc | 32 bt_prev.set_pos( scr_coord(0,2) ); in gui_combobox_t() 50 last_draw_offset = scr_coord(0,0); in gui_combobox_t() 120 if( !droplist.is_visible() && !this_comp.contains(scr_coord(ev->cx,ev->cy) ) ) { in infowin_event() 158 scr_coord diff = droplist.get_pos() - gui_component_t::get_pos(); in infowin_event() 222 void gui_combobox_t::draw(scr_coord offset) in draw() 336 void gui_combobox_t::set_pos(scr_coord pos_par) in set_pos() 359 bt_prev.set_pos( scr_coord(0,(size.h-D_POS_BUTTON_HEIGHT)/2) ); in set_size() 360 …textinp.align_to( &bt_prev, ALIGN_LEFT | ALIGN_EXTERIOR_H | ALIGN_CENTER_V, scr_coord( pos.x + D_H… in set_size() 361 …bt_next.align_to( &textinp, ALIGN_LEFT | ALIGN_EXTERIOR_H | ALIGN_CENTER_V, scr_coord( -pos.x + D_… in set_size()
|
H A D | gui_textinput.cc | 112 scr_coord gui_xy = win_get_pos( win_get_top() ); in set_composition_status() 423 if( !this_comp.contains(scr_coord(ev->cx,ev->cy) ) ) { in infowin_event() 440 if( !this_comp.contains(scr_coord(ev->cx,ev->cy) ) ) { in infowin_event() 455 if( !this_comp.contains(scr_coord(ev->cx,ev->cy) ) ) { in infowin_event() 477 if( !this_comp.contains(scr_coord(ev->cx,ev->cy) ) ) { in infowin_event() 499 void gui_textinput_t::draw(scr_coord offset) in draw() 510 void gui_textinput_t::display_with_focus(scr_coord offset, bool has_focus) in display_with_focus() 520 scr_coord gui_xy = win_get_pos( win_get_top() ); in display_with_focus() 535 void gui_textinput_t::display_with_cursor(scr_coord offset, bool cursor_active, bool cursor_visible) in display_with_cursor() 652 if( !this_comp.contains(scr_coord(ev->cx,ev->cy) ) ) { in infowin_event() [all …]
|
H A D | gui_scrollpane.cc | 69 scroll_x.set_pos( scr_coord(0, size.h-D_SCROLLBAR_HEIGHT) ); in recalc_sliders() 70 scroll_y.set_pos( scr_coord(size.w-D_SCROLLBAR_WIDTH, 0) ); in recalc_sliders() 93 scroll_y.set_size( size-scr_coord(D_SCROLLBAR_WIDTH,0) ); in recalc_sliders() 109 scr_coord k = comp->get_size()+comp->get_pos(); in set_size() 197 const scr_coord relative_pos = comp->get_focus_pos(); in show_focused() 262 void gui_scrollpane_t::draw(scr_coord pos) in draw() 273 comp->draw( client.get_pos()-scr_coord(scroll_x.get_knob_offset(), scroll_y.get_knob_offset()) ); in draw()
|
/dports/games/simutrans/simutrans-121.0/gui/ |
H A D | gui_frame.cc | 44 gui_aligned_container_t::set_pos(scr_coord(0, D_TITLEBAR_HEIGHT)); in gui_frame_t() 54 gui_aligned_container_t::set_pos(scr_coord(0, has_title()*D_TITLEBAR_HEIGHT)); in set_windowsize() 58 scr_coord const& pos = win_get_pos(this); in set_windowsize() 78 gui_aligned_container_t::set_pos(scr_coord(0, has_title()*D_TITLEBAR_HEIGHT)); in reset_min_windowsize() 83 scr_coord pos = gui_aligned_container_t::get_pos(); in reset_min_windowsize() 126 scr_coord delta ( resize_mode & horizontal_resize ? ev->mx - ev->cx : 0, in infowin_event() 133 resize( scr_coord(0,0) ) ; in infowin_event() 152 void gui_frame_t::resize(const scr_coord delta) in resize() 160 scr_coord size_change = new_size - size; in resize() 177 void gui_frame_t::draw(scr_coord pos, scr_size size) in draw()
|
H A D | message_option_t.cc | 33 text_label.set_pos( scr_coord( D_MARGIN_LEFT + D_CHECKBOX_WIDTH + D_H_SPACE, D_MARGIN_TOP )); in message_option_t() 36 legend.set_pos( scr_coord(button_row,0) ); in message_option_t() 42 buttons[i*4].set_pos( scr_coord(D_MARGIN_LEFT,D_MARGIN_TOP+(i*2+1)*LINESPACE) ); in message_option_t() 48 buttons[i*4+1].set_pos( scr_coord(button_row+10,D_MARGIN_TOP+(i*2+1)*LINESPACE) ); in message_option_t() 54 buttons[i*4+2].set_pos( scr_coord(button_row+30,D_MARGIN_TOP+(i*2+1)*LINESPACE) ); in message_option_t() 60 buttons[i*4+3].set_pos( scr_coord(button_row+50,D_MARGIN_TOP+(i*2+1)*LINESPACE) ); in message_option_t()
|
H A D | depot_frame.cc | 321 scr_coord placement; in layout() 322 scr_coord grid; in layout() 477 convoi.set_pos(scr_coord(0, 0)); in layout() 539 tabs.set_pos(scr_coord(0, PANEL_VSTART)); in layout() 546 pas.set_pos(scr_coord(0, 0)); in layout() 556 electrics.set_pos(scr_coord(0, 0)); in layout() 566 loks.set_pos(scr_coord(0, 0)); in layout() 576 waggons.set_pos(scr_coord(0, 0)); in layout() 1485 scr_coord const pos = win_get_pos(this); in infowin_event() 1614 scr_coord relpos = scr_coord(0, ((gui_scrollpane_t *)tabs.get_aktives_tab())->get_scroll_y()); in draw_vehicle_info_text() [all …]
|
H A D | schedule_list.cc | 135 scl.set_pos(scr_coord(D_MARGIN_LEFT, D_MARGIN_TOP)); in schedule_list_gui_t() 140 tabs.set_pos(scr_coord(D_MARGIN_LEFT, D_MARGIN_TOP)); in schedule_list_gui_t() 197 scr_coord(D_MARGIN_LEFT, bt_y), in schedule_list_gui_t() 203 scr_coord(D_MARGIN_LEFT+D_BUTTON_WIDTH+D_H_SPACE, bt_y), in schedule_list_gui_t() 211 scr_coord(D_MARGIN_LEFT+2*(D_BUTTON_WIDTH+D_H_SPACE), bt_y), in schedule_list_gui_t() 254 chart.set_pos( scr_coord(RIGHT_COLUMN_OFFSET, D_MARGIN_TOP) ); in schedule_list_gui_t() 289 resize(scr_coord(0,0)); in schedule_list_gui_t() 290 resize(scr_coord(0,100)); in schedule_list_gui_t() 466 void schedule_list_gui_t::draw(scr_coord pos, scr_size size) in draw() 490 void schedule_list_gui_t::display(scr_coord pos) in display() [all …]
|
H A D | minimap.h | 120 koord screen_to_map_coord(const scr_coord&) const; 136 scr_coord cur_off, new_off; 144 const fabrik_t* draw_factory_connections(PIXVAL colour, scr_coord pos) const; 161 scr_coord map_to_screen_coord(const koord &k) const; 200 void set_xy_offset_size( scr_coord off, scr_size size ) { in set_xy_offset_size() 228 void draw(scr_coord pos) OVERRIDE;
|
H A D | minimap.cc | 446 scr_coord temp = start; in line_segment_draw() 484 scr_coord mid; in line_segment_draw() 1115 scr_coord c( ev->mx, ev->my ); in infowin_event() 1165 scr_coord boxpos = end + scr_coord(10, 0); in draw_factory_connections() 1190 void minimap_t::draw(scr_coord pos) in draw() 1396 scr_coord k1,k2; in draw() 1636 scr_coord c[4]; in draw() 1709 scr_coord test[4]; in draw() 1718 test[1] = scr_coord(0,0); in draw() 1729 scr_coord c[4]; in draw() [all …]
|
H A D | simwin.cc | 627 scr_coord p; in rdwr_all_win() 805 win.pos = scr_coord(x,y); in create_win() 1005 scr_coord pos = wins[win].pos; in display_win() 1114 …ck_win( const int win, scr_coord *r, const scr_coord from_pos, const scr_coord from_size, const sc… in snap_check_win() 1135 scr_coord other_pos; in snap_check_win() 1136 scr_coord other_size; in snap_check_win() 1230 …scr_coord from_size = scr_coord(wins[win].gui->get_windowsize().w,wins[win].gui->get_windowsize().… in move_win() 1236 const scr_coord to_size = from_size; in move_win() 1272 …const scr_coord from_size = scr_coord(wins[win].gui->get_windowsize().w,wins[win].gui->get_windows… in resize_win() 1274 const scr_coord to_pos = from_pos; in resize_win() [all …]
|
H A D | base_info.cc | 17 textarea->set_pos( scr_coord(0,0) ); in gui_textarea_with_embedded_element_t() 30 embedded->set_pos( scr_coord( size.w - embedded->get_size().w, 0) ); in set_size() 45 embedded->set_pos( scr_coord( size.w - embedded->get_size().w, 0) ); in set_embedded()
|