Window
Object Hierarchy:
Description:
[ CCode ( cname = "GLFWwindow" , free_function = "glfwDestroyWindow" ) ]
[ Compact ]
public class Window
[ Compact ]
public class Window
Namespace: GLFW
Package: glfw3
Content:
Properties:
- public string clipboard_string { get; set; }
- public unowned Window? current_context { get; }
- public unowned Cursor? cursor { set; }
- public unowned Monitor? monitor { get; }
- public bool should_close { get; set; }
- public string title { set; }
- public void* user_pointer { get; set; }
Creation methods:
- public Window (int width, int height, string title = "", Monitor? monitor = null, Window? share = null)
Methods:
- public int get_attrib (WindowAttribute attrib)
- public void get_cursor_pos (out double xpos, out double ypos)
- public void get_framebuffer_size (out int width, out int height)
- public int get_input_mode (InputMode mode)
- public ButtonState get_key (Key key)
- public ButtonState get_mouse_button (MouseButton button)
- public void get_scroll_offset (out double xoffset, out double yoffset)
- public void get_size (out int width, out int height)
- public void hide ()
- public void iconify ()
- public void make_context_current ()
- public void restore ()
- public void set_char_callback (CharFunc? c)
- public void set_close_callback (WindowCloseFunc? c)
- public void set_cursor_enter_callback (CursorEnterFunc? c)
- public void set_cursor_pos (double xpos, double ypos)
- public void set_cursor_pos_callback (CursorPosFunc? c)
- public void set_focus_callback (WindowFocusFunc? c)
- public void set_framebuffer_size_callback (FrameBufferFunc? c)
- public void set_iconify_callback (WindowIconifyFunc? c)
- public void set_input_mode (InputMode mode, int value)
- public void set_key_callback (KeyFunc? c)
- public void set_mouse_button_callback (MouseButtonFunc? c)
- public void set_position_callback (WindowPositionFunc? c)
- public void set_refresh_callback (WindowRefreshFunc? c)
- public void set_scroll_callback (ScrollFunc? c)
- public void set_size (int width, int height)
- public void set_size_callback (WindowSizeFunc? c)
- public void show ()
- public void swap_buffers ()