Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
BorderImage Class Reference
Inheritance diagram for BorderImage:
Collaboration diagram for BorderImage:

Public Member Functions

 ATTRIB (BorderImage, closeButton, entity)
 ATTRIB (BorderImage, src, string)
 ATTRIB (Label, currentText, string)
 ATTRIB (Label, text, string)
 ATTRIB (Label, textEntity, entity)
 ATTRIB (MenuItem, parent, entity)
 ATTRIB (MenuItem, tooltip, string)
virtual void configureBorderImage ()
virtual void configureLabel ()
virtual void destroy ()
virtual void draw ()
virtual void focusEnter ()
virtual void focusLeave ()
virtual void hideNotify ()
virtual void keyDown ()
virtual void keyUp ()
virtual void mouseDrag ()
virtual void mouseMove ()
virtual void mousePress ()
virtual void mouseRelease ()
virtual void recalcPositionWithText ()
virtual void relinquishFocus ()
virtual void resizeNotify ()
virtual void setText ()
virtual void showNotify ()
virtual void toString ()

Public Attributes

float align = 0.5
bool allowColors = false
bool allowCut = false
bool allowFocusSound = false
bool allowWrap = false
float allowWrap_spacing = 0
float alpha = 0.7
float borderHeight = 0
vector borderVec = '0 0 0'
vector color = '1 1 1'
vector colorL = SKINCOLOR_TEXT
float condenseFactor = 1
float disabled = 0
float disabledAlpha = 0.3
bool focusable = false
bool focused = false
float fontSize = 8
bool isBold = true
bool isNexposeeTitleBar = false
float keepspaceLeft = 0
float keepspaceRight = 0
float marginLeft = 0
float marginRight = 0
vector origin = '0 0 0'
bool overrideCondenseFactor = false
vector overrideRealOrigin = '0 1 0'
float preferredFocusPriority = 0
vector realFontSize = '0 0 0'
vector realFontSize_Nexposeed = '0 0 0'
vector realOrigin = '0 0 0'
vector realOrigin_Nexposeed = '0 0 0'
bool recalcPos = false
vector saveRelOrigin = '0 0 0'
vector saveRelSize = '0 0 0'
vector size = '0 0 0'
bool zoomedOutTitleBar = false
float zoomedOutTitleBarPosition = 0

Detailed Description

Definition at line 4 of file borderimage.qh.

Member Function Documentation

◆ ATTRIB() [1/7]

BorderImage::ATTRIB ( BorderImage ,
closeButton ,
entity  )

References ATTRIB(), and entity().

◆ ATTRIB() [2/7]

BorderImage::ATTRIB ( BorderImage ,
src ,
string  )

References ATTRIB().

Referenced by ATTRIB(), and ATTRIB().

◆ ATTRIB() [3/7]

Label::ATTRIB ( Label ,
currentText ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [4/7]

Label::ATTRIB ( Label ,
text ,
string  )
inherited

References ATTRIB().

Referenced by ATTRIB(), ATTRIB(), and ATTRIB().

◆ ATTRIB() [5/7]

Label::ATTRIB ( Label ,
textEntity ,
entity  )
inherited

References ATTRIB(), and entity().

◆ ATTRIB() [6/7]

MenuItem::ATTRIB ( MenuItem ,
parent ,
entity  )
inherited

References entity(), and parent.

◆ ATTRIB() [7/7]

MenuItem::ATTRIB ( MenuItem ,
tooltip ,
string  )
inherited

◆ configureBorderImage()

virtual void BorderImage::configureBorderImage ( )
virtual

◆ configureLabel()

virtual void Label::configureLabel ( )
virtualinherited

References configureLabel(), entity(), and METHOD.

Referenced by configureLabel().

◆ destroy()

◆ draw()

virtual void BorderImage::draw ( )
virtual

Reimplemented from Label.

References draw(), entity(), and METHOD.

Referenced by draw().

◆ focusEnter()

void MenuItem::focusEnter ( )
virtualinherited

Reimplemented in Nexposee, XonoticCreditsDialog, XonoticServerList, and XonoticWinnerDialog.

Definition at line 94 of file item.qc.

95 {
97 }
bool allowFocusSound
Definition item.qh:26
void m_play_focus_sound()
Definition menu.qc:1097

References allowFocusSound, focusEnter(), and m_play_focus_sound().

Referenced by focusEnter().

◆ focusLeave()

void MenuItem::focusLeave ( )
virtualinherited

Reimplemented in Container, InputContainer, ListBox, XonoticCharmap, XonoticColorpicker, and XonoticInputBox.

Definition at line 99 of file item.qc.

100 {}

References focusLeave().

Referenced by focusLeave().

◆ hideNotify()

void MenuItem::hideNotify ( )
virtualinherited

Reimplemented in Container, and XonoticCvarList.

Definition at line 59 of file item.qc.

60 {}

References hideNotify().

Referenced by hideNotify().

◆ keyDown()

◆ keyUp()

void MenuItem::keyUp ( )
virtualinherited

Reimplemented in Container, Nexposee, and Slider.

Definition at line 67 of file item.qc.

68 {
69 return 0; // unhandled
70 }

References keyUp().

Referenced by keyUp().

◆ mouseDrag()

void MenuItem::mouseDrag ( )
virtualinherited

Reimplemented in Button, Container, InputBox, InputContainer, ListBox, Nexposee, Slider, XonoticColorpicker, XonoticColorpickerString, XonoticPicker, XonoticPlayList, XonoticScreenshotImage, and XonoticWeaponsList.

Definition at line 82 of file item.qc.

83 {
84 return 0; // unhandled
85 }

References mouseDrag(), and vector.

Referenced by mouseDrag().

◆ mouseMove()

void MenuItem::mouseMove ( )
virtualinherited

Reimplemented in Container, InputBox, InputContainer, ListBox, Nexposee, XonoticPicker, XonoticScreenshotImage, and XonoticServerList.

Definition at line 72 of file item.qc.

73 {
74 return 0; // unhandled
75 }

References mouseMove(), and vector.

Referenced by mouseMove().

◆ mousePress()

void MenuItem::mousePress ( )
virtualinherited

Reimplemented in Button, Container, InputBox, InputContainer, ListBox, Nexposee, Slider, XonoticColorpicker, XonoticColorpickerString, XonoticPicker, and XonoticScreenshotImage.

Definition at line 77 of file item.qc.

78 {
79 return false; // unhandled
80 }

References mousePress(), and vector.

Referenced by mousePress().

◆ mouseRelease()

void MenuItem::mouseRelease ( )
virtualinherited

Reimplemented in Button, Container, InputBox, InputContainer, ListBox, Nexposee, Slider, XonoticColorpicker, XonoticColorpickerString, XonoticCvarList, XonoticPicker, and XonoticWelcomeDialog.

Definition at line 87 of file item.qc.

88 {
89 return 0; // unhandled
90 }

References mouseRelease(), and vector.

Referenced by mouseRelease().

◆ recalcPositionWithText()

virtual void BorderImage::recalcPositionWithText ( )
virtual

Reimplemented from Label.

References entity(), METHOD, and recalcPositionWithText().

Referenced by recalcPositionWithText().

◆ relinquishFocus()

void MenuItem::relinquishFocus ( )
virtualinherited

Definition at line 11 of file item.qc.

12 {
13 entity par = this.parent;
14 if (!par) return;
15 if (par.instanceOfContainer) par.setFocus(par, NULL);
16 }
entity parent
Definition animhost.qc:7
entity() spawn
#define NULL
Definition post.qh:14

References entity(), NULL, parent, and relinquishFocus().

Referenced by relinquishFocus().

◆ resizeNotify()

virtual void BorderImage::resizeNotify ( )
virtual

Reimplemented from Label.

References entity(), METHOD, resizeNotify(), and vector.

Referenced by resizeNotify().

◆ setText()

virtual void Label::setText ( )
virtualinherited

Reimplemented in InputBox, and XonoticInputBox.

References entity(), METHOD, and setText().

Referenced by setText().

◆ showNotify()

◆ toString()

virtual void Label::toString ( )
virtualinherited

Reimplemented from MenuItem.

Reimplemented in CheckBox, and Slider.

References entity(), METHOD, and toString().

Referenced by toString().

Member Data Documentation

◆ align

float Label::align = 0.5
inherited

Definition at line 15 of file label.qh.

◆ allowColors

bool Label::allowColors = false
inherited

Definition at line 17 of file label.qh.

◆ allowCut

bool Label::allowCut = false
inherited

Definition at line 16 of file label.qh.

◆ allowFocusSound

bool MenuItem::allowFocusSound = false
inherited

Definition at line 26 of file item.qh.

Referenced by focusEnter().

◆ allowWrap

bool Label::allowWrap = false
inherited

Definition at line 32 of file label.qh.

◆ allowWrap_spacing

float Label::allowWrap_spacing = 0
inherited

Definition at line 33 of file label.qh.

◆ alpha

float Label::alpha = 0.7
inherited

Definition at line 24 of file label.qh.

◆ borderHeight

float BorderImage::borderHeight = 0

Definition at line 11 of file borderimage.qh.

◆ borderVec

vector BorderImage::borderVec = '0 0 0'

Definition at line 12 of file borderimage.qh.

◆ color

vector BorderImage::color = '1 1 1'

Definition at line 13 of file borderimage.qh.

◆ colorL

vector Label::colorL = SKINCOLOR_TEXT
inherited

Definition at line 25 of file label.qh.

◆ condenseFactor

float Label::condenseFactor = 1
inherited

Definition at line 35 of file label.qh.

◆ disabled

float Label::disabled = 0
inherited

Definition at line 26 of file label.qh.

◆ disabledAlpha

float Label::disabledAlpha = 0.3
inherited

Definition at line 27 of file label.qh.

◆ focusable

bool MenuItem::focusable = false
inherited

Definition at line 25 of file item.qh.

◆ focused

bool MenuItem::focused = false
inherited

Definition at line 24 of file item.qh.

◆ fontSize

float Label::fontSize = 8
inherited

Definition at line 14 of file label.qh.

◆ isBold

bool BorderImage::isBold = true

Definition at line 8 of file borderimage.qh.

◆ isNexposeeTitleBar

bool BorderImage::isNexposeeTitleBar = false

Definition at line 17 of file borderimage.qh.

◆ keepspaceLeft

float Label::keepspaceLeft = 0
inherited

Definition at line 18 of file label.qh.

◆ keepspaceRight

float Label::keepspaceRight = 0
inherited

Definition at line 19 of file label.qh.

◆ marginLeft

float Label::marginLeft = 0
inherited

Definition at line 20 of file label.qh.

◆ marginRight

float Label::marginRight = 0
inherited

Definition at line 21 of file label.qh.

◆ origin

vector MenuItem::origin = '0 0 0'
inherited

Definition at line 29 of file item.qh.

Referenced by resizeNotify().

◆ overrideCondenseFactor

bool Label::overrideCondenseFactor = false
inherited

Definition at line 37 of file label.qh.

◆ overrideRealOrigin

vector BorderImage::overrideRealOrigin = '0 1 0'

Definition at line 20 of file borderimage.qh.

◆ preferredFocusPriority

float MenuItem::preferredFocusPriority = 0
inherited

Definition at line 28 of file item.qh.

◆ realFontSize

vector Label::realFontSize = '0 0 0'
inherited

Definition at line 22 of file label.qh.

◆ realFontSize_Nexposeed

vector BorderImage::realFontSize_Nexposeed = '0 0 0'

Definition at line 15 of file borderimage.qh.

◆ realOrigin

vector Label::realOrigin = '0 0 0'
inherited

Definition at line 23 of file label.qh.

◆ realOrigin_Nexposeed

vector BorderImage::realOrigin_Nexposeed = '0 0 0'

Definition at line 16 of file borderimage.qh.

◆ recalcPos

bool Label::recalcPos = false
inherited

Definition at line 34 of file label.qh.

◆ saveRelOrigin

vector BorderImage::saveRelOrigin = '0 0 0'

Definition at line 21 of file borderimage.qh.

◆ saveRelSize

vector BorderImage::saveRelSize = '0 0 0'

Definition at line 22 of file borderimage.qh.

◆ size

vector MenuItem::size = '0 0 0'
inherited

Definition at line 30 of file item.qh.

Referenced by resizeNotify().

◆ zoomedOutTitleBar

bool BorderImage::zoomedOutTitleBar = false

Definition at line 19 of file borderimage.qh.

◆ zoomedOutTitleBarPosition

float BorderImage::zoomedOutTitleBarPosition = 0

Definition at line 18 of file borderimage.qh.


The documentation for this class was generated from the following file: