Source/WebKit/efl/ewk/ewk_frame.cpp
Eina_Bool
ewk_frame_scroll_pos_get(const Evas_Object* o, int* x, int* y)
{
    if (x)
        *x = 0;
    if (y)
        *y = 0;
    EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame->view(), EINA_FALSE);
    WebCore::IntPoint pos = sd->frame->view()->scrollPosition();
    if (x)
        *x = pos.x();
    if (y)
        *y = pos.y();
    return EINA_TRUE;
}
/**
 * Get the current scroll position of given frame.
 *
 * @param o frame object to scroll.
 * @param x where to return horizontal position. May be @c NULL.
 * @param y where to return vertical position. May be @c NULL.
 *
 * @return @c EINA_TRUE if possible, @c EINA_FALSE otherwise and
 *         values are zeroed.
 */
Get the current scroll position of given frame.
@param o frame object to scroll.
@param x where to return horizontal position. May be @c NULL.
@param y where to return vertical position. May be @c NULL.

@return @c EINA_TRUE if possible, @c EINA_FALSE otherwise and
values are zeroed.
Get the current scroll position of given frame . @param o frame object to scroll . @param x where to return horizontal position . May be @c NULL . @param y where to return vertical position . May be @c NULL . @return @c EINA_TRUE if possible @c EINA_FALSE otherwise and values are zeroed .
Eina_Bool
ewk_frame_scroll_pos_get(const Evas_Object* o, int* x, int* y)
{
    if (x)
        *x = 0;
    if (y)
        *y = 0;
    EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame->view(), EINA_FALSE);
    WebCore::IntPoint pos = sd->frame->view()->scrollPosition();
    if (x)
        *x = pos.x();
    if (y)
        *y = pos.y();
    return EINA_TRUE;
}
Eina_Bool ewk_frame_scroll_pos_get ( const Evas_Object * o , int * x , int * y ) { if ( x ) * x = 0 ; if ( y ) * y = 0 ; EWK_FRAME_SD_GET_OR_RETURN ( o , sd , EINA_FALSE ) ; EINA_SAFETY_ON_NULL_RETURN_VAL ( sd -> frame , EINA_FALSE ) ; EINA_SAFETY_ON_NULL_RETURN_VAL ( sd -> frame -> view ( ) , EINA_FALSE ) ; WebCore :: IntPoint pos = sd -> frame -> view ( ) -> scrollPosition ( ) ; if ( x ) * x = pos . x ( ) ; if ( y ) * y = pos . y ( ) ; return EINA_TRUE ; }
Get the current scroll position of given frame.
Get the current scroll position of given frame .