GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
interface_dxlib_draggable.h
[詳解]
1
3
4// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5// Released under the MIT license
6// https://opensource.org/licenses/mit-license.php
7
8#ifndef DESIGNLAB_INTERFACE_DXLIB_DRAGGABLE_H_
9#define DESIGNLAB_INTERFACE_DXLIB_DRAGGABLE_H_
10
11
12namespace designlab
13{
14
18{
19public:
20 virtual ~IDxlibDraggable() = default;
21
26 virtual bool IsDraggable(int cursor_x, int cursor_y) const = 0;
27
30 virtual bool IsDragged() const = 0;
31
34 virtual void SetDragged(bool is_dragged) = 0;
35
42 virtual void DraggedAction(
43 int cursor_dif_x, int cursor_dif_y, unsigned int mouse_key_bit) = 0;
44};
45
46} // namespace designlab
47
48
49#endif // DESIGNLAB_INTERFACE_DXLIB_DRAGGABLE_H_
ドラッグ可能なGUIのインターフェース.
virtual void SetDragged(bool is_dragged)=0
ドラッグ中かどうかを設定する.
virtual ~IDxlibDraggable()=default
virtual bool IsDragged() const =0
ドラッグ中かどうかを取得する.
virtual void DraggedAction(int cursor_dif_x, int cursor_dif_y, unsigned int mouse_key_bit)=0
ドラッグ中の処理を行う. カーソルは上にあるけど,ドラッグ中ではない場合でも呼び出される.
virtual bool IsDraggable(int cursor_x, int cursor_y) const =0
ドラッグ可能な位置にあるかを判定する.