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

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 (Button, applyButton, entity)
 
 ATTRIB (Label, textEntity, 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 ()
 
virtual void XonoticButton ::configureXonoticButton ()
 

Public Attributes

float align = 0.5
 
float allowColors = 0
 
float allowCut = 0
 
float allowFocusSound = 1
 
float allowWrap = 0
 
float alpha = SKINALPHA_TEXT
 
float alpha2 = 1
 
float buttonLeftOfText = 0
 
float clickTime = 0
 
vector color = SKINCOLOR_BUTTON_N
 
vector color2 = '1 1 1'
 
vector colorC = SKINCOLOR_BUTTON_C
 
vector colorD = SKINCOLOR_BUTTON_D
 
vector colorF = SKINCOLOR_BUTTON_F
 
vector colorL = SKINCOLOR_TEXT
 
float condenseFactor = 1
 
float disabled = 0
 
float disabledAlpha = SKINALPHA_DISABLED
 
bool disableOnClick = false
 
float focusable = 1
 
float focused = 0
 
float fontSize = SKINFONTSIZE_NORMAL
 
float forcePressed = 0
 
string grayImage = SKINGFX_BUTTON_GRAY
 
string image = SKINGFX_BUTTON
 
float isBold = 0
 
float keepspaceLeft = 0
 
float keepspaceRight = 0
 
float marginLeft = SKINMARGIN_BUTTON
 
float marginRight = SKINMARGIN_BUTTON
 
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 4 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  
)
inherited

◆ ATTRIB() [4/11]

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

◆ ATTRIB() [5/11]

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

◆ ATTRIB() [6/11]

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

◆ ATTRIB() [7/11]

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

◆ ATTRIB() [8/11]

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

◆ ATTRIB() [9/11]

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

◆ ATTRIB() [10/11]

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

◆ ATTRIB() [11/11]

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

◆ Button ::configureButton()

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

◆ Button ::draw()

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

◆ Button ::keyDown()

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

◆ Button ::mouseDrag()

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

◆ Button ::mousePress()

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

◆ Button ::mouseRelease()

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

◆ Button ::playClickSound()

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

◆ Button ::resizeNotify()

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

◆ Button ::showNotify()

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

◆ 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

◆ XonoticButton ::configureXonoticButton()

virtual void XonoticButton::XonoticButton ::configureXonoticButton ( )
virtual

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
inherited

Definition at line 25 of file button.qh.

◆ allowWrap

float Label::allowWrap = 0
inherited

Definition at line 29 of file label.qh.

◆ alpha

float XonoticButton::alpha = SKINALPHA_TEXT

Definition at line 13 of file button.qh.

◆ alpha2

float Button::alpha2 = 1
inherited

Definition at line 38 of file button.qh.

◆ buttonLeftOfText

float Button::buttonLeftOfText = 0
inherited

Definition at line 23 of file button.qh.

◆ clickTime

float Button::clickTime = 0
inherited

Definition at line 27 of file button.qh.

◆ color

vector XonoticButton::color = SKINCOLOR_BUTTON_N

Definition at line 9 of file button.qh.

◆ color2

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

Definition at line 37 of file button.qh.

◆ colorC

vector XonoticButton::colorC = SKINCOLOR_BUTTON_C

Definition at line 10 of file button.qh.

◆ colorD

vector XonoticButton::colorD = SKINCOLOR_BUTTON_D

Definition at line 12 of file button.qh.

◆ colorF

vector XonoticButton::colorF = SKINCOLOR_BUTTON_F

Definition at line 11 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
inherited

Definition at line 30 of file button.qh.

◆ disabledAlpha

float XonoticButton::disabledAlpha = SKINALPHA_DISABLED

Definition at line 14 of file button.qh.

◆ disableOnClick

bool Button::disableOnClick = false
inherited

Definition at line 29 of file button.qh.

◆ focusable

float Button::focusable = 1
inherited

Definition at line 24 of file button.qh.

◆ focused

float MenuItem::focused = 0
inherited

Definition at line 24 of file item.qh.

◆ fontSize

float XonoticButton::fontSize = SKINFONTSIZE_NORMAL

Definition at line 6 of file button.qh.

◆ forcePressed

float Button::forcePressed = 0
inherited

Definition at line 32 of file button.qh.

◆ grayImage

string XonoticButton::grayImage = SKINGFX_BUTTON_GRAY

Definition at line 8 of file button.qh.

◆ image

string XonoticButton::image = SKINGFX_BUTTON

Definition at line 7 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 XonoticButton::marginLeft = SKINMARGIN_BUTTON

Definition at line 15 of file button.qh.

◆ marginRight

float XonoticButton::marginRight = SKINMARGIN_BUTTON

Definition at line 16 of file button.qh.

◆ origin

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

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
inherited

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'
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 Button::srcMulti = 1
inherited

Definition at line 22 of file button.qh.


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