GrabberHandlePrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _GAZEBO_GUI_GRABBER_HANDLE_PRIVATE_HH_
19 #define _GAZEBO_GUI_GRABBER_HANDLE_PRIVATE_HH_
20 
21 #include <vector>
22 
23 #include "gazebo/common/Color.hh"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
29  class GrabberHandle;
30 
34  {
36  public: std::vector<GrabberHandle *> linkedGrabbers;
37 
39  public: int index;
40 
42  public: double mouseDownX;
43 
45  public: double mouseDownY;
46 
49 
52 
54  public: double width;
55 
57  public: double height;
58 
60  public: double widthGrabBuffer;
61 
63  public: double heightGrabBuffer;
64 
66  public: int mouseButtonState;
67  };
68  }
69 }
70 
71 #endif
double widthGrabBuffer
Extra width around the grabber handle for mouse grabbing.
Definition: GrabberHandlePrivate.hh:60
Definition: GrabberHandlePrivate.hh:33
double height
Height of the grabber handle in pixels.
Definition: GrabberHandlePrivate.hh:57
int index
Index of this corner grabber.
Definition: GrabberHandlePrivate.hh:39
std::vector< GrabberHandle * > linkedGrabbers
A list of grabbers linked to this grabber.
Definition: GrabberHandlePrivate.hh:36
double mouseDownX
Mouse press X position in pixel coordinates.
Definition: GrabberHandlePrivate.hh:42
double heightGrabBuffer
Extra height around the grabber handle for mouse grabbing.
Definition: GrabberHandlePrivate.hh:63
double width
Width of the grabber handle in pixels.
Definition: GrabberHandlePrivate.hh:54
Defines a color.
Definition: Color.hh:36
int mouseButtonState
Current mouse state.
Definition: GrabberHandlePrivate.hh:66
common::Color borderColor
Border color of the grabber handle.
Definition: GrabberHandlePrivate.hh:51
common::Color handleColor
Fill color of the grabber handle.
Definition: GrabberHandlePrivate.hh:48
double mouseDownY
Mouse press Y position in pixel coordinates.
Definition: GrabberHandlePrivate.hh:45