UFO: Alien Invasion
Toggle main menu visibility
Loading...
Searching...
No Matches
ui_node_bar.h
Go to the documentation of this file.
1
4
5
/*
6
Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; either version 2
11
of the License, or (at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17
See the GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23
*/
24
25
#pragma once
26
27
#include "
ui_node_abstractvalue.h
"
28
29
class
uiBarNode
:
public
uiAbstractValueNode
{
30
void
draw
(
uiNode_t
* node)
override
;
31
void
onLoading
(
uiNode_t
* node)
override
;
32
void
onMouseDown
(
uiNode_t
* node,
int
x,
int
y,
int
button)
override
;
33
void
onMouseUp
(
uiNode_t
* node,
int
x,
int
y,
int
button)
override
;
34
void
onCapturedMouseMove
(
uiNode_t
* node,
int
x,
int
y)
override
;
35
};
36
37
/* prototype */
38
struct
uiBehaviour_t
;
39
43
typedef
struct
{
44
abstractValueExtraData_t
super
;
45
align_t
orientation
;
46
bool
readOnly
;
47
bool
noHover
;
48
}
barExtraData_t
;
49
50
void
UI_RegisterBarNode
(
uiBehaviour_t
* behaviour);
uiAbstractValueNode
Definition
ui_node_abstractvalue.h:29
uiBarNode
Definition
ui_node_bar.h:29
uiBarNode::onMouseUp
void onMouseUp(uiNode_t *node, int x, int y, int button) override
Definition
ui_node_bar.cpp:145
uiBarNode::onMouseDown
void onMouseDown(uiNode_t *node, int x, int y, int button) override
Definition
ui_node_bar.cpp:134
uiBarNode::draw
void draw(uiNode_t *node) override
Definition
ui_node_bar.cpp:46
uiBarNode::onCapturedMouseMove
void onCapturedMouseMove(uiNode_t *node, int x, int y) override
Called when the node is captured by the mouse.
Definition
ui_node_bar.cpp:95
uiBarNode::onLoading
void onLoading(uiNode_t *node) override
Called before loading. Used to set default attribute values.
Definition
ui_node_bar.cpp:154
align_t
align_t
We need this here for checking the boundaries from script values.
Definition
scripts.h:89
abstractValueExtraData_t
extradata for common GUI widget which allow to edit a value (scrollbar, spinner, and more)
Definition
ui_node_abstractvalue.h:61
barExtraData_t
extradata for the panel node
Definition
ui_node_bar.h:43
barExtraData_t::noHover
bool noHover
Definition
ui_node_bar.h:47
barExtraData_t::super
abstractValueExtraData_t super
Definition
ui_node_bar.h:44
barExtraData_t::orientation
align_t orientation
Definition
ui_node_bar.h:45
barExtraData_t::readOnly
bool readOnly
Definition
ui_node_bar.h:46
uiBehaviour_t
node behaviour, how a node work
Definition
ui_behaviour.h:39
uiNode_t
Atomic structure used to define most of the UI.
Definition
ui_nodes.h:80
ui_node_abstractvalue.h
Define common thing for GUI controls which allow to edit a value (scroolbar, spinner,...
UI_RegisterBarNode
void UI_RegisterBarNode(uiBehaviour_t *behaviour)
Definition
ui_node_bar.cpp:160
src
client
ui
node
ui_node_bar.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.17.0