window_size_plugin.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2018 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #ifndef PLUGINS_WINDOW_SIZE_LINUX_WINDOW_SIZE_PLUGIN_H_
  15. #define PLUGINS_WINDOW_SIZE_LINUX_WINDOW_SIZE_PLUGIN_H_
  16. // A plugin to allow resizing the window.
  17. #include <flutter_linux/flutter_linux.h>
  18. G_BEGIN_DECLS
  19. #ifdef FLUTTER_PLUGIN_IMPL
  20. #define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
  21. #else
  22. #define FLUTTER_PLUGIN_EXPORT
  23. #endif
  24. G_DECLARE_FINAL_TYPE(FlWindowSizePlugin, fl_window_size_plugin, FL,
  25. WINDOW_SIZE_PLUGIN, GObject)
  26. FLUTTER_PLUGIN_EXPORT FlWindowSizePlugin* fl_window_size_plugin_new(
  27. FlPluginRegistrar* registrar);
  28. FLUTTER_PLUGIN_EXPORT void window_size_plugin_register_with_registrar(
  29. FlPluginRegistrar* registrar);
  30. G_END_DECLS
  31. #endif // PLUGINS_WINDOW_SIZE_LINUX_WINDOW_SIZE_PLUGIN_H_