Menu

Struct

BrowserBounds

kurogane::BrowserBoundsSource
pub struct BrowserBounds { pub x: i32, pub y: i32, pub width: i32, pub height: i32, }

A browser’s place inside its parent window, for AppInstance::create_child_browser and BrowserHandle::set_bounds. It is a position and a size in that window’s own coordinates, which CEF applies unconverted. Pixels from the top-left of the client area on Windows and X11; on macOS, points in the parent NSView, whose origin is its top-left corner when the view is flipped (winit’s is) and its bottom-left corner otherwise.

A window’s place on the screen is a WindowPlacement.

Fields

#pub x: i32

#pub y: i32

#pub width: i32

#pub height: i32

Trait implementations