Struct sdl2::video::Window[src]
pub struct Window { pub raw: *SDL_Window, pub owned: bool, }
Fields
raw | |
owned |
pub struct Window { pub raw: *SDL_Window, pub owned: bool, }
raw | |
owned |
impl Window
fn new(title: &str, x: WindowPos, y: WindowPos, width: int, height: int, window_flags: WindowFlags) -> Result<Window, ~str>
fn from_id(id: u32) -> Result<Window, ~str>
fn get_display_index(&self) -> Result<int, ~str>
fn set_display_mode(&self, display_mode: Option<DisplayMode>) -> bool
fn get_display_mode(&self, display_mode: &DisplayMode) -> Result<DisplayMode, ~str>
fn get_window_pixel_format(&self) -> PixelFormatFlag
fn get_id(&self) -> u32
fn get_flags(&self) -> WindowFlags
fn set_title(&self, title: &str)
fn get_title(&self) -> ~str
fn set_icon(&self, icon: &Surface)
fn set_position(&self, x: WindowPos, y: WindowPos)
fn get_position(&self) -> (int, int)
fn set_size(&self, w: int, h: int)
fn get_size(&self) -> (int, int)
fn set_minimum_size(&self, w: int, h: int)
fn get_minimum_size(&self) -> (int, int)
fn set_maximum_size(&self, w: int, h: int)
fn get_maximum_size(&self) -> (int, int)
fn set_bordered(&self, bordered: bool)
fn show(&self)
fn hide(&self)
fn raise(&self)
fn maximize(&self)
fn minimize(&self)
fn restore(&self)
fn set_fullscreen(&self, fullscreen_type: FullscreenType) -> bool
fn get_surface(&self) -> Result<Surface, ~str>
fn update_surface(&self) -> bool
fn update_surface_rects(&self, rects: &[Rect]) -> bool
fn set_grab(&self, grabbed: bool)
fn get_grab(&self) -> bool
fn set_brightness(&self, brightness: f64) -> bool
fn get_brightness(&self) -> f64
fn set_gamma_ramp(&self, red: Option<&[u16, ..256]>, green: Option<&[u16, ..256]>, blue: Option<&[u16, ..256]>) -> bool
fn get_gamma_ramp(&self) -> Result<(Vec<u16>, Vec<u16>, Vec<u16>), ~str>
fn gl_create_context(&self) -> Result<GLContext, ~str>
fn gl_make_current(&self, context: &GLContext) -> bool
fn gl_swap_window(&self)
impl Drop for Window
fn drop(&mut self)
impl Eq for Window
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).