Pepper_31_C_interfaces
|
#include <ppb_widget_dev.h>
Public Attributes | |
PP_Bool(* | IsWidget )(PP_Resource resource) |
PP_Bool(* | Paint )(PP_Resource widget, const struct PP_Rect *rect, PP_Resource image) |
PP_Bool(* | HandleEvent )(PP_Resource widget, PP_Resource input_event) |
PP_Bool(* | GetLocation )(PP_Resource widget, struct PP_Rect *location) |
void(* | SetLocation )(PP_Resource widget, const struct PP_Rect *location) |
void(* | SetScale )(PP_Resource widget, float scale) |
The interface for reusing browser widgets.
Definition at line 36 of file ppb_widget_dev.h.
PP_Bool(* PPB_Widget_Dev_0_4::GetLocation)(PP_Resource widget, struct PP_Rect *location) |
Get the location of the widget.
Definition at line 57 of file ppb_widget_dev.h.
PP_Bool(* PPB_Widget_Dev_0_4::HandleEvent)(PP_Resource widget, PP_Resource input_event) |
Pass in an event to a widget. It'll return PP_TRUE if the event was consumed.
Definition at line 53 of file ppb_widget_dev.h.
PP_Bool(* PPB_Widget_Dev_0_4::IsWidget)(PP_Resource resource) |
Returns PP_TRUE if the given resource is a Widget. Returns PP_FALSE if the resource is invalid or some type other than an Widget.
Definition at line 41 of file ppb_widget_dev.h.
PP_Bool(* PPB_Widget_Dev_0_4::Paint)(PP_Resource widget, const struct PP_Rect *rect, PP_Resource image) |
Paint the given rectangle of the widget into the given image. Returns PP_TRUE on success, PP_FALSE on failure.
Definition at line 46 of file ppb_widget_dev.h.
void(* PPB_Widget_Dev_0_4::SetLocation)(PP_Resource widget, const struct PP_Rect *location) |
Set the location of the widget.
Definition at line 61 of file ppb_widget_dev.h.
void(* PPB_Widget_Dev_0_4::SetScale)(PP_Resource widget, float scale) |
Set scale used during paint operations.
Definition at line 65 of file ppb_widget_dev.h.