diff options
Diffstat (limited to 'libhomescreen/src')
-rw-r--r-- | libhomescreen/src/libhomescreen.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libhomescreen/src/libhomescreen.cpp b/libhomescreen/src/libhomescreen.cpp index 374cfe8..03c4baf 100644 --- a/libhomescreen/src/libhomescreen.cpp +++ b/libhomescreen/src/libhomescreen.cpp @@ -122,6 +122,27 @@ void LibHomeScreen::renderSurfaceToArea(int surfaceId, int layoutArea) } } +bool LibHomeScreen::renderSurfaceToAreaAllowed(int surfaceId, int layoutArea) +{ + gboolean result = true; + GError *err = NULL; + + lib_home_screen_homescreen_call_render_surface_to_area_allowed_sync( + mp_libHomeScreenHomescreen_Proxy, + surfaceId, + layoutArea, + &result, + NULL, + &err); + + if (NULL != err) + { + fprintf(stderr, "Unable to call renderSurfaceToArea: %s\n", err->message); + } + + return result; +} + void LibHomeScreen::requestSurfaceIdToFullScreen(int surfaceId) { GError *err = NULL; |