Home
last modified time | relevance | path

Searched refs:size_hints (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/test/linux/
Dglx_renderer.cc128 XSizeHints* size_hints = XAllocSizeHints(); in Resize() local
129 if (size_hints == NULL) { in Resize()
132 size_hints->flags = PAspect; in Resize()
133 size_hints->min_aspect.x = size_hints->max_aspect.x = width_; in Resize()
134 size_hints->min_aspect.y = size_hints->max_aspect.y = height_; in Resize()
135 XSetWMNormalHints(display_, window_, size_hints); in Resize()
136 XFree(size_hints); in Resize()
/external/libpng/contrib/gregbook/
Drpng-x.c450 XSizeHints *size_hints; in rpng_x_create_window() local
577 if ((size_hints = XAllocSizeHints()) != NULL) { in rpng_x_create_window()
579 size_hints->flags = PMinSize | PMaxSize; in rpng_x_create_window()
580 size_hints->min_width = size_hints->max_width = (int)image_width; in rpng_x_create_window()
581 size_hints->min_height = size_hints->max_height = (int)image_height; in rpng_x_create_window()
597 size_hints, wm_hints, class_hints); in rpng_x_create_window()
604 if (size_hints) in rpng_x_create_window()
605 XFree(size_hints); in rpng_x_create_window()
Drpng2-x.c851 XSizeHints *size_hints; in rpng2_x_create_window() local
961 if ((size_hints = XAllocSizeHints()) != NULL) { in rpng2_x_create_window()
963 size_hints->flags = PMinSize | PMaxSize; in rpng2_x_create_window()
964 size_hints->min_width = size_hints->max_width = (int)rpng2_info.width; in rpng2_x_create_window()
965 size_hints->min_height = size_hints->max_height = in rpng2_x_create_window()
982 size_hints, wm_hints, class_hints); in rpng2_x_create_window()
989 if (size_hints) in rpng2_x_create_window()
990 XFree(size_hints); in rpng2_x_create_window()
/external/rust/crates/tokio-stream/tests/
Dstream_stream_map.rs263 let mut size_hints = map.values().map(|s| s.size_hint().0).collect::<Vec<_>>(); in iter_values() localVariable
265 size_hints.sort_unstable(); in iter_values()
267 assert_eq!(&size_hints[..], &[1, 2, 3]); in iter_values()
278 let mut size_hints = map in iter_values_mut() localVariable
283 size_hints.sort_unstable(); in iter_values_mut()
285 assert_eq!(&size_hints[..], &[1, 2, 3]); in iter_values_mut()
/external/crosvm/gpu_display/src/
Dgpu_display_x.rs654 let size_hints = xlib::XAllocSizeHints(); in create_surface() localVariable
655 (*size_hints).flags = (xlib::PMinSize | xlib::PMaxSize) as i64; in create_surface()
656 (*size_hints).max_width = width as i32; in create_surface()
657 (*size_hints).min_width = width as i32; in create_surface()
658 (*size_hints).max_height = height as i32; in create_surface()
659 (*size_hints).min_height = height as i32; in create_surface()
660 xlib::XSetWMNormalHints(self.display.as_ptr(), window, size_hints); in create_surface()
661 x_free(size_hints); in create_surface()
/external/ImageMagick/MagickCore/
Dxwindow.c8340 *size_hints; in XMakeWindow() local
8348 size_hints=XAllocSizeHints(); in XMakeWindow()
8349 if (size_hints == (XSizeHints *) NULL) in XMakeWindow()
8351 size_hints->flags=(int) window_info->flags; in XMakeWindow()
8352 size_hints->x=window_info->x; in XMakeWindow()
8353 size_hints->y=window_info->y; in XMakeWindow()
8354 size_hints->width=(int) window_info->width; in XMakeWindow()
8355 size_hints->height=(int) window_info->height; in XMakeWindow()
8361 size_hints->min_width=size_hints->width; in XMakeWindow()
8362 size_hints->min_height=size_hints->height; in XMakeWindow()
[all …]
Danimate.c1015 *size_hints; in XAnimateBackgroundImage() local
1020 size_hints=XAllocSizeHints(); in XAnimateBackgroundImage()
1021 if (size_hints == (XSizeHints *) NULL) in XAnimateBackgroundImage()
1024 size_hints->flags=0L; in XAnimateBackgroundImage()
1028 default_geometry,window_info.border_width,size_hints,&window_info.x, in XAnimateBackgroundImage()
1035 (void) XFree((void *) size_hints); in XAnimateBackgroundImage()
Ddisplay.c4384 *size_hints; in XConfigureImage() local
4470 size_hints=XAllocSizeHints(); in XConfigureImage()
4471 if (size_hints != (XSizeHints *) NULL) in XConfigureImage()
4476 size_hints->flags=PSize | PMinSize | PMaxSize; in XConfigureImage()
4477 size_hints->width=window_changes.width; in XConfigureImage()
4478 size_hints->height=window_changes.height; in XConfigureImage()
4479 size_hints->min_width=size_hints->width; in XConfigureImage()
4480 size_hints->min_height=size_hints->height; in XConfigureImage()
4481 size_hints->max_width=size_hints->width; in XConfigureImage()
4482 size_hints->max_height=size_hints->height; in XConfigureImage()
[all …]