Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
image.qh
Go to the documentation of this file.
1#pragma once
2
3#include "../item.qh"
5 METHOD(Image, configureImage, void(entity, string));
11 METHOD(Image, setZoom, void(entity, float, float));
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, bool, true); // snap the zoomed in image to the box borders when zooming/dragging it
21 ATTRIB(Image, zoomTime, float, 0);
22 ATTRIB(Image, zoomLimitedByTheBox, bool, false); // forbids zoom if image would be larger than the containing box
23 ATTRIB(Image, zoomMax, float, 0);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
Definition image.qh:4
vector imgOrigin
Definition image.qh:26
vector start_zoomOffset
Definition image.qh:24
virtual void drag()
float zoomMax
Definition image.qh:23
vector imgSize
Definition image.qh:27
float zoomTime
Definition image.qh:21
float zoomBox
Definition image.qh:17
virtual void drag_setStartPos()
virtual void updateAspect()
virtual void toString()
ATTRIB(Image, src, string)
virtual void initZoom()
bool zoomLimitedByTheBox
Definition image.qh:22
vector zoomOffset
Definition image.qh:19
float zoomFactor
Definition image.qh:18
vector start_coords
Definition image.qh:25
virtual void draw()
virtual void resizeNotify()
virtual void configureImage()
vector color
Definition image.qh:15
float forcedAspect
Definition image.qh:16
bool zoomSnapToTheBox
Definition image.qh:20
virtual void setZoom()
#define true
Definition csprogsdefs.qh:5
#define false
Definition csprogsdefs.qh:6
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define METHOD(cname, name, prototype)
Definition oo.qh:269
vector
Definition self.qh:92