Home | History | Annotate | Download | only in ewk

Lines Matching refs:window_features

43  * @param window_features the object to decrease reference count
45 EAPI void ewk_window_features_unref(Ewk_Window_Features* window_features)
47 EINA_SAFETY_ON_NULL_RETURN(window_features);
48 EINA_SAFETY_ON_FALSE_RETURN(window_features->__ref > 0);
50 if (--window_features->__ref)
53 delete window_features->core;
54 window_features->core = 0;
55 free(window_features);
61 * @param window_features the object to increase reference count
63 EAPI void ewk_window_features_ref(Ewk_Window_Features* window_features)
65 EINA_SAFETY_ON_NULL_RETURN(window_features);
66 window_features->__ref++;
75 * @param window_features the object to get boolean properties
85 EAPI void ewk_window_features_bool_property_get(Ewk_Window_Features* window_features, Eina_Bool* toolbar_visible, Eina_Bool* statusbar_visible, Eina_Bool* scrollbars_visible, Eina_Bool* menubar_visible, Eina_Bool* locationbar_visible, Eina_Bool* fullscreen)
87 EINA_SAFETY_ON_NULL_RETURN(window_features);
88 EINA_SAFETY_ON_NULL_RETURN(window_features->core);
91 *toolbar_visible = window_features->core->toolBarVisible;
94 *statusbar_visible = window_features->core->statusBarVisible;
97 *scrollbars_visible = window_features->core->scrollbarsVisible;
100 *menubar_visible = window_features->core->menuBarVisible;
103 *locationbar_visible = window_features->core->locationBarVisible;
106 *fullscreen = window_features->core->fullscreen;
118 * @param window_features the window's features
126 EAPI void ewk_window_features_int_property_get(Ewk_Window_Features* window_features, int* x, int* y, int* w, int* h)
128 EINA_SAFETY_ON_NULL_RETURN(window_features);
129 EINA_SAFETY_ON_NULL_RETURN(window_features->core);
132 *x = window_features->core->xSet ? static_cast<int>(window_features->core->x) : -1;
135 *y = window_features->core->ySet ? static_cast<int>(window_features->core->y) : -1;
138 *w = window_features->core->widthSet ? static_cast<int>(window_features->core->width) : -1;
141 *h = window_features->core->heightSet ? static_cast<int>(window_features->core->height) : -1;
157 Ewk_Window_Features* window_features = static_cast<Ewk_Window_Features*>(malloc(sizeof(*window_features)));
160 window_features->core = new WebCore::WindowFeatures(*core);
162 window_features->core = new WebCore::WindowFeatures();
164 window_features->__ref = 1;
166 return window_features;