Xonotic
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
+
Enumerator
i
m
o
p
r
s
t
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
image.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include "../item.qh"
4
CLASS
(
Image
,
MenuItem
)
5
METHOD
(
Image
, configureImage,
void
(
entity
,
string
));
6
METHOD
(
Image
, draw,
void
(
entity
));
7
METHOD
(
Image
, toString,
string
(
entity
));
8
METHOD
(
Image
, resizeNotify,
void
(
entity
,
vector
,
vector
,
vector
,
vector
));
9
METHOD
(
Image
, updateAspect,
void
(
entity
));
10
METHOD
(
Image
, initZoom,
void
(
entity
));
11
METHOD
(
Image
, setZoom,
void
(
entity
,
float
,
float
));
12
METHOD
(
Image
, drag_setStartPos,
float
(
entity
,
vector
));
13
METHOD
(
Image
, drag,
float
(
entity
,
vector
));
14
ATTRIB
(
Image
, src,
string
);
15
ATTRIB
(
Image
,
color
,
vector
,
'1 1 1'
);
16
ATTRIB
(
Image
, forcedAspect,
float
, 0);
// special values: -1 keep image aspect ratio, -2 keep image size but bound to the containing box, -3 always keep image size
17
ATTRIB
(
Image
, zoomBox,
float
, 0);
// used by forcedAspect -2 when the image is larger than the containing box
18
ATTRIB
(
Image
, zoomFactor,
float
, 1);
19
ATTRIB
(
Image
, zoomOffset,
vector
,
'0.5 0.5 0'
);
20
ATTRIB
(
Image
, zoomSnapToTheBox,
float
, 1);
// snap the zoomed in image to the box borders when zooming/dragging it
21
ATTRIB
(
Image
, zoomTime,
float
, 0);
22
ATTRIB
(
Image
, zoomLimitedByTheBox,
float
, 0);
// forbids zoom if image would be larger than the containing box
23
ATTRIB
(
Image
, zoomMax,
float
, 0);
24
ATTRIB
(
Image
, start_zoomOffset,
vector
,
'0 0 0'
);
25
ATTRIB
(
Image
, start_coords,
vector
,
'0 0 0'
);
26
ATTRIB
(
Image
, imgOrigin,
vector
,
'0 0 0'
);
27
ATTRIB
(
Image
, imgSize,
vector
,
'0 0 0'
);
28
ENDCLASS
(
Image
)
color
vector color
Definition:
dpextensions.qc:2415
CLASS
CLASS(Object) Object
Definition:
oo.qh:318
entity
entity() spawn
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
ATTRIB
#define ATTRIB(...)
Definition:
oo.qh:136
MenuItem
Definition:
item.qh:8
vector
vector(float skel, float bonenum) _skel_get_boneabs_hidden
ENDCLASS
#define ENDCLASS(cname)
Definition:
oo.qh:269
Image
Definition:
image.qh:4
menu
item
image.qh
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13