Pepper_31_C++_interfaces
Main Page
Namespaces
Classes
Files
File List
File Members
dev
widget_dev.h
Go to the documentation of this file.
1
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef PPAPI_CPP_DEV_WIDGET_DEV_H_
6
#define PPAPI_CPP_DEV_WIDGET_DEV_H_
7
8
#include "ppapi/c/pp_stdint.h"
9
#include "ppapi/cpp/resource.h"
10
11
namespace
pp {
12
13
class
ImageData;
14
class
InputEvent;
15
class
Rect;
16
17
// This is the base class for widget elements. As such, it can't be created
18
// directly.
19
class
Widget_Dev
:
public
Resource
{
20
public
:
21
// Creates an is_null() Widget object.
22
Widget_Dev
() {}
23
24
explicit
Widget_Dev
(
PP_Resource
resource);
25
Widget_Dev
(
const
Widget_Dev
& other);
26
27
// PPB_Widget methods:
28
bool
Paint
(
const
Rect
& rect,
ImageData
* image);
29
bool
HandleEvent
(
const
InputEvent
& event);
30
bool
GetLocation
(
Rect
* location);
31
void
SetLocation
(
const
Rect
& location);
32
void
SetScale
(
float
scale);
33
};
34
35
}
// namespace pp
36
37
#endif // PPAPI_CPP_DEV_WIDGET_DEV_H_
pp::Widget_Dev::SetScale
void SetScale(float scale)
pp::ImageData
Definition:
image_data.h:20
pp::Rect
Definition:
rect.h:19
pp::Widget_Dev::SetLocation
void SetLocation(const Rect &location)
pp::Widget_Dev::Paint
bool Paint(const Rect &rect, ImageData *image)
pp::InputEvent
Definition:
input_event.h:46
pp::Widget_Dev
Definition:
widget_dev.h:19
pp::Widget_Dev::GetLocation
bool GetLocation(Rect *location)
PP_Resource
pp::Resource
A reference counted module resource.
Definition:
resource.h:18
pp::Widget_Dev::HandleEvent
bool HandleEvent(const InputEvent &event)
pp::Widget_Dev::Widget_Dev
Widget_Dev()
Definition:
widget_dev.h:22
Generated on Wed May 4 2016 11:31:16 for Pepper_31_C++_interfaces by
1.8.6