os_window_android.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright (c) 2012-2014 Daniele Bartolini and individual contributors.
  3. * License: https://github.com/taylor001/crown/blob/master/LICENSE
  4. */
  5. #include "config.h"
  6. #if CROWN_PLATFORM_ANDROID
  7. #include "os_window_android.h"
  8. #include "assert.h"
  9. #include "log.h"
  10. namespace crown
  11. {
  12. OsWindow::OsWindow()
  13. : m_x(0)
  14. , m_y(0)
  15. , m_width(0)
  16. , m_height(0)
  17. {
  18. }
  19. OsWindow::~OsWindow()
  20. {
  21. }
  22. void OsWindow::show()
  23. {
  24. }
  25. void OsWindow::hide()
  26. {
  27. }
  28. void OsWindow::get_size(uint32_t& width, uint32_t& height)
  29. {
  30. width = m_width;
  31. height = m_height;
  32. }
  33. void OsWindow::get_position(uint32_t& x, uint32_t& y)
  34. {
  35. x = m_x;
  36. y = m_y;
  37. }
  38. void OsWindow::resize(uint32_t /*width*/, uint32_t /*height*/)
  39. {
  40. }
  41. void OsWindow::move(uint32_t /*x*/, uint32_t /*y*/)
  42. {
  43. }
  44. void OsWindow::minimize()
  45. {
  46. }
  47. void OsWindow::restore()
  48. {
  49. }
  50. bool OsWindow::is_resizable() const
  51. {
  52. return false;
  53. }
  54. void OsWindow::set_resizable(bool /*resizeable*/)
  55. {
  56. }
  57. void OsWindow::show_cursor(bool /*show*/)
  58. {
  59. }
  60. void OsWindow::get_cursor_xy(int32_t& /*x*/, int32_t& /*y*/)
  61. {
  62. }
  63. void OsWindow::set_cursor_xy(int32_t /*x*/, int32_t /*y*/)
  64. {
  65. }
  66. char* OsWindow::title()
  67. {
  68. return NULL;
  69. }
  70. void OsWindow::set_title(const char* /*title*/)
  71. {
  72. }
  73. void OsWindow::frame()
  74. {
  75. }
  76. } // namespace crown
  77. #endif // CROWN_PLATFORM_ANDROID