Window
Object Hierarchy:
Description:
[ CCode ( cname = "SDL_Window" , cprefix = "SDL_" , free_function = "SDL_DestroyWindow" ) ]
[ Compact ]
public class Window
Content:
Structs:
Enums:
Constants:
Properties:
- public bool grab { get; set; }
- public string title { get; set; }
Static methods:
Creation methods:
Methods:
- public void destroy ()
- public int get_borders_size (out int top, out int left, out int bottom, out int right)
- public float get_brightness ()
- public unowned T get_data<T> (string key)
- public int get_display ()
- public int get_display_mode (out DisplayMode mode)
- public uint32 get_flags ()
- public int get_gammaramp (uint16[] red, uint16[] green, uint16[] blue)
- public void get_gl_drawable_size (out int w, out int h)
- public uint32 get_id ()
- public void get_maxsize (out int w, out int h)
- public void get_minsize (out int w, out int h)
- public int get_opacity (out float opacity)
- public PixelRAWFormat get_pixelformat ()
- public void get_position (out int x, out int y)
- public ShapeMode get_shape_mode () throws ShapeError
Get the shape parameters of a shaped window.
- public void get_size (out int w, out int h)
- public Surface get_surface ()
- public bool get_wm_info (out SysWMInfo info)
- public void hide ()
- public bool is_shaped ()
- public void maximize ()
- public void minimize ()
- public void raise ()
- public void restore ()
- public void set_bordered (bool bordered)
- public int set_brightness (float brightness)
- public void set_data<T> (string key, owned T data)
- public int set_display_mode (DisplayMode mode)
- public int set_fullscreen (uint32 flags)
- public int set_gammaramp (uint16[] red, uint16[] green, uint16[] blue)
- public int set_hit_test (HitTestFunc callback)
- public void set_icon (Surface icon)
- public int set_input_focus ()
- public void set_maxsize (int w, int h)
- public void set_minsize (int w, int h)
- public int set_modal_for (Window parent)
Use this function to set the window as a modal for another window.
- public int set_opacity (float opacity)
- public void set_position (int x, int y)
- public void set_resizable (bool resizable)
- public void set_size (int w, int h)
- public void set_window_shape (Surface shape, ShapeMode? mode) throws ShapeError
Set the shape and parameters of a shaped window.
- public void show ()
- public int update_surface ()
- public int update_surface_rects (Rect[] rects)