DayZ 1.24
Loading...
Searching...
No Matches
CrossHair Class Reference
Collaboration diagram for CrossHair:
[legend]

Protected Member Functions

void CrossHair (Widget w)
 
void ~CrossHair ()
 
string GetName ()
 
bool IsCurrent ()
 
bool IsShown ()
 
void Show ()
 
void Hide ()
 
Widget GetWidget ()
 

Protected Attributes

string m_Name
 
bool m_Shown
 
bool m_Current
 
Widget m_Widget
 

Detailed Description

Definition at line 1 of file CrossHairSelector.c.

Constructor & Destructor Documentation

◆ CrossHair()

void CrossHair::CrossHair ( Widget w)
inlineprotected

Definition at line 9 of file CrossHairSelector.c.

10 {
11 m_Widget = w;
12 m_Name = w.GetName();
13 m_Shown = true;
14 m_Current = false;
15 }

References m_Current, m_Name, m_Shown, and m_Widget.

◆ ~CrossHair()

void CrossHair::~CrossHair ( )
inlineprotected

Definition at line 17 of file CrossHairSelector.c.

17{}

Member Function Documentation

◆ GetName()

string CrossHair::GetName ( )
inlineprotected

Definition at line 19 of file CrossHairSelector.c.

20 {
21 return m_Name;
22 }

References m_Name.

◆ GetWidget()

Widget CrossHair::GetWidget ( )
inlineprotected

Definition at line 48 of file CrossHairSelector.c.

49 {
50 return m_Widget;
51 }

References m_Widget.

◆ Hide()

void CrossHair::Hide ( )
inlineprotected

Definition at line 41 of file CrossHairSelector.c.

42 {
43 m_Shown = true;
44 m_Current = false;
45 m_Widget.Show(false);
46 }

References m_Current, m_Shown, and m_Widget.

Referenced by ShowCrossHair().

◆ IsCurrent()

bool CrossHair::IsCurrent ( )
inlineprotected

Definition at line 24 of file CrossHairSelector.c.

25 {
26 return m_Current;
27 }

References m_Current.

◆ IsShown()

bool CrossHair::IsShown ( )
inlineprotected

Definition at line 29 of file CrossHairSelector.c.

30 {
31 return m_Shown;
32 }

References m_Shown.

◆ Show()

void CrossHair::Show ( )
inlineprotected

Definition at line 34 of file CrossHairSelector.c.

35 {
36 m_Shown = false;
37 m_Current = true;
38 m_Widget.Show(true);
39 }

References m_Current, m_Shown, and m_Widget.

Member Data Documentation

◆ m_Current

bool CrossHair::m_Current
protected

Definition at line 5 of file CrossHairSelector.c.

Referenced by CrossHair(), Hide(), IsCurrent(), and Show().

◆ m_Name

string CrossHair::m_Name
protected

Definition at line 3 of file CrossHairSelector.c.

Referenced by CrossHair(), and GetName().

◆ m_Shown

bool CrossHair::m_Shown
protected

Definition at line 4 of file CrossHairSelector.c.

Referenced by CrossHair(), Hide(), IsShown(), and Show().

◆ m_Widget

Widget CrossHair::m_Widget
protected

Definition at line 7 of file CrossHairSelector.c.

Referenced by CrossHair(), GetWidget(), Hide(), and Show().


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