검색 결과


    아직 자원 봉사자들이 한국어로 현재 문서를 번역하지 않았습니다. 가입해서 이 문서가 번역되는 일에 함께 해 주세요!

    « Gecko Plugin API Reference « Browser Side Plug-in API


    Invalidates the specified portion of the plugin's drawing area, adding it to the region that needs to be redrawn when the plugin next repaints its contents.


    #include <npapi.h>
    void NPN_InvalidateRect(NPP instance,
                            NPRect *invalidRect);


    The function has the following parameters:

    Pointer to the plug-in instance to invalidate a portion of.
    The area to invalidate, specified in a coordinate system that originates at the top left of the plug-in's content area.


    Before a windowless plug-in can repaint or refresh part of its drawing area, the plug-in must first invalidate the area with either NPN_InvalidateRect() or NPN_InvalidateRegion().

    NPN_InvalidateRect() causes the NPP_HandleEvent() method to pass an update event or a paint message to the plug-in. After calling this method, the plug-in receives a paint message asynchronously.

    The browser redraws invalid areas of the document and any windowless plug-ins at regularly timed intervals. To immediately send a paint message, the plug-in can call NPN_ForceRedraw() after calling this method.

    See also

    문서 태그 및 공헌자

    Contributors to this page: Sheppy, Pmash, Rickwookie
    최종 변경: Sheppy,