Home
last modified time | relevance | path

Searched refs:get_h (Results 1 – 25 of 530) sorted by relevance

12345678910>>...22

/dports/devel/etl/synfig-1.2.2/ETL/test/
H A Dsurface.cpp138 make_pattern(my_surface.begin(),my_surface.get_w(),my_surface.get_h()); in linear_sample_test()
145 for(y=-extra;y<dest.get_h()-extra;y++) in linear_sample_test()
149 float(y)/float(dest.get_h()-1-extra*2)*float(my_surface.get_h()-1) in linear_sample_test()
153 display_pen(dest.begin(),dest.get_w(),dest.get_h()); in linear_sample_test()
177 for(y=0;y<dest.get_h();y++) in cubic_sample_test()
181 float(y)/float(dest.get_h()-1)*float(my_surface.get_h()-1) in cubic_sample_test()
185 display_pen(dest.begin(),dest.get_w(),dest.get_h()); in cubic_sample_test()
188 display_pen(my_surface.begin(),my_surface.get_w(),my_surface.get_h()); in cubic_sample_test()
194 for(y=0;y<dest.get_h();y++) in cubic_sample_test()
198 float(y)/float(dest.get_h()-1)*float(my_surface.get_h()-1) in cubic_sample_test()
[all …]
/dports/graphics/synfig/synfig-1.2.2/ETL/test/
H A Dsurface.cpp138 make_pattern(my_surface.begin(),my_surface.get_w(),my_surface.get_h()); in linear_sample_test()
145 for(y=-extra;y<dest.get_h()-extra;y++) in linear_sample_test()
149 float(y)/float(dest.get_h()-1-extra*2)*float(my_surface.get_h()-1) in linear_sample_test()
153 display_pen(dest.begin(),dest.get_w(),dest.get_h()); in linear_sample_test()
177 for(y=0;y<dest.get_h();y++) in cubic_sample_test()
181 float(y)/float(dest.get_h()-1)*float(my_surface.get_h()-1) in cubic_sample_test()
185 display_pen(dest.begin(),dest.get_w(),dest.get_h()); in cubic_sample_test()
188 display_pen(my_surface.begin(),my_surface.get_w(),my_surface.get_h()); in cubic_sample_test()
194 for(y=0;y<dest.get_h();y++) in cubic_sample_test()
198 float(y)/float(dest.get_h()-1)*float(my_surface.get_h()-1) in cubic_sample_test()
[all …]
/dports/graphics/synfigstudio/synfig-1.2.2/ETL/test/
H A Dsurface.cpp138 make_pattern(my_surface.begin(),my_surface.get_w(),my_surface.get_h()); in linear_sample_test()
145 for(y=-extra;y<dest.get_h()-extra;y++) in linear_sample_test()
149 float(y)/float(dest.get_h()-1-extra*2)*float(my_surface.get_h()-1) in linear_sample_test()
153 display_pen(dest.begin(),dest.get_w(),dest.get_h()); in linear_sample_test()
177 for(y=0;y<dest.get_h();y++) in cubic_sample_test()
181 float(y)/float(dest.get_h()-1)*float(my_surface.get_h()-1) in cubic_sample_test()
185 display_pen(dest.begin(),dest.get_w(),dest.get_h()); in cubic_sample_test()
188 display_pen(my_surface.begin(),my_surface.get_w(),my_surface.get_h()); in cubic_sample_test()
194 for(y=0;y<dest.get_h();y++) in cubic_sample_test()
198 float(y)/float(dest.get_h()-1)*float(my_surface.get_h()-1) in cubic_sample_test()
[all …]
/dports/games/widelands/widelands-build21/src/ui_basic/
H A Dbutton.cc216 const int max_image_h = get_h() - 2 * kButtonImageMargin; in draw()
256 assert(2 <= get_h()); in draw()
264 dst.fill_rect(Recti(2, get_h() - 2, get_w() - 2, 1), black); in draw()
265 dst.fill_rect(Recti(1, get_h() - 1, get_w() - 1, 1), black); in draw()
267 dst.fill_rect(Recti(get_w() - 2, 2, 1, get_h() - 2), black); in draw()
268 dst.fill_rect(Recti(get_w() - 1, 1, 1, get_h() - 1), black); in draw()
278 dst.fill_rect(Recti(0, 0, 1, get_h() - 1), black); in draw()
279 dst.fill_rect(Recti(1, 0, 1, get_h() - 2), black); in draw()
287 dst.fill_rect(Recti(0, 2, 2, get_h() - 2), shade); in draw()
288 dst.fill_rect(Recti(0, get_h() - 2, get_w(), get_h()), shade); in draw()
[all …]
H A Dscrollbar.cc152 extent = get_h(); in get_area_for_point()
195 int32_t extent = horizontal_ ? get_w() : get_h(); in set_knob_pos()
210 uint32_t extent = horizontal_ ? get_w() : get_h(); in get_knob_size()
337 draw_button(dst, Area::Minus, Recti(0, 0, get_w() / 2, get_h())); in draw()
340 draw_button(dst, Area::Minus, Recti(0, 0, get_w(), get_h())); in draw()
345 draw_button(dst, Area::Minus, Recti(0, 0, buttonsize_, get_h())); in draw()
357 if ((2 * buttonsize_ + knobsize) > static_cast<uint32_t>(get_h())) { in draw()
359 if (static_cast<uint32_t>(get_h()) >= 2 * buttonsize_) { in draw()
360 draw_button(dst, Area::Minus, Recti(0, 0, get_w(), get_h() / 2)); in draw()
361 draw_button(dst, Area::Plus, Recti(0, get_h() - buttonsize_, get_w(), get_h() / 2)); in draw()
[all …]
H A Dprogressbar.cc66 assert(0 < get_h()); in draw()
81 dst.fill_rect(Recti(0, 0, w, get_h()), color); in draw()
82 dst.fill_rect(Recti(w, 0, get_w() - w, get_h()), RGBColor(0, 0, 0)); in draw()
84 const uint32_t h = static_cast<uint32_t>(get_h() * (1.0f - fraction)); in draw()
87 dst.fill_rect(Recti(0, h, get_w(), get_h() - h), color); in draw()
93 Vector2i pos(get_w() / 2, get_h() / 2); in draw()
H A Dwindow.cc250 set_pos(Vector2i(get_x(), get_y()) + Vector2i(0, (mouse.y < get_h() / 2 ? 1 : -1) * get_h())); in move_out_of_the_way()
283 if ((parent->get_inner_h() < get_h()) && (py + get_h() < parent->get_inner_h() || py > 0)) { in move_inside_parent()
305 if (parent->get_inner_h() >= get_h()) { in move_inside_parent()
308 } else if (py + get_h() > parent->get_inner_h()) { in move_inside_parent()
309 py = parent->get_inner_h() - get_h(); in move_inside_parent()
452 (Vector2i(0, get_h() - kBottomBorderThickness), pic_bottom_, in draw_border()
607 const int32_t h = get_h(); in handle_mousemove()
677 int32_t const other_bot = other_top + snap_target->get_h(); in handle_mousemove()
749 std::abs(get_h() - note.old_height) < kEdgeTolerance) { in on_resolution_changed_note()
767 set_pos(Vector2i(get_x(), (note.new_height - get_h()) / 2)); in on_resolution_changed_note()
[all …]
H A Deditbox.cc349 if (get_w() >= 2 && get_h() >= 2 && !warning_) { in draw()
360 dst.fill_rect(Recti(0, 0, 1, get_h() - 1), black); in draw()
361 dst.fill_rect(Recti(1, 0, 1, get_h() - 2), black); in draw()
368 dst.fill_rect(Recti(0, get_h() - 2, get_w(), 2), red); in draw()
370 dst.fill_rect(Recti(get_w() - 2, 0, 2, get_h() - 2), red); in draw()
377 dst.fill_rect(Recti(0, 0, 1, get_h() - 1), red); in draw()
378 dst.fill_rect(Recti(1, 0, 1, get_h() - 2), red); in draw()
379 dst.brighten_rect(Recti(0, 0, 1, get_h() - 1), BUTTON_EDGE_BRIGHT_FACTOR); in draw()
380 dst.brighten_rect(Recti(1, 0, 1, get_h() - 2), BUTTON_EDGE_BRIGHT_FACTOR); in draw()
384 dst.brighten_rect(Recti(0, 0, get_w(), get_h()), MOUSE_OVER_BRIGHT_FACTOR); in draw()
[all …]
/dports/games/widelands/widelands-build21/src/ui_fsmenu/
H A Dlaunch_spg.cc47 get_h() * 3 / 10, in FullscreenMenuLaunchSPG()
56 get_h() * 53 / 200 - 15, in FullscreenMenuLaunchSPG()
61 name_(this, get_w() * 1 / 25, get_h() * 53 / 200 - 15, 0, 0, _("Player’s name")), in FullscreenMenuLaunchSPG()
65 get_h() * 53 / 200 - 15, in FullscreenMenuLaunchSPG()
71 get_h() * 53 / 200, in FullscreenMenuLaunchSPG()
77 get_h() * 53 / 200 - 15, in FullscreenMenuLaunchSPG()
83 get_h() * 53 / 200, in FullscreenMenuLaunchSPG()
89 get_h() * 7 / 20 + buth_, in FullscreenMenuLaunchSPG()
111 ok_.set_pos(Vector2i(get_w() * 7 / 10, get_h() * 9 / 10)); in FullscreenMenuLaunchSPG()
112 back_.set_pos(Vector2i(get_w() * 7 / 10, get_h() * 17 / 20)); in FullscreenMenuLaunchSPG()
[all …]
H A Dmain_menu.cc27 box_y_(get_h() * 6 / 25), in FullscreenMenuMainMenu()
29 buth_(get_h() * 9 / 200), in FullscreenMenuMainMenu()
30 title_y_(get_h() * 3 / 40), in FullscreenMenuMainMenu()
37 box_y_ = get_h() * 6 / 25; in layout()
39 buth_ = get_h() * 9 / 200; in layout()
40 title_y_ = get_h() * 3 / 40; in layout()
H A Dlaunch_mpg.cc107 get_h() * 3 / 20, in FullscreenMenuLaunchMPG()
116 get_h() / 100, in FullscreenMenuLaunchMPG()
127 get_h() / 10, in FullscreenMenuLaunchMPG()
129 get_h() / 10, in FullscreenMenuLaunchMPG()
135 get_h() / 10, in FullscreenMenuLaunchMPG()
137 get_h() / 10, in FullscreenMenuLaunchMPG()
143 get_h() / 10, in FullscreenMenuLaunchMPG()
145 get_h() / 10, in FullscreenMenuLaunchMPG()
159 get_h() * 2 / 10, in FullscreenMenuLaunchMPG()
161 get_h() * 15 / 20 - 9.25 * label_height_ - get_h() * 2 / 10, in FullscreenMenuLaunchMPG()
[all …]
H A Dinternet_lobby.cc54 buth_(get_h() * 19 / 400), in FullscreenMenuInternetLobby()
62 get_h() / 20, in FullscreenMenuInternetLobby()
68 clients_(this, get_w() * 4 / 125, get_h() * 15 / 100, 0, 0, _("Clients online:")), in FullscreenMenuInternetLobby()
69 opengames_(this, get_w() * 17 / 25, get_h() * 15 / 100, 0, 0, _("Open Games:")), in FullscreenMenuInternetLobby()
76 get_h() * 55 / 100, in FullscreenMenuInternetLobby()
84 get_h() * 73 / 100, in FullscreenMenuInternetLobby()
92 get_h() * 90 / 100, in FullscreenMenuInternetLobby()
103 this, get_w() * 4 / 125, get_h() / 5, lisw_, get_h() * 3 / 10, UI::PanelStyle::kFsMenu), in FullscreenMenuInternetLobby()
105 this, get_w() * 17 / 25, get_h() / 5, butw_, get_h() * 7 / 20, UI::PanelStyle::kFsMenu), in FullscreenMenuInternetLobby()
110 get_h() * 51 / 100, in FullscreenMenuInternetLobby()
[all …]
H A Dload_map_or_game.cc40 tabley_ = get_h() * 17 / 50; in layout()
42 tableh_ = get_h() * 6083 / 10000; in layout()
44 buty_ = get_h() * 9 / 10; in layout()
46 buth_ = get_h() * 9 / 200; in layout()
57 return preceding_panel.get_y() + preceding_panel.get_h(); in get_y_from_preceding()
H A Doptions.cc356 buth_ = get_h() * 9 / 200; in layout()
359 tab_panel_y_ = get_h() * 14 / 100; in layout()
362 title_.set_size(get_w(), title_.get_h()); in layout()
388 fullscreen_.set_desired_size(column_width, fullscreen_.get_h()); in layout()
389 inputgrab_.set_desired_size(column_width, inputgrab_.get_h()); in layout()
390 sdl_cursor_.set_desired_size(column_width, sdl_cursor_.get_h()); in layout()
392 sb_maxfps_.set_desired_size(column_width, sb_maxfps_.get_h()); in layout()
408 sb_autosave_.set_desired_size(tab_panel_width, sb_autosave_.get_h()); in layout()
411 zip_.set_desired_size(tab_panel_width, zip_.get_h()); in layout()
418 ctrl_zoom_.set_desired_size(tab_panel_width, ctrl_zoom_.get_h()); in layout()
[all …]
/dports/games/widelands/widelands-build21/src/wui/
H A Dminimap.cc126 view_.get_h() + but_h() * 0, in MiniMap()
137 view_.get_h() + but_h() * 0, in MiniMap()
148 view_.get_h() + but_h() * 0, in MiniMap()
159 view_.get_h() + but_h() * 1, in MiniMap()
170 view_.get_h() + but_h() * 1, in MiniMap()
181 view_.get_h() + but_h() * 1, in MiniMap()
217 button_terrn.set_pos(Vector2i(but_w() * 0, view_.get_h())); in resize()
219 button_owner.set_pos(Vector2i(but_w() * 1, view_.get_h())); in resize()
221 button_flags.set_pos(Vector2i(but_w() * 2, view_.get_h())); in resize()
223 button_roads.set_pos(Vector2i(but_w() * 3, view_.get_h())); in resize()
[all …]
H A Dmapdetails.cc73 suggested_teams_box_->set_pos(Vector2i(0, get_h() - suggested_teams_box_->get_h())); in layout()
74 main_box_.set_size(get_w(), get_h() - suggested_teams_box_->get_h() - padding_); in layout()
76 main_box_.set_size(get_w(), get_h()); in layout()
78 descr_.set_size(main_box_.get_w(), main_box_.get_h() - name_label_.get_h() - padding_); in layout()
91 main_box_.set_size(main_box_.get_w(), get_h()); in update()
/dports/devel/etl/synfig-1.2.2/synfig-core/src/modules/mod_yuv420p/
H A Dtrgt_yuv.cpp84 desc.get_w(), desc.get_h(), in init()
96 given_desc->set_h(given_desc->get_h()*2/2); in set_rend_desc()
101 surface.set_wh(desc.get_w(),desc.get_h()); in set_rend_desc()
128 const int w=desc.get_w(),h=desc.get_h(); in end_frame()
151 if(surface.get_h()>y+1) in end_frame()
181 for(y=0;y<sm_surface.get_h();y++) in end_frame()
193 if(sm_surface.get_h()>y+1) in end_frame()
207 for(y=0;y<sm_surface.get_h();y++) in end_frame()
219 if(sm_surface.get_h()>y+1) in end_frame()
/dports/graphics/synfig/synfig-1.2.2/synfig-core/src/modules/mod_yuv420p/
H A Dtrgt_yuv.cpp84 desc.get_w(), desc.get_h(), in init()
96 given_desc->set_h(given_desc->get_h()*2/2); in set_rend_desc()
101 surface.set_wh(desc.get_w(),desc.get_h()); in set_rend_desc()
128 const int w=desc.get_w(),h=desc.get_h(); in end_frame()
151 if(surface.get_h()>y+1) in end_frame()
181 for(y=0;y<sm_surface.get_h();y++) in end_frame()
193 if(sm_surface.get_h()>y+1) in end_frame()
207 for(y=0;y<sm_surface.get_h();y++) in end_frame()
219 if(sm_surface.get_h()>y+1) in end_frame()
/dports/graphics/synfigstudio/synfig-1.2.2/synfig-core/src/modules/mod_yuv420p/
H A Dtrgt_yuv.cpp84 desc.get_w(), desc.get_h(), in init()
96 given_desc->set_h(given_desc->get_h()*2/2); in set_rend_desc()
101 surface.set_wh(desc.get_w(),desc.get_h()); in set_rend_desc()
128 const int w=desc.get_w(),h=desc.get_h(); in end_frame()
151 if(surface.get_h()>y+1) in end_frame()
181 for(y=0;y<sm_surface.get_h();y++) in end_frame()
193 if(sm_surface.get_h()>y+1) in end_frame()
207 for(y=0;y<sm_surface.get_h();y++) in end_frame()
219 if(sm_surface.get_h()>y+1) in end_frame()
/dports/devel/etl/synfig-1.2.2/synfig-core/src/synfig/
H A Dtarget_tile.cpp104 int th(rend_desc().get_h()/tile_h_); in next_tile()
108 if(rend_desc().get_h()%tile_h_!=0)th++; in next_tile()
126 surfacesw->set_size(renddesc.get_w(), renddesc.get_h()); in call_renderer()
201 etl::set_intersect(rect, rect, RectInt(0, 0, rend_desc.get_w(), rend_desc.get_h())); in render_frame_()
221 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
225 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
232 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
260 if (rect.minx >= rend_desc.get_w() || rect.miny >= rend_desc.get_h()) in render_frame_()
328 for(int i=0; i<surface.get_w()*surface.get_h(); ++i) in async_render_tile()
332 for(int i=0; i<surface.get_w()*surface.get_h(); ++i) in async_render_tile()
[all …]
H A Dtarget_scanline.cpp86 surfacesw->set_size(renddesc.get_w(), renddesc.get_h()); in call_renderer()
176 if(desc.get_w()*desc.get_h() > PIXEL_RENDERING_LIMIT) in render()
183 int rows = desc.get_h()/rowheight; in render()
184 int lastrowheight = desc.get_h() - rows*rowheight; in render()
225 for(y = 0; y < blockrd.get_h(); y++, pen.inc_y()) in render()
306 if(desc.get_w()*desc.get_h() > PIXEL_RENDERING_LIMIT) in render()
311 int totalheight = desc.get_h(); in render()
314 int rows = desc.get_h()/rowheight; in render()
315 int lastrowheight = desc.get_h() - rows*rowheight; in render()
358 for(y = 0; y < blockrd.get_h(); y++, pen.inc_y()) in render()
[all …]
/dports/graphics/synfig/synfig-1.2.2/synfig-core/src/synfig/
H A Dtarget_tile.cpp104 int th(rend_desc().get_h()/tile_h_); in next_tile()
108 if(rend_desc().get_h()%tile_h_!=0)th++; in next_tile()
126 surfacesw->set_size(renddesc.get_w(), renddesc.get_h()); in call_renderer()
201 etl::set_intersect(rect, rect, RectInt(0, 0, rend_desc.get_w(), rend_desc.get_h())); in render_frame_()
221 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
225 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
232 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
260 if (rect.minx >= rend_desc.get_w() || rect.miny >= rend_desc.get_h()) in render_frame_()
328 for(int i=0; i<surface.get_w()*surface.get_h(); ++i) in async_render_tile()
332 for(int i=0; i<surface.get_w()*surface.get_h(); ++i) in async_render_tile()
[all …]
H A Dtarget_scanline.cpp86 surfacesw->set_size(renddesc.get_w(), renddesc.get_h()); in call_renderer()
176 if(desc.get_w()*desc.get_h() > PIXEL_RENDERING_LIMIT) in render()
183 int rows = desc.get_h()/rowheight; in render()
184 int lastrowheight = desc.get_h() - rows*rowheight; in render()
225 for(y = 0; y < blockrd.get_h(); y++, pen.inc_y()) in render()
306 if(desc.get_w()*desc.get_h() > PIXEL_RENDERING_LIMIT) in render()
311 int totalheight = desc.get_h(); in render()
314 int rows = desc.get_h()/rowheight; in render()
315 int lastrowheight = desc.get_h() - rows*rowheight; in render()
358 for(y = 0; y < blockrd.get_h(); y++, pen.inc_y()) in render()
[all …]
/dports/graphics/synfigstudio/synfig-1.2.2/synfig-core/src/synfig/
H A Dtarget_tile.cpp104 int th(rend_desc().get_h()/tile_h_); in next_tile()
108 if(rend_desc().get_h()%tile_h_!=0)th++; in next_tile()
126 surfacesw->set_size(renddesc.get_w(), renddesc.get_h()); in call_renderer()
201 etl::set_intersect(rect, rect, RectInt(0, 0, rend_desc.get_w(), rend_desc.get_h())); in render_frame_()
221 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
225 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
232 for(int i=0;i<surface.get_w()*surface.get_h();i++) in render_frame_()
260 if (rect.minx >= rend_desc.get_w() || rect.miny >= rend_desc.get_h()) in render_frame_()
328 for(int i=0; i<surface.get_w()*surface.get_h(); ++i) in async_render_tile()
332 for(int i=0; i<surface.get_w()*surface.get_h(); ++i) in async_render_tile()
[all …]
/dports/games/widelands/widelands-build21/src/editor/ui_menus/
H A Dtool_change_resources_options_menu.cc86 box_.set_size(get_inner_w() - 2 * hmargin(), change_by_.get_h() + set_to_.get_h() + vspacing()); in EditorToolChangeResourcesOptionsMenu()
102 box_.set_size(box_.get_w(), box_.get_h() + 4 * vspacing() + resources_box_.get_h()); in EditorToolChangeResourcesOptionsMenu()
113 box_.set_size(box_.get_w(), box_.get_h() + vspacing() + cur_selection_.get_h()); in EditorToolChangeResourcesOptionsMenu()
114 set_inner_size(get_inner_w(), box_.get_h() + 1 * vmargin()); in EditorToolChangeResourcesOptionsMenu()

12345678910>>...22