/dports/misc/gnome-devel-docs/gnome-devel-docs-40.3/platform-demos/C/samples/ |
H A D | scale.py | 20 self.h_scale = Gtk.Scale( 23 self.h_scale.set_digits(0) 26 self.h_scale.set_hexpand(True) 29 self.h_scale.set_valign(Gtk.Align.START) 33 self.h_scale.connect("value-changed", self.scale_moved) 53 grid.attach(self.h_scale, 0, 0, 1, 1) 55 self.v_scale, self.h_scale, Gtk.PositionType.RIGHT, 1, 1) 63 self.label.set_text("Horizontal scale is " + str(int(self.h_scale.get_value())) +
|
H A D | scale.vala | 3 Gtk.Scale h_scale; 14 h_scale = new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL, 0.0, 100.0, 5.0); 15 h_scale.set_digits (0); //number of decimal places displayed 16 h_scale.set_valign (Gtk.Align.START); //horizontal alignment 27 grid.attach (h_scale, 0, 0, 1, 1); 28 grid.attach_next_to (v_scale, h_scale, Gtk.PositionType.RIGHT, 1, 1); 31 h_scale.value_changed.connect (scale_moved); 45 …label.set_text ("Horizontal scale is %.1f; vertical scale is %.1f.".printf (h_scale.get_value (), …
|
H A D | scale.c | 58 GtkWidget *h_scale; in activate() local 94 h_scale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, hadjustment); in activate() 95 gtk_scale_set_digits (GTK_SCALE (h_scale), 0); in activate() 100 gtk_widget_set_hexpand (h_scale, TRUE); in activate() 101 gtk_widget_set_valign (h_scale, GTK_ALIGN_START); in activate() 107 g_signal_connect (h_scale, in activate() 132 gtk_grid_attach (GTK_GRID (grid), h_scale, 0, 0, 1, 1); in activate()
|
/dports/graphics/gimageview/gimageview-0.2.27/plugins/image_loader/ |
H A D | svg.c | 91 gfloat w_scale, h_scale; in svg_load_image() local 109 if (!gimv_image_loader_get_scale (loader, &w_scale, &h_scale)) { in svg_load_image() 111 h_scale = 1.0; in svg_load_image() 119 h_scale, in svg_load_image() 129 pixbuf = rsvg_render_file (file, MIN (w_scale, h_scale)); in svg_load_image()
|
/dports/x11/rxvt-unicode/rxvt-unicode-9.30/src/perl/ |
H A D | background | 1391 $bg_opts->{h_scale} = $bg_opts->{v_scale} = 100; 1403 $bg_opts->{h_scale} = $bg_opts->{v_scale} = 0; 1409 $bg_opts->{h_scale} = $bg_opts->{v_scale} = 100; 1415 $bg_opts->{h_scale} = $bg_opts->{v_scale} = 100; 1421 $bg_opts->{h_scale} = $bg_opts->{v_scale} = 0; 1427 $bg_opts->{h_scale} = $bg_opts->{v_scale} = 0; 1444 $bg_opts->{h_scale} = $w if defined $w; 1504 my $h_scale = $bg_opts->{h_scale} * 0.01; 1521 if ($h_scale != 0 and $v_scale != 0) { 1555 $self->{bg_opts} = { h_scale => 100, v_scale => 100, [all …]
|
/dports/games/flightgear/flightgear-2020.3.11/src/Cockpit/ |
H A D | panel_io.cxx | 169 readAction (const SGPropertyNode * node, float w_scale, float h_scale) in readAction() argument 188 int y = int(node->getIntValue("y") * h_scale); in readAction() 190 int h = int(node->getIntValue("h") * h_scale); in readAction() 307 t->offset *= h_scale; in readTransformation() 308 t->factor *= h_scale; //Added in readTransformation() 419 readLayer (const SGPropertyNode * node, float w_scale, float h_scale) in readLayer() argument 430 h = int(h * h_scale); in readLayer() 591 float h_scale = 1.0; in readInstrument() local 597 h_scale = float(real_h) / float(h); in readInstrument() 615 FGPanelAction * action = readAction(node, w_scale, h_scale); in readInstrument() [all …]
|
/dports/games/flightgear/flightgear-2020.3.11/utils/fgpanel/ |
H A D | panel_io.cxx | 156 readTransformation (const SGPropertyNode *node, const float w_scale, const float h_scale) { in readTransformation() argument 221 t->offset *= h_scale; in readTransformation() 222 t->factor *= h_scale; //Added in readTransformation() 325 readLayer (const SGPropertyNode *node, const float w_scale, const float h_scale) { in readLayer() argument 336 h = int (h * h_scale); in readLayer() 359 ((FGGroupLayer *) layer)->addLayer (readLayer (child, w_scale, h_scale)); in readLayer() 403 ((FGGroupLayer *) layer)->addLayer (readLayer (child, w_scale, h_scale)); in readLayer() 422 FGPanelTransformation * const t (readTransformation (node, w_scale, h_scale)); in readLayer() 466 float h_scale (1.0); in readInstrument() local 472 h_scale = float (real_h) / float (h); in readInstrument() [all …]
|
/dports/graphics/p5-Image-Math-Constrain/Image-Math-Constrain-1.02/lib/Image/Math/ |
H A D | Constrain.pm | 249 my $h_scale = ($self->{height} and $self->{height} < $height) 253 if ( $w_scale == 1 and $h_scale == 1 ) { 258 my $scale = $w_scale < $h_scale ? $w_scale : $h_scale;
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Missions.ocf/Raid.ocs/System.ocg/ |
H A D | DlgWoody.c | 83 var h_scale = 2000; in Dlg_Woody_Init() local 84 axe.ExtraTransform = Trans_Scale(h_scale,h_scale,h_scale); in Dlg_Woody_Init()
|
H A D | DlgRocky.c | 67 var h_scale = 2000; in Dlg_Rocky_Init() local 68 pickaxe.ExtraTransform = Trans_Scale(h_scale,h_scale,h_scale); in Dlg_Rocky_Init()
|
H A D | DlgNewton.c | 261 var h_scale = 2000; in Dlg_Newton_Init() local 262 hammer.ExtraTransform = Trans_Scale(h_scale,h_scale,h_scale); in Dlg_Newton_Init()
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/topi/image/ |
H A D | resize.py | 147 h_scale = in_h.astype("float") / (target_height - 1) 150 in_y = y1 * (image_height - 1) + h_scale * y 165 in_y = h_scale * y 296 h_scale = in_h.astype("float") / (target_height - 1) 299 in_y = y1 * (image_height - 1) + h_scale * y 316 in_y = h_scale * (y + 0.5) - 0.5 319 in_y = h_scale * y 498 h_scale = in_h.astype("float") / (target_height - 1) 501 in_y = y1 * (image_height - 1) + h_scale * y 518 in_y = h_scale * (y + 0.5) - 0.5 [all …]
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/graphics/ |
H A D | line_draw_list.cpp | 59 float h_scale = 1.0f; in add_vertex() local 61 …bool do_resize = gr_resize_screen_posf(&vtx.position.x, &vtx.position.y, &w_scale, &h_scale, resiz… in add_vertex() 68 vtx.position.y += i2fl(offset_y) * h_scale; in add_vertex()
|
/dports/multimedia/aegisub/aegisub-3.2.2/src/ |
H A D | audio_colorscheme.cpp | 53 double h_scale = OPT_GET(opt_base + "Hue Scale")->GetDouble(); in AudioColorScheme() local 63 mid<int>(0, h_base + t * h_scale, 255), in AudioColorScheme()
|
/dports/graphics/pinpoint/pinpoint-0.1.4/ |
H A D | pinpoint.c | 308 float h_scale = stage_height / bg_height; in pp_get_background_position_scale() local 313 *bg_scale_x = *bg_scale_y = (w_scale > h_scale) ? w_scale : h_scale; in pp_get_background_position_scale() 316 *bg_scale_x = *bg_scale_y = (w_scale < h_scale) ? w_scale : h_scale; in pp_get_background_position_scale() 319 *bg_scale_x = *bg_scale_y = (w_scale < h_scale) ? w_scale : h_scale; in pp_get_background_position_scale() 325 *bg_scale_y = h_scale; in pp_get_background_position_scale()
|
/dports/graphics/epix/epix-1.2.19/ |
H A D | affine.h | 78 affine& h_scale(double, const pair& ctr=pair(0,0)); 82 affine& h_scale(double, const P& ctr);
|
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/tools/ |
H A D | halide_trace_config.h | 106 float h_scale = 1.0f; member 109 …Label(const std::string &text, const Point &pos = {0, 0}, int fade_in_frames = 0, float h_scale = … 110 : text(text), pos(pos), fade_in_frames(fade_in_frames), h_scale(h_scale) { in text() 114 …cape_spaces(label.text) << " " << label.pos << " " << label.fade_in_frames << " " << label.h_scale; 119 is >> label.text >> label.pos >> label.fade_in_frames >> label.h_scale;
|
/dports/sysutils/gkrellm2/gkrellm-2.3.11/src/ |
H A D | pixops.c | 197 double v_scale, h_scale; in gkrellm_scale_piximage_to_pixbuf() local 252 h_scale = (double) dst_width / (double) src_width; in gkrellm_scale_piximage_to_pixbuf() 253 if (v_scale > 1.0 && h_scale > 1.0) in gkrellm_scale_piximage_to_pixbuf() 311 (double) (b.left * -h_scale + b.left), 0, in gkrellm_scale_piximage_to_pixbuf() 312 h_scale, 1.0, interp_type); in gkrellm_scale_piximage_to_pixbuf() 317 (double) (b.left * -h_scale + b.left), (double) (h_dst - h_src), in gkrellm_scale_piximage_to_pixbuf() 318 h_scale, 1.0, interp_type); in gkrellm_scale_piximage_to_pixbuf() 323 (double) (b.left * -h_scale + b.left), in gkrellm_scale_piximage_to_pixbuf() 325 h_scale, v_scale, interp_type); in gkrellm_scale_piximage_to_pixbuf()
|
/dports/misc/py-gluoncv/gluon-cv-0.9.0/gluoncv/model_zoo/center_net/ |
H A D | target_generator.py | 32 h_scale = 1.0 # already scaled in affinetransform 47 [(bbox[0] + bbox[2]) / 2 * w_scale, (bbox[1] + bbox[3]) / 2 * h_scale], 57 wh_target[1, center_y, center_x] = box_h * h_scale
|
/dports/misc/visp/visp-3.4.0/modules/core/include/visp3/core/ |
H A D | vpImageTools.h | 105 unsigned int h_scale = 1); 309 int j_min = (std::max)((int)(ceil(roi_left / h_scale)), 0); in crop() 311 …t j_max = (std::min)((int)(ceil((roi_left + roi_width) / h_scale)), (int)(I.getWidth() / h_scale)); in crop() 321 if (v_scale == 1 && h_scale == 1) { in crop() 327 } else if (h_scale == 1) { in crop() 384 unsigned int h_scale) in crop() argument 387 v_scale, h_scale); in crop() 412 int j_min = (std::max)((int)(ceil(roi.getLeft() / h_scale)), 0); in crop() 414 …_max = (std::min)((int)(ceil((roi.getLeft() + roi.getWidth()) / h_scale)), (int)(width / h_scale)); in crop() 424 if (v_scale == 1 && h_scale == 1) { in crop() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/i2c/ |
H A D | saa717x.c | 987 int prescale, h_scale, v_scale; in saa717x_set_fmt() local 1011 h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; in saa717x_set_fmt() 1021 saa717x_write(sd, 0x6C, (u8)(h_scale & 0xFF)); in saa717x_set_fmt() 1022 saa717x_write(sd, 0x6D, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt() 1024 saa717x_write(sd, 0xAC, (u8)(h_scale & 0xFF)); in saa717x_set_fmt() 1025 saa717x_write(sd, 0xAD, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/i2c/ |
H A D | saa717x.c | 987 int prescale, h_scale, v_scale; in saa717x_set_fmt() local 1011 h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; in saa717x_set_fmt() 1021 saa717x_write(sd, 0x6C, (u8)(h_scale & 0xFF)); in saa717x_set_fmt() 1022 saa717x_write(sd, 0x6D, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt() 1024 saa717x_write(sd, 0xAC, (u8)(h_scale & 0xFF)); in saa717x_set_fmt() 1025 saa717x_write(sd, 0xAD, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt()
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/i2c/ |
H A D | saa717x.c | 987 int prescale, h_scale, v_scale; in saa717x_set_fmt() local 1011 h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; in saa717x_set_fmt() 1021 saa717x_write(sd, 0x6C, (u8)(h_scale & 0xFF)); in saa717x_set_fmt() 1022 saa717x_write(sd, 0x6D, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt() 1024 saa717x_write(sd, 0xAC, (u8)(h_scale & 0xFF)); in saa717x_set_fmt() 1025 saa717x_write(sd, 0xAD, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt()
|
/dports/x11-wm/fvwm3/fvwm3-1.0.4/libs/ |
H A D | PictureImageLoader.c | 164 double h_scale = 1; in PImageLoadSvg() local 219 h_scale *= buf; in PImageLoadSvg() 224 h_scale *= buf; in PImageLoadSvg() 239 h_scale /= buf; in PImageLoadSvg() 244 h_scale /= buf; in PImageLoadSvg() 303 h_scale *= h; in PImageLoadSvg() 356 Fcairo_scale(cr, w_scale, h_scale); in PImageLoadSvg()
|
/dports/x11-wm/fvwm2/fvwm-2.6.9/libs/ |
H A D | PictureImageLoader.c | 164 double h_scale = 1; in PImageLoadSvg() local 218 h_scale *= buf; in PImageLoadSvg() 223 h_scale *= buf; in PImageLoadSvg() 238 h_scale /= buf; in PImageLoadSvg() 243 h_scale /= buf; in PImageLoadSvg() 302 h_scale *= h; in PImageLoadSvg() 356 Fcairo_scale(cr, w_scale, h_scale); in PImageLoadSvg()
|