Xonotic
Button Class Reference
+ Inheritance diagram for Button:
+ Collaboration diagram for Button:

Public Member Functions

 ATTRIB (Label, text, string)
 
 ATTRIB (Label, currentText, string)
 
 ATTRIB (Button, onClick, void(entity, entity))
 
 ATTRIB (Button, onClickEntity, entity)
 
 ATTRIB (Button, src, string)
 
 ATTRIB (Button, srcSuffix, string)
 
 ATTRIB (Button, src2, string)
 
 ATTRIB (MenuItem, parent, entity)
 
 ATTRIB (Label, textEntity, entity)
 
 ATTRIB (Button, applyButton, entity)
 
 ATTRIB (MenuItem, tooltip, string)
 
virtual void Button ::configureButton ()
 
virtual void Button ::draw ()
 
virtual void Button ::keyDown ()
 
virtual void Button ::mouseDrag ()
 
virtual void Button ::mousePress ()
 
virtual void Button ::mouseRelease ()
 
virtual void Button ::playClickSound ()
 
virtual void Button ::resizeNotify ()
 
virtual void Button ::showNotify ()
 
virtual void Label ::configureLabel ()
 
virtual void Label ::draw ()
 
virtual void Label ::recalcPositionWithText ()
 
virtual void Label ::resizeNotify ()
 
virtual void Label ::setText ()
 
virtual void Label ::toString ()
 
virtual void MenuItem ::destroy ()
 
virtual void MenuItem ::draw ()
 
virtual void MenuItem ::focusEnter ()
 
virtual void MenuItem ::focusLeave ()
 
virtual void MenuItem ::hideNotify ()
 
virtual void MenuItem ::keyDown ()
 
virtual void MenuItem ::keyUp ()
 
virtual void MenuItem ::mouseDrag ()
 
virtual void MenuItem ::mouseMove ()
 
virtual void MenuItem ::mousePress ()
 
virtual void MenuItem ::mouseRelease ()
 
virtual void MenuItem ::relinquishFocus ()
 
virtual void MenuItem ::resizeNotify ()
 
virtual void MenuItem ::showNotify ()
 
virtual void MenuItem ::toString ()
 

Public Attributes

float align = 0.5
 
float allowColors = 0
 
float allowCut = 0
 
float allowFocusSound = 1
 
float allowWrap = 0
 
float alpha = 0.7
 
float alpha2 = 1
 
float buttonLeftOfText = 0
 
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
 
float focusable = 1
 
float focused = 0
 
float fontSize = 8
 
float forcePressed = 0
 
float isBold = 0
 
float keepspaceLeft = 0
 
float keepspaceRight = 0
 
float marginLeft = 0
 
float marginRight = 0
 
vector origin = '0 0 0'
 
float overrideCondenseFactor = 0
 
vector overrideRealOrigin = '0 0 0'
 
float preferredFocusPriority = 0
 
float pressed = 0
 
vector realFontSize = '0 0 0'
 
vector realOrigin = '0 0 0'
 
float recalcPos = 0
 
vector size = '0 0 0'
 
float src2scale = 1
 
float srcMulti = 1
 

Detailed Description

Definition at line 6 of file button.qh.

Member Function Documentation

◆ ATTRIB() [1/11]

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

◆ ATTRIB() [2/11]

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

◆ ATTRIB() [3/11]

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

◆ ATTRIB() [4/11]

Button::ATTRIB ( Button  ,
onClickEntity  ,
entity   
)

◆ ATTRIB() [5/11]

Button::ATTRIB ( Button  ,
src  ,
string   
)

◆ ATTRIB() [6/11]

Button::ATTRIB ( Button  ,
srcSuffix  ,
string   
)

◆ ATTRIB() [7/11]

Button::ATTRIB ( Button  ,
src2  ,
string   
)

◆ ATTRIB() [8/11]

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

◆ ATTRIB() [9/11]

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

◆ ATTRIB() [10/11]

Button::ATTRIB ( Button  ,
applyButton  ,
entity   
)

◆ ATTRIB() [11/11]

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

◆ Button ::configureButton()

virtual void Button::Button ::configureButton ( )
virtual

◆ Button ::draw()

virtual void Button::Button ::draw ( )
virtual

◆ Button ::keyDown()

virtual void Button::Button ::keyDown ( )
virtual

◆ Button ::mouseDrag()

virtual void Button::Button ::mouseDrag ( )
virtual

◆ Button ::mousePress()

virtual void Button::Button ::mousePress ( )
virtual

◆ Button ::mouseRelease()

virtual void Button::Button ::mouseRelease ( )
virtual

◆ Button ::playClickSound()

virtual void Button::Button ::playClickSound ( )
virtual

◆ Button ::resizeNotify()

virtual void Button::Button ::resizeNotify ( )
virtual

◆ Button ::showNotify()

virtual void Button::Button ::showNotify ( )
virtual

◆ Label ::configureLabel()

virtual void Label::Label ::configureLabel ( )
virtualinherited

◆ Label ::draw()

virtual void Label::Label ::draw ( )
virtualinherited

◆ Label ::recalcPositionWithText()

virtual void Label::Label ::recalcPositionWithText ( )
virtualinherited

◆ Label ::resizeNotify()

virtual void Label::Label ::resizeNotify ( )
virtualinherited

◆ Label ::setText()

virtual void Label::Label ::setText ( )
virtualinherited

◆ Label ::toString()

virtual void Label::Label ::toString ( )
virtualinherited

◆ MenuItem ::destroy()

virtual void MenuItem::MenuItem ::destroy ( )
virtualinherited

◆ MenuItem ::draw()

virtual void MenuItem::MenuItem ::draw ( )
virtualinherited

◆ MenuItem ::focusEnter()

virtual void MenuItem::MenuItem ::focusEnter ( )
virtualinherited

◆ MenuItem ::focusLeave()

virtual void MenuItem::MenuItem ::focusLeave ( )
virtualinherited

◆ MenuItem ::hideNotify()

virtual void MenuItem::MenuItem ::hideNotify ( )
virtualinherited

◆ MenuItem ::keyDown()

virtual void MenuItem::MenuItem ::keyDown ( )
virtualinherited

◆ MenuItem ::keyUp()

virtual void MenuItem::MenuItem ::keyUp ( )
virtualinherited

◆ MenuItem ::mouseDrag()

virtual void MenuItem::MenuItem ::mouseDrag ( )
virtualinherited

◆ MenuItem ::mouseMove()

virtual void MenuItem::MenuItem ::mouseMove ( )
virtualinherited

◆ MenuItem ::mousePress()

virtual void MenuItem::MenuItem ::mousePress ( )
virtualinherited

◆ MenuItem ::mouseRelease()

virtual void MenuItem::MenuItem ::mouseRelease ( )
virtualinherited

◆ MenuItem ::relinquishFocus()

virtual void MenuItem::MenuItem ::relinquishFocus ( )
virtualinherited

◆ MenuItem ::resizeNotify()

virtual void MenuItem::MenuItem ::resizeNotify ( )
virtualinherited

◆ MenuItem ::showNotify()

virtual void MenuItem::MenuItem ::showNotify ( )
virtualinherited

◆ MenuItem ::toString()

virtual void MenuItem::MenuItem ::toString ( )
virtualinherited

Member Data Documentation

◆ align

float Label::align = 0.5
inherited

Definition at line 15 of file label.qh.

◆ allowColors

float Label::allowColors = 0
inherited

Definition at line 17 of file label.qh.

◆ allowCut

float Label::allowCut = 0
inherited

Definition at line 16 of file label.qh.

◆ allowFocusSound

float Button::allowFocusSound = 1

Definition at line 25 of file button.qh.

◆ allowWrap

float Label::allowWrap = 0
inherited

Definition at line 29 of file label.qh.

◆ alpha

float Label::alpha = 0.7
inherited

Definition at line 24 of file label.qh.

◆ alpha2

float Button::alpha2 = 1

Definition at line 38 of file button.qh.

◆ buttonLeftOfText

float Button::buttonLeftOfText = 0

Definition at line 23 of file button.qh.

◆ clickTime

float Button::clickTime = 0

Definition at line 27 of file button.qh.

◆ color

vector Button::color = '1 1 1'

Definition at line 33 of file button.qh.

◆ color2

vector Button::color2 = '1 1 1'

Definition at line 37 of file button.qh.

◆ colorC

vector Button::colorC = '1 1 1'

Definition at line 34 of file button.qh.

◆ colorD

vector Button::colorD = '1 1 1'

Definition at line 36 of file button.qh.

◆ colorF

vector Button::colorF = '1 1 1'

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 31 of file label.qh.

◆ disabled

float Button::disabled = 0

Definition at line 30 of file button.qh.

◆ disabledAlpha

float Button::disabledAlpha = 0.3

Definition at line 31 of file button.qh.

◆ disableOnClick

bool Button::disableOnClick = false

Definition at line 29 of file button.qh.

◆ focusable

float Button::focusable = 1

Definition at line 24 of file button.qh.

◆ focused

float MenuItem::focused = 0
inherited

Definition at line 24 of file item.qh.

◆ fontSize

float Label::fontSize = 8
inherited

Definition at line 14 of file label.qh.

◆ forcePressed

float Button::forcePressed = 0

Definition at line 32 of file button.qh.

◆ isBold

float Label::isBold = 0
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'

Definition at line 40 of file button.qh.

◆ overrideCondenseFactor

float Label::overrideCondenseFactor = 0
inherited

Definition at line 33 of file label.qh.

◆ overrideRealOrigin

vector Label::overrideRealOrigin = '0 0 0'
inherited

Definition at line 32 of file label.qh.

◆ preferredFocusPriority

float MenuItem::preferredFocusPriority = 0
inherited

Definition at line 28 of file item.qh.

◆ pressed

float Button::pressed = 0

Definition at line 26 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

float Label::recalcPos = 0
inherited

Definition at line 30 of file label.qh.

◆ size

vector Button::size = '0 0 0'

Definition at line 41 of file button.qh.

◆ src2scale

float Button::src2scale = 1

Definition at line 21 of file button.qh.

◆ srcMulti

float Button::srcMulti = 1

Definition at line 22 of file button.qh.


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