Просмотр исходного кода

Fix OsWindow documentation under Android. Also fixes some warnings

Daniele Bartolini 12 лет назад
Родитель
Сommit
4e418bc86d
2 измененных файлов с 26 добавлено и 6 удалено
  1. 6 6
      engine/os/android/OsWindow.cpp
  2. 20 0
      engine/os/android/OsWindow.h

+ 6 - 6
engine/os/android/OsWindow.cpp

@@ -86,12 +86,12 @@ void OsWindow::get_position(uint32_t& x, uint32_t& y)
 }
 
 //-----------------------------------------------------------------------------
-void OsWindow::resize(uint32_t width, uint32_t height)
+void OsWindow::resize(uint32_t /*width*/, uint32_t /*height*/)
 {
 }
 
 //-----------------------------------------------------------------------------
-void OsWindow::move(uint32_t x, uint32_t y)
+void OsWindow::move(uint32_t /*x*/, uint32_t /*y*/)
 {
 }
 
@@ -106,12 +106,12 @@ void OsWindow::hide_cursor()
 }
 
 //-----------------------------------------------------------------------------
-void OsWindow::get_cursor_xy(int32_t& x, int32_t& y)
+void OsWindow::get_cursor_xy(int32_t& /*x*/, int32_t& /*y*/)
 {
 }
 
 //-----------------------------------------------------------------------------
-void OsWindow::set_cursor_xy(int32_t x, int32_t y)
+void OsWindow::set_cursor_xy(int32_t /*x*/, int32_t /*y*/)
 {
 }
 
@@ -122,14 +122,14 @@ char* OsWindow::title()
 }
 
 //-----------------------------------------------------------------------------
-void OsWindow::set_title(const char* title)
+void OsWindow::set_title(const char* /*title*/)
 {
 }
 
 //-----------------------------------------------------------------------------
 void OsWindow::frame()
 {
-	// implemented on Java-side
+	// Implemented Java-side
 }
 
 //-----------------------------------------------------------------------------

+ 20 - 0
engine/os/android/OsWindow.h

@@ -36,27 +36,47 @@ class OsWindow
 {
 public:
 
+	/// Stub method, does nothing under Android.
 					OsWindow(uint32_t width, uint32_t height, uint32_t parent);
 					~OsWindow();
 
+	/// Stub method, does nothing under Android.
 	void			show();
+
+	/// Stub method, does nothing under Android.
 	void			hide();
 
+	/// Returns the size in pixel of the window.
 	void			get_size(uint32_t& width, uint32_t& height);
+
+	/// Returns always (0, 0) under Android.
 	void			get_position(uint32_t& x, uint32_t& y);
 
+	/// Stub method, does nothing under Android.
 	void			resize(uint32_t width, uint32_t height);
+
+	/// Stub method, does nothing under Android.
 	void			move(uint32_t x, uint32_t y);
 
+	/// Stub method, does nothing under Android.
 	void			show_cursor();
+
+	/// Stub method, does nothing under Android.
 	void			hide_cursor();
 
+	/// Stub method, does nothing under Android.
 	void			get_cursor_xy(int32_t& x, int32_t& y);
+
+	/// Stub method, does nothing under Android.
 	void			set_cursor_xy(int32_t x, int32_t y);
 
+	/// Returns always NULL under Android.
 	char*			title();
+
+	/// Stub method, does nothing under Android.
 	void			set_title(const char* title);
 
+	/// Stub method, does nothing under Android.
 	void			frame();
 
 private: