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

Public Member Functions

 ATTRIB (Button, applyButton, entity)
 ATTRIB (Button, onClick, void(entity, entity))
 ATTRIB (Button, onClickEntity, entity)
 ATTRIB (Button, src, string)
 ATTRIB (Button, src2, string)
 ATTRIB (Button, srcSuffix, string)
 ATTRIB (Label, currentText, string)
 ATTRIB (Label, text, string)
 ATTRIB (Label, textEntity, entity)
 ATTRIB (MenuItem, parent, entity)
 ATTRIB (MenuItem, tooltip, string)
 ATTRIB (XonoticCheckBox, controlledCvar, string)
 ATTRIB (XonoticCheckBox, linkedCheckBox, entity)
void CheckBox_Click (entity me, entity other)
virtual void configureButton ()
virtual void configureCheckBox ()
virtual void configureLabel ()
virtual void configureXonoticCheckBox ()
virtual void destroy ()
virtual void draw ()
virtual void focusEnter ()
virtual void focusLeave ()
virtual void hideNotify ()
virtual void keyDown ()
virtual void keyUp ()
virtual void loadCvars ()
virtual void mouseDrag ()
virtual void mouseMove ()
virtual void mousePress ()
virtual void mouseRelease ()
virtual void playClickSound ()
virtual void recalcPositionWithText ()
virtual void relinquishFocus ()
virtual void resizeNotify ()
virtual void saveCvars ()
virtual void setChecked ()
virtual void setText ()
virtual void showNotify ()
virtual void toString ()
 void (entity, entity) onClick

Public Attributes

float align = 0.5
bool allowColors = false
bool allowCut = false
bool allowFocusSound = true
bool allowWrap = false
float allowWrap_spacing = 0
float alpha = SKINALPHA_TEXT
float alpha2 = 1
bool checked = false
float clickTime = 0
vector color = SKINCOLOR_CHECKBOX_N
vector color2 = '1 1 1'
vector colorC = SKINCOLOR_CHECKBOX_C
vector colorD = SKINCOLOR_CHECKBOX_D
vector colorF = SKINCOLOR_CHECKBOX_F
vector colorL = SKINCOLOR_TEXT
float condenseFactor = 1
float disabled = 0
float disabledAlpha = SKINALPHA_DISABLED
bool disableOnClick = false
bool focusable = true
bool focused = false
float fontSize = SKINFONTSIZE_NORMAL
bool forcePressed = false
string image = SKINGFX_CHECKBOX
bool isBold = false
float keepspaceLeft = 0
float keepspaceRight = 0
float marginLeft = 0
float marginRight = 0
float noValue = 0
vector origin = '0 0 0'
bool overrideCondenseFactor = false
vector overrideRealOrigin = '0 0 0'
float preferredFocusPriority = 0
float pressed = 0
bool pulse = false
vector realFontSize = '0 0 0'
vector realOrigin = '0 0 0'
bool recalcPos = false
float sendCvars = 0
vector size = '0 0 0'
float src2scale = 1
float srcMulti = 0
float useDownAsChecked = 0
float yesValue = 1

Detailed Description

Definition at line 4 of file checkbox.qh.

Member Function Documentation

◆ ATTRIB() [1/13]

Button::ATTRIB ( Button ,
applyButton ,
entity  )
inherited

References applyButton, ATTRIB(), and entity().

◆ ATTRIB() [2/13]

Button::ATTRIB ( Button ,
onClick ,
void(entity, entity)  )
inherited

◆ ATTRIB() [3/13]

Button::ATTRIB ( Button ,
onClickEntity ,
entity  )
inherited

References ATTRIB(), and entity().

◆ ATTRIB() [4/13]

Button::ATTRIB ( Button ,
src ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [5/13]

Button::ATTRIB ( Button ,
src2 ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [6/13]

Button::ATTRIB ( Button ,
srcSuffix ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [7/13]

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

References ATTRIB().

◆ ATTRIB() [8/13]

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

References ATTRIB().

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

◆ ATTRIB() [9/13]

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

References ATTRIB(), and entity().

◆ ATTRIB() [10/13]

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

References entity(), and parent.

◆ ATTRIB() [11/13]

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

◆ ATTRIB() [12/13]

XonoticCheckBox::ATTRIB ( XonoticCheckBox ,
controlledCvar ,
string  )

References ATTRIB(), and controlledCvar.

Referenced by ATTRIB(), and ATTRIB().

◆ ATTRIB() [13/13]

◆ CheckBox_Click()

void CheckBox::CheckBox_Click ( entity me,
entity other )
inherited

References CheckBox_Click(), entity(), and other.

Referenced by CheckBox_Click(), and void().

◆ configureButton()

virtual void Button::configureButton ( )
virtualinherited

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

Referenced by configureButton().

◆ configureCheckBox()

virtual void CheckBox::configureCheckBox ( )
virtualinherited

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

Referenced by configureCheckBox().

◆ configureLabel()

virtual void Label::configureLabel ( )
virtualinherited

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

Referenced by configureLabel().

◆ configureXonoticCheckBox()

virtual void XonoticCheckBox::configureXonoticCheckBox ( )
virtual

◆ destroy()

◆ draw()

virtual void CheckBox::draw ( )
virtualinherited

Reimplemented from Button.

Reimplemented in XonoticColorButton, XonoticRadioButton, and XonoticSliderCheckBox.

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()

virtual void Button::keyDown ( )
virtualinherited

Reimplemented from MenuItem.

References entity(), keyDown(), METHOD, mousePress(), this, and vector.

Referenced by 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().

◆ loadCvars()

virtual void XonoticCheckBox::loadCvars ( )
virtual

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

Referenced by loadCvars().

◆ mouseDrag()

virtual void Button::mouseDrag ( )
virtualinherited

Reimplemented from MenuItem.

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

Referenced by mouseDrag(), and mousePress().

◆ 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 Button::mousePress ( )
virtualinherited

Reimplemented from MenuItem.

Definition at line 39 of file button.qc.

40 {
41 this.mouseDrag(this, pos); // verify coordinates
42 return true;
43 }
virtual void mouseDrag()

References mouseDrag(), mousePress(), and vector.

Referenced by keyDown(), and mousePress().

◆ mouseRelease()

virtual void Button::mouseRelease ( )
virtualinherited

Reimplemented from MenuItem.

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

Referenced by mouseRelease().

◆ playClickSound()

virtual void CheckBox::playClickSound ( )
virtualinherited

Reimplemented from Button.

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

Referenced by playClickSound().

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

Reimplemented from Label.

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

Referenced by resizeNotify().

◆ saveCvars()

virtual void XonoticCheckBox::saveCvars ( )
virtual

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

Referenced by saveCvars().

◆ setChecked()

virtual void XonoticCheckBox::setChecked ( )
virtual

Reimplemented from CheckBox.

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

Referenced by setChecked().

◆ setText()

virtual void Label::setText ( )
virtualinherited

Reimplemented in InputBox, and XonoticInputBox.

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

Referenced by setText().

◆ showNotify()

virtual void Button::showNotify ( )
virtualinherited

Reimplemented from MenuItem.

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

Referenced by showNotify().

◆ toString()

virtual void CheckBox::toString ( )
virtualinherited

Reimplemented from Label.

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

Referenced by toString().

◆ void()

CheckBox::void ( entity ,
entity  )
inherited

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 Button::allowFocusSound = true
inherited

Definition at line 24 of file button.qh.

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

Definition at line 22 of file checkbox.qh.

◆ alpha2

float Button::alpha2 = 1
inherited

Definition at line 38 of file button.qh.

◆ checked

bool CheckBox::checked = false
inherited

Definition at line 11 of file checkbox.qh.

◆ clickTime

float Button::clickTime = 0
inherited

Definition at line 26 of file button.qh.

◆ color

vector XonoticCheckBox::color = SKINCOLOR_CHECKBOX_N

Definition at line 12 of file checkbox.qh.

◆ color2

vector Button::color2 = '1 1 1'
inherited

Definition at line 37 of file button.qh.

◆ colorC

vector XonoticCheckBox::colorC = SKINCOLOR_CHECKBOX_C

Definition at line 13 of file checkbox.qh.

◆ colorD

vector XonoticCheckBox::colorD = SKINCOLOR_CHECKBOX_D

Definition at line 15 of file checkbox.qh.

◆ colorF

vector XonoticCheckBox::colorF = SKINCOLOR_CHECKBOX_F

Definition at line 14 of file checkbox.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 CheckBox::disabled = 0
inherited

Definition at line 15 of file checkbox.qh.

◆ disabledAlpha

float XonoticCheckBox::disabledAlpha = SKINALPHA_DISABLED

Definition at line 23 of file checkbox.qh.

◆ disableOnClick

bool Button::disableOnClick = false
inherited

Definition at line 28 of file button.qh.

◆ focusable

bool Button::focusable = true
inherited

Definition at line 23 of file button.qh.

◆ focused

bool MenuItem::focused = false
inherited

Definition at line 24 of file item.qh.

◆ fontSize

float XonoticCheckBox::fontSize = SKINFONTSIZE_NORMAL

Definition at line 7 of file checkbox.qh.

◆ forcePressed

bool Button::forcePressed = false
inherited

Definition at line 31 of file button.qh.

◆ image

string XonoticCheckBox::image = SKINGFX_CHECKBOX

Definition at line 8 of file checkbox.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.

◆ noValue

float XonoticCheckBox::noValue = 0

Definition at line 10 of file checkbox.qh.

◆ origin

vector Button::origin = '0 0 0'
inherited

Definition at line 40 of file button.qh.

◆ 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.

◆ pressed

float Button::pressed = 0
inherited

Definition at line 25 of file button.qh.

◆ pulse

bool Button::pulse = false
inherited

Definition at line 32 of file button.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.

◆ sendCvars

float XonoticCheckBox::sendCvars = 0

Definition at line 20 of file checkbox.qh.

◆ size

vector Button::size = '0 0 0'
inherited

Definition at line 41 of file button.qh.

◆ src2scale

float Button::src2scale = 1
inherited

Definition at line 21 of file button.qh.

◆ srcMulti

float CheckBox::srcMulti = 0
inherited

Definition at line 14 of file checkbox.qh.

◆ useDownAsChecked

float CheckBox::useDownAsChecked = 0
inherited

Definition at line 10 of file checkbox.qh.

◆ yesValue

float XonoticCheckBox::yesValue = 1

Definition at line 9 of file checkbox.qh.


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