Home | History | Annotate | Download | only in mouse_cursor

Lines Matching refs:pp

13 void FillRect(pp::ImageData* image, int left, int top, int width, int height,
21 *image->GetAddr32(pp::Point(x, y)) = color;
25 class MyInstance : public pp::Instance {
28 : pp::Instance(instance), width_(0), height_(0) {
35 virtual void DidChangeView(const pp::View& view) {
40 virtual bool HandleInputEvent(const pp::InputEvent& event) {
45 HandleMove(pp::MouseInputEvent(event));
54 void HandleMove(const pp::MouseInputEvent& event) {
55 pp::Point point = event.GetPosition();
59 pp::MouseCursor::SetCursor(this, PP_MOUSECURSOR_TYPE_WAIT);
62 pp::ImageData cursor(this, pp::ImageData::GetNativeImageDataFormat(),
63 pp::Size(32, 32), true);
67 pp::MouseCursor::SetCursor(this, PP_MOUSECURSOR_TYPE_CUSTOM, cursor,
68 pp::Point(16, 16));
71 pp::MouseCursor::SetCursor(this, PP_MOUSECURSOR_TYPE_NONE);
81 class MyModule : public pp::Module {
83 MyModule() : pp::Module() {}
86 virtual pp::Instance* CreateInstance(PP_Instance instance) {
91 namespace pp {
98 } // namespace pp