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

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)
void CheckBox_Click (entity me, entity other)
virtual void configureButton ()
virtual void configureCheckBox ()
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 playClickSound ()
virtual void recalcPositionWithText ()
virtual void relinquishFocus ()
virtual void resizeNotify ()
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 = 0.7
float alpha2 = 1
bool checked = false
float clickTime = 0
vector color = '1 1 1'
vector color2 = '1 1 1'
vector colorC = '1 1 1'
vector colorD = '1 1 1'
vector colorF = '1 1 1'
vector colorL = SKINCOLOR_TEXT
float condenseFactor = 1
float disabled = 0
float disabledAlpha = 0.3
bool disableOnClick = false
bool focusable = true
bool focused = false
float fontSize = 8
bool forcePressed = false
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
float pressed = 0
bool pulse = false
vector realFontSize = '0 0 0'
vector realOrigin = '0 0 0'
bool recalcPos = false
vector size = '0 0 0'
float src2scale = 1
float srcMulti = 0
float useDownAsChecked = 0

Detailed Description

Definition at line 4 of file checkbox.qh.

Member Function Documentation

◆ ATTRIB() [1/11]

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

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

◆ ATTRIB() [2/11]

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

◆ ATTRIB() [3/11]

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

References ATTRIB(), and entity().

◆ ATTRIB() [4/11]

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

References ATTRIB().

◆ ATTRIB() [5/11]

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

References ATTRIB().

◆ ATTRIB() [6/11]

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

References ATTRIB().

◆ ATTRIB() [7/11]

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

References ATTRIB().

◆ ATTRIB() [8/11]

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

References ATTRIB().

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

◆ ATTRIB() [9/11]

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

References ATTRIB(), and entity().

◆ ATTRIB() [10/11]

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

References entity(), and parent.

◆ ATTRIB() [11/11]

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

◆ CheckBox_Click()

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

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

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

Referenced by configureCheckBox().

◆ configureLabel()

virtual void Label::configureLabel ( )
virtualinherited

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

Referenced by configureLabel().

◆ destroy()

◆ draw()

virtual void CheckBox::draw ( )
virtual

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

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

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

◆ setChecked()

virtual void CheckBox::setChecked ( )
virtual

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

Reimplemented from Label.

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

Referenced by toString().

◆ void()

CheckBox::void ( entity ,
entity  )

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 Label::alpha = 0.7
inherited

Definition at line 24 of file label.qh.

◆ alpha2

float Button::alpha2 = 1
inherited

Definition at line 38 of file button.qh.

◆ checked

bool CheckBox::checked = false

Definition at line 11 of file checkbox.qh.

◆ clickTime

float Button::clickTime = 0
inherited

Definition at line 26 of file button.qh.

◆ color

vector Button::color = '1 1 1'
inherited

Definition at line 33 of file button.qh.

◆ color2

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

Definition at line 37 of file button.qh.

◆ colorC

vector Button::colorC = '1 1 1'
inherited

Definition at line 34 of file button.qh.

◆ colorD

vector Button::colorD = '1 1 1'
inherited

Definition at line 36 of file button.qh.

◆ colorF

vector Button::colorF = '1 1 1'
inherited

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

Definition at line 15 of file checkbox.qh.

◆ disabledAlpha

float Button::disabledAlpha = 0.3
inherited

Definition at line 30 of file button.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 Label::fontSize = 8
inherited

Definition at line 14 of file label.qh.

◆ forcePressed

bool Button::forcePressed = false
inherited

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

◆ 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

Definition at line 14 of file checkbox.qh.

◆ useDownAsChecked

float CheckBox::useDownAsChecked = 0

Definition at line 10 of file checkbox.qh.


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