/dports/x11-wm/metacity/metacity-3.42.0/src/ui/ |
H A D | draw-workspace.c | 78 int icon_x, icon_y, icon_w, icon_h; in draw_window() local 105 icon_w = icon_h = 0; in draw_window() 110 icon_h = gdk_pixbuf_get_height (icon); in draw_window() 117 icon_h > (winrect->height - 2)) in draw_window() 123 icon_h = gdk_pixbuf_get_height (icon); in draw_window() 127 icon_h > (winrect->height - 2)) in draw_window() 136 icon_y = winrect->y + (winrect->height - icon_h) / 2; in draw_window() 140 cairo_rectangle (cr, icon_x, icon_y, icon_w, icon_h); in draw_window()
|
/dports/graphics/blender/blender-2.91.0/source/blender/datatoc/ |
H A D | datatoc_icon.py | 50 icon_w, icon_h = struct.unpack('<2I', temp_data) 58 return (icon_w, icon_h, 66 (icon_w, icon_h, 73 pixels = f_src.read(icon_w * icon_h * 4) 92 (icon_w, icon_h, 100 for y in range(icon_h): 130 (icon_w, icon_h,
|
H A D | datatoc_icon_split.py | 197 icon_h = pixels_h_clip // parts_y 199 icon_h_clip = icon_h 205 icon_h = (pixels_h_clip - ((parts_y - 1) * spacey_icon)) // parts_y 207 icon_h_clip = icon_h - (miny_icon + maxy_icon) 209 print(pixel_w, pixel_h, icon_w, icon_h) 228 sub_y = y * icon_h 231 sub_y = miny + ((y * (icon_h + spacey_icon)) + miny_icon)
|
H A D | datatoc_icon.c | 181 unsigned int icon_w, icon_h; member 191 endian_switch_uint32(&r_head->icon_h); in icon_decode_head() 216 pixels_size = sizeof(char[4]) * r_head->icon_w * r_head->icon_h; in icon_decode() 283 for (y = 0; y < head.icon_h; y++) { in icon_merge()
|
/dports/x11-wm/marco/marco-1.26.0/src/ui/ |
H A D | draw-workspace.c | 95 int icon_x, icon_y, icon_w, icon_h, scale; in draw_window() local 124 icon_w = icon_h = 0; in draw_window() 129 icon_h = cairo_image_surface_get_height (icon) / scale; in draw_window() 132 if (icon_w > (winrect->width - 2) || icon_h > (winrect->height - 2)) in draw_window() 139 icon_h = cairo_image_surface_get_height (icon) / scale; in draw_window() 142 if (icon_w > (winrect->width - 2) || icon_h > (winrect->height - 2)) in draw_window() 154 icon_y = winrect->y + (winrect->height - icon_h) / 2; in draw_window() 158 cairo_rectangle (cr, icon_x, icon_y, icon_w, icon_h); in draw_window()
|
/dports/x11/tint/tint2-78313502d3b26c217f5583a23ef571bc9e0edc45/src/execplugin/ |
H A D | execplugin.c | 324 *icon_h = imlib_image_get_height(); in execp_compute_icon_text_geometry() 326 *icon_w = *icon_h = 0; in execp_compute_icon_text_geometry() 329 *icon_w = *icon_h = 0; in execp_compute_icon_text_geometry() 392 int icon_w, icon_h; in execp_compute_desired_size() local 402 &icon_h, in execp_compute_desired_size() 416 int icon_w, icon_h; in resize_execp() local 426 &icon_h, in resize_execp() 1004 int icon_h, icon_w; in execp_update_post_read() local 1009 icon_h = imlib_image_get_height(); in execp_update_post_read() 1011 icon_w = icon_h = 0; in execp_update_post_read() [all …]
|
/dports/x11/tint/tint2-78313502d3b26c217f5583a23ef571bc9e0edc45/src/button/ |
H A D | button.c | 276 int icon_w, icon_h; in button_compute_desired_size() local 284 icon_h = MIN(icon_h, button->backend->max_icon_size * panel->scale); in button_compute_desired_size() 287 icon_h = icon_w = 0; in button_compute_desired_size() 331 … new_size = MAX(new_size, icon_h + 2 * vert_padding + top_bottom_border_width(&button->area)); in button_compute_desired_size() 345 int icon_w, icon_h; in resize_button() local 353 icon_h = MIN(icon_h, button->backend->max_icon_size * panel->scale); in resize_button() 356 icon_h = icon_w = 0; in resize_button() 360 button->frontend->iconh = icon_h; in resize_button() 403 … new_size = MAX(new_size, icon_h + 2 * vert_padding + top_bottom_border_width(&button->area)); in resize_button() 413 button->frontend->icony = (button->area.height - icon_h) / 2; in resize_button() [all …]
|
/dports/graphics/art/ART-1.9.3/rtgui/ |
H A D | controllines.cc | 167 line.icon = line.icon_h; in pick1() 251 control_line.icon_h->position.x = (control_line.begin->center.x + in drag1() 253 control_line.icon_h->position.y = (control_line.begin->center.y + in drag1() 255 control_line.icon_v->position.x = control_line.icon_h->position.x; in drag1() 256 control_line.icon_v->position.y = control_line.icon_h->position.y; in drag1() 345 std::shared_ptr<OPIcon> icon_h, icon_v; in addLine() local 357 icon_h = std::make_shared<OPIcon>(line_icon_h, null_surface, in addLine() 361 icon_h->position = Coord((begin.x + end.x) / 2, (begin.y + end.y) / 2); in addLine() 384 control_line->icon_h = icon_h; in addLine() 388 control_line->icon = icon_h; in addLine() [all …]
|
/dports/x11/cinnamon/cinnamon-4.8.6/src/st/ |
H A D | st-entry.c | 345 gfloat icon_h; in st_entry_get_preferred_height() local 358 if (min_height_p && icon_h > *min_height_p) in st_entry_get_preferred_height() 359 *min_height_p = icon_h; in st_entry_get_preferred_height() 361 if (natural_height_p && icon_h > *natural_height_p) in st_entry_get_preferred_height() 362 *natural_height_p = icon_h; in st_entry_get_preferred_height() 370 if (min_height_p && icon_h > *min_height_p) in st_entry_get_preferred_height() 371 *min_height_p = icon_h; in st_entry_get_preferred_height() 374 *natural_height_p = icon_h; in st_entry_get_preferred_height() 388 gfloat icon_w, icon_h; in st_entry_allocate() local 411 icon_box.y2 = icon_box.y1 + icon_h; in st_entry_allocate() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/nuvie/gui/widgets/ |
H A D | command_bar_new_ui.cpp | 69 icon_h = 3; in CommandBarNewUI() 110 uint8 command_height = btn_size * icon_h + text_height; in CommandBarNewUI() 186 cur_pos = icon_w * icon_h - (icon_w - cur_pos % icon_w); in KeyDown() 193 cur_pos = (cur_pos + icon_w) % (icon_w * icon_h); in KeyDown() 247 for (uint8 y = 0; y < icon_h; y++) { in Display() 259 …font->drawString(scr, get_command_name(cur_pos), area.left, area.top + icon_y_offset + icon_h * bt… in Display()
|
/dports/x11/gnome-shell/gnome-shell-41.1/src/st/ |
H A D | st-entry.c | 355 gfloat hint_h, icon_h; in st_entry_get_preferred_height() local 379 if (min_height_p && icon_h > *min_height_p) in st_entry_get_preferred_height() 380 *min_height_p = icon_h; in st_entry_get_preferred_height() 382 if (natural_height_p && icon_h > *natural_height_p) in st_entry_get_preferred_height() 383 *natural_height_p = icon_h; in st_entry_get_preferred_height() 391 if (min_height_p && icon_h > *min_height_p) in st_entry_get_preferred_height() 392 *min_height_p = icon_h; in st_entry_get_preferred_height() 395 *natural_height_p = icon_h; in st_entry_get_preferred_height() 408 gfloat icon_w, icon_h; in st_entry_allocate() local 445 icon_box.y2 = icon_box.y1 + icon_h; in st_entry_allocate() [all …]
|
/dports/x11/xpra/xpra-4.3/xpra/client/gl/ |
H A D | window_backend.py | 138 icon_w, icon_h = img.size 155 icon_h = 32 157 icon_data = bytes([0])*icon_stride*icon_h 166 my = h//2-icon_h//2 169 …window.draw_region(x, y, icon_w, icon_h, icon_format, icon_data, icon_stride, v, options, [paint_c…
|
/dports/x11-wm/afterstep/AfterStep-1.0/modules/Pager/ |
H A D | x_pager.c | 33 extern int icon_w, icon_h, icon_x, icon_y; 253 if(icon_h < 1) in initialize_pager() 257 icon_h = (icon_h / (m+1)) *(m+1)+m; in initialize_pager() 259 icon_w,icon_h, in initialize_pager() 798 y2 = icon_h; in DrawIconGrid() 811 y1 = y*(icon_h)/MaxH; in DrawIconGrid() 820 h = (icon_h - m)/(m+1); in DrawIconGrid() 870 (icon_h*Scr.MyDisplayHeight)); in IconSwitchPage() 1182 if(y > icon_h) in IconScroll() 1183 y = icon_h; in IconScroll() [all …]
|
/dports/audio/gnome-music/gnome-music-41.0/gnomemusic/ |
H A D | defaulticon.py | 55 icon_h = icon_surface.get_height() 56 ratio = icon_h / icon_w 86 ctx.scale((w * scale) / icon_w, (h * scale) / icon_h)
|
/dports/games/gbrainy/gbrainy-2.4.3/src/Clients/Classical/Widgets/ |
H A D | GameDrawingArea.cs | 185 double width_str, height_str, x_text, icon_x, icon_w, icon_h, box_height_scaled; in DrawSolution() 191 icon_h = icon_size * (cr.Matrix.Yy > cr.Matrix.Xx ? cr.Matrix.Xx / cr.Matrix.Yy : 1); in DrawSolution() 229 (1 - box_height_scaled - text_margin) + ((box_height_scaled - icon_h) / 2), in DrawSolution() 230 icon_w, icon_h); in DrawSolution()
|
/dports/net-mgmt/phpweathermap/weathermap/ |
H A D | WeatherMapNode.class.php | 143 $icon_h = 0; 280 $icon_h = 0; 459 $icon_h = imagesy($icon_im); 466 if($icon_w > $icon_h) 472 $scalefactor = $icon_h/$this->iconscaleh; 475 $new_height = $icon_h / $scalefactor; 478 imagecopyresampled($scaled, $icon_im, 0, 0, 0, 0, $new_width, $new_height, $icon_w, $icon_h); 498 $icon_h = imagesy($icon_im); 501 $icon_y1 = $this->y - $icon_h / 2; 503 $icon_y2 = $this->y + $icon_h / 2; [all …]
|
/dports/x11-wm/afterstep-stable/afterstep-devel-2.2.12/src/Script/Widgets/ |
H A D | ItemDraw.c | 58 if (xobj->height < xobj->icon_h) in InitItemDraw() 59 xobj->height = xobj->icon_h; in InitItemDraw() 72 xobj->height = xobj->icon_h + 2 * (asc + desc + 15); in InitItemDraw()
|
/dports/games/lgeneral/lgeneral-1.3.2/src/ |
H A D | unit_lib.c | 452 unit->icon_h = height; in unit_lib_load() 458 set_pixel( unit->icon, 0, unit->icon_h - 1, color_key ); in unit_lib_load() 466 unit->icon_h = height; in unit_lib_load() 468 unit->icon = create_surf( unit->icon_w * 2, unit->icon_h, SDL_SWSURFACE ); in unit_lib_load() 469 DEST( unit->icon, 0, 0, unit->icon_w, unit->icon_h ); in unit_lib_load() 474 set_pixel( unit->icon, 0, unit->icon_h - 1, color_key ); in unit_lib_load() 483 for ( j = 0; j < unit->icon_h; j++ ) { in unit_lib_load() 503 …unit->icon_tiny_w = unit->icon_w * ( 1.0 / scale ); unit->icon_tiny_h = unit->icon_h * ( 1.0 / sca… in unit_lib_load()
|
/dports/x11/alttab/alttab-1.6.0/src/ |
H A D | win.c | 264 wi->icon_h = best_h; in addIconFromProperty() 339 wi->icon_w, wi->icon_h)) in addIconFromFiles() 417 g.winlist[g.maxNdx].icon_w = g.winlist[g.maxNdx].icon_h = 0; in addWindowInfo() 441 &(g.winlist[g.maxNdx].icon_h), in addWindowInfo() 457 g.winlist[g.maxNdx].icon_h, XDEPTH); in addWindowInfo() 464 g.winlist[g.maxNdx].icon_h, 0, 0, 1)) in addWindowInfo() 475 g.winlist[g.maxNdx].icon_h = 0; in addWindowInfo()
|
/dports/x11/xpra/xpra-4.3/xpra/server/window/ |
H A D | windowicon_source.py | 217 icon_w, icon_h = self.window_icon_size 218 if float(w)/icon_w>=float(h)/icon_h: 222 rw = min(max_w, w*icon_h//h) 223 rh = icon_h
|
/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/ |
H A D | icons.c | 481 int icon_w, icon_h; in BKE_previewimg_ensure() local 498 icon_h = (thumb->y * icon_w) / thumb->x + 1; in BKE_previewimg_ensure() 501 icon_h = ICON_RENDER_DEFAULT_HEIGHT; in BKE_previewimg_ensure() 502 icon_w = (thumb->x * icon_h) / thumb->y + 1; in BKE_previewimg_ensure() 505 icon_w = icon_h = ICON_RENDER_DEFAULT_HEIGHT; in BKE_previewimg_ensure() 508 IMB_scaleImBuf(thumb, icon_w, icon_h); in BKE_previewimg_ensure() 510 prv->h[ICON_SIZE_ICON] = icon_h; in BKE_previewimg_ensure()
|
/dports/x11-wm/enlightenment/enlightenment-0.24.2/src/bin/ |
H A D | e_widget_toolbook.c | 15 e_widget_toolbook_add(Evas *evas, int icon_w, int icon_h) in e_widget_toolbook_add() argument 32 o = e_widget_toolbar_add(evas, icon_w, icon_h); in e_widget_toolbook_add()
|
/dports/chinese/eterm/Eterm-0.9.6/src/ |
H A D | buttons.c | 574 button->icon_h = imlib_image_get_height(); in button_calc_size() 575 D_BBAR((" -> Initial icon dimensions are %hux%hu\n", button->icon_w, button->icon_h)); in button_calc_size() 576 if (button->icon_h > b) { in button_calc_size() 577 button->icon_w = (unsigned short) ((float) button->icon_w / button->icon_h * b); in button_calc_size() 578 button->icon_h = b; in button_calc_size() 584 D_BBAR((" -> Final icon dimensions are %hux%hu\n", button->icon_w, button->icon_h)); in button_calc_size() 588 button->icon_h)); in button_calc_size() 613 if (button->icon_h == button->h) { in button_calc_rel_coords() 616 button->icon_y = button->y + ((b - button->icon_h) / 2) + ((bord) ? (bord->top) : 0); in button_calc_rel_coords() 1109 button->icon_h); in bbar_draw() [all …]
|
/dports/x11/eterm/Eterm-0.9.6/src/ |
H A D | buttons.c | 574 button->icon_h = imlib_image_get_height(); in button_calc_size() 575 D_BBAR((" -> Initial icon dimensions are %hux%hu\n", button->icon_w, button->icon_h)); in button_calc_size() 576 if (button->icon_h > b) { in button_calc_size() 577 button->icon_w = (unsigned short) ((float) button->icon_w / button->icon_h * b); in button_calc_size() 578 button->icon_h = b; in button_calc_size() 584 D_BBAR((" -> Final icon dimensions are %hux%hu\n", button->icon_w, button->icon_h)); in button_calc_size() 588 button->icon_h)); in button_calc_size() 613 if (button->icon_h == button->h) { in button_calc_rel_coords() 616 button->icon_y = button->y + ((b - button->icon_h) / 2) + ((bord) ? (bord->top) : 0); in button_calc_rel_coords() 1109 button->icon_h); in bbar_draw() [all …]
|
/dports/japanese/eterm/Eterm-0.9.6/src/ |
H A D | buttons.c | 574 button->icon_h = imlib_image_get_height(); in button_calc_size() 575 D_BBAR((" -> Initial icon dimensions are %hux%hu\n", button->icon_w, button->icon_h)); in button_calc_size() 576 if (button->icon_h > b) { in button_calc_size() 577 button->icon_w = (unsigned short) ((float) button->icon_w / button->icon_h * b); in button_calc_size() 578 button->icon_h = b; in button_calc_size() 584 D_BBAR((" -> Final icon dimensions are %hux%hu\n", button->icon_w, button->icon_h)); in button_calc_size() 588 button->icon_h)); in button_calc_size() 613 if (button->icon_h == button->h) { in button_calc_rel_coords() 616 button->icon_y = button->y + ((b - button->icon_h) / 2) + ((bord) ? (bord->top) : 0); in button_calc_rel_coords() 1109 button->icon_h); in bbar_draw() [all …]
|