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

Public Member Functions

 ATTRIB (Label, currentText, string)
 ATTRIB (Label, text, string)
 ATTRIB (Label, textEntity, entity)
 ATTRIB (MenuItem, parent, entity)
 ATTRIB (MenuItem, tooltip, string)
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 = SKINALPHA_TEXT
vector colorL = SKINCOLOR_TEXT
float condenseFactor = 1
float disabled = 0
float disabledAlpha = SKINALPHA_DISABLED
bool focusable = false
bool focused = false
float fontSize = SKINFONTSIZE_NORMAL
bool isBold = false
float keepspaceLeft = 0
float keepspaceRight = 0
float marginLeft = 0
float marginRight = 0
vector origin = '0 0 0'
bool overrideCondenseFactor = false
vector overrideRealOrigin = '0 0 0'
float preferredFocusPriority = 0
vector realFontSize = '0 0 0'
vector realOrigin = '0 0 0'
bool recalcPos = false
vector size = '0 0 0'

Detailed Description

Definition at line 4 of file textlabel.qh.

Member Function Documentation

◆ ATTRIB() [1/5]

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

References ATTRIB().

◆ ATTRIB() [2/5]

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

References ATTRIB().

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

◆ ATTRIB() [3/5]

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

References ATTRIB(), and entity().

◆ ATTRIB() [4/5]

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

References entity(), and parent.

◆ ATTRIB() [5/5]

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

◆ configureLabel()

virtual void Label::configureLabel ( )
virtualinherited

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

Referenced by configureLabel().

◆ destroy()

◆ draw()

virtual void XonoticTextLabel::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 Label::recalcPositionWithText ( )
virtualinherited

Reimplemented in BorderImage.

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 Label::resizeNotify ( )
virtualinherited

Reimplemented from MenuItem.

Reimplemented in BorderImage, Button, InputBox, and Slider.

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 XonoticTextLabel::alpha = SKINALPHA_TEXT

Definition at line 7 of file textlabel.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 XonoticTextLabel::disabledAlpha = SKINALPHA_DISABLED

Definition at line 8 of file textlabel.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 XonoticTextLabel::fontSize = SKINFONTSIZE_NORMAL

Definition at line 6 of file textlabel.qh.

◆ isBold

bool Label::isBold = false
inherited

Definition at line 11 of file label.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 Label::overrideRealOrigin = '0 0 0'
inherited

Definition at line 36 of file label.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.

◆ realOrigin

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

Definition at line 23 of file label.qh.

◆ recalcPos

bool Label::recalcPos = false
inherited

Definition at line 34 of file label.qh.

◆ size

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

Definition at line 30 of file item.qh.

Referenced by resizeNotify().


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