Blender
V4.3
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
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
m_ButtonLeft
: 1;
46
uint8_t
m_ButtonMiddle
: 1;
47
uint8_t
m_ButtonRight
: 1;
48
uint8_t
m_Button4
: 1;
49
uint8_t
m_Button5
: 1;
50
uint8_t
m_Button6
: 1;
51
uint8_t
m_Button7
: 1;
52
};
GHOST_Types.h
GHOST_TButton
GHOST_TButton
Definition
GHOST_Types.h:232
uint8_t
unsigned char uint8_t
Definition
stdint.h:78
GHOST_Buttons
Definition
GHOST_Buttons.hh:18
GHOST_Buttons::get
bool get(GHOST_TButton mask) const
Definition
GHOST_Buttons.cc:16
GHOST_Buttons::m_ButtonRight
uint8_t m_ButtonRight
Definition
GHOST_Buttons.hh:47
GHOST_Buttons::m_Button4
uint8_t m_Button4
Definition
GHOST_Buttons.hh:48
GHOST_Buttons::m_Button7
uint8_t m_Button7
Definition
GHOST_Buttons.hh:51
GHOST_Buttons::m_Button5
uint8_t m_Button5
Definition
GHOST_Buttons.hh:49
GHOST_Buttons::GHOST_Buttons
GHOST_Buttons()
Definition
GHOST_Buttons.cc:11
GHOST_Buttons::m_Button6
uint8_t m_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::m_ButtonLeft
uint8_t m_ButtonLeft
Definition
GHOST_Buttons.hh:45
GHOST_Buttons::m_ButtonMiddle
uint8_t m_ButtonMiddle
Definition
GHOST_Buttons.hh:46
GHOST_Buttons::~GHOST_Buttons
~GHOST_Buttons()
Definition
GHOST_Buttons.cc:78
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0