* "1" - SDL will only do normal key handling for Alt+F4.
*/
#define SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 "SDL_WINDOWS_NO_CLOSE_ON_ALT_F4"
+/**
+ * \brief Set Tizen indicator opacity
+ *
+ * The variable can be one of
+ * "#opaque" - Opacifies the indicator
+ * "#translucent" - Be translucent the indicator
+ * "#transparent" - Transparentizes the indicator (this is the default)
+ * "#bg_transparent" - Transparentizes the indicator background
+ */
+#define SDL_HINT_TIZEN_INDICATOR_OPACITY "SDL_TIZEN_INDICATOR_OPACITY"
+
/**
* \brief An enumeration of hint priorities
int window_w, window_h;
ecore_wl_screen_size_get(&window_w, &window_h);
- _tizen_ecore_ipc_client_send(OP_RESIZE, wind->rotation, window_w, window_h);
+
+ _tizen_ecore_ipc_client_send(OP_INDICATOR_SHOW, wind->rotation, 0, videoData->indicator_mode);
return ECORE_CALLBACK_DONE;
}
_tizen_cb_ignore_output_transform, NULL);
}
+void
+_tizen_indicator_opacity_hint_callback(void *userdata, const char *name, const char *oldValue, const char *newValue)
+{
+ SDL_VideoData *data = (SDL_VideoData *)userdata;
+
+ if ((oldValue == NULL) && (newValue == NULL))
+ return;
+
+ SDL_assert(SDL_strncmp(name, SDL_HINT_TIZEN_INDICATOR_OPACITY, SDL_strlen(SDL_HINT_TIZEN_INDICATOR_OPACITY)) == 0);
+ char indicator_type[4][20] = {"opaque","translucent","transparent","bg_transparent"};
+ for (int i=0;i<4;i++) {
+ if(SDL_strncmp(newValue, indicator_type[i], SDL_strlen(indicator_type[i])) == 0)
+ {
+ data->indicator_mode = i+1;
+ break;
+ }
+ }
+}
+
int
Tizen_CreateWindow(_THIS, SDL_Window *window)
{
}
// Add orientaiton hint cb
_tizen_window_orientation_add_hint((void*)wind);
+ SDL_AddHintCallback(SDL_HINT_TIZEN_INDICATOR_OPACITY, _tizen_indicator_opacity_hint_callback, data);
Tizen_rotate_update(wind);