Blender
V5.0
intern
ghost
intern
GHOST_Buttons.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
10
#pragma once
11
12
#include "
GHOST_Types.h
"
13
18
struct
GHOST_Buttons
{
22
GHOST_Buttons
();
23
24
~GHOST_Buttons
();
25
31
bool
get
(
GHOST_TButton
mask
)
const
;
32
38
void
set
(
GHOST_TButton
mask
,
bool
down);
39
43
void
clear
();
44
45
uint8_t
button_left_
: 1;
46
uint8_t
button_middle_
: 1;
47
uint8_t
button_right_
: 1;
48
uint8_t
button4_
: 1;
49
uint8_t
button5_
: 1;
50
uint8_t
button6_
: 1;
51
uint8_t
button7_
: 1;
52
};
GHOST_Types.h
GHOST_TButton
GHOST_TButton
Definition
GHOST_Types.h:293
mask
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
Definition
math_float2.h:157
GHOST_Buttons::get
bool get(GHOST_TButton mask) const
Definition
GHOST_Buttons.cc:16
GHOST_Buttons::button4_
uint8_t button4_
Definition
GHOST_Buttons.hh:48
GHOST_Buttons::button7_
uint8_t button7_
Definition
GHOST_Buttons.hh:51
GHOST_Buttons::button_middle_
uint8_t button_middle_
Definition
GHOST_Buttons.hh:46
GHOST_Buttons::button_right_
uint8_t button_right_
Definition
GHOST_Buttons.hh:47
GHOST_Buttons::button_left_
uint8_t button_left_
Definition
GHOST_Buttons.hh:45
GHOST_Buttons::GHOST_Buttons
GHOST_Buttons()
Definition
GHOST_Buttons.cc:11
GHOST_Buttons::button5_
uint8_t button5_
Definition
GHOST_Buttons.hh:49
GHOST_Buttons::button6_
uint8_t button6_
Definition
GHOST_Buttons.hh:50
GHOST_Buttons::set
void set(GHOST_TButton mask, bool down)
Definition
GHOST_Buttons.cc:38
GHOST_Buttons::clear
void clear()
Definition
GHOST_Buttons.cc:67
GHOST_Buttons::~GHOST_Buttons
~GHOST_Buttons()
Generated on
for Blender by
doxygen
1.16.1