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

Private Member Functions

void UIScriptedWindow (int id)
 
void ~UIScriptedWindow ()
 
Widget GetWidgetRoot ()
 
Widget Init ()
 
void ShowWindow ()
 
void HideWindow ()
 
void CloseWindow ()
 
bool OnClick (Widget w, int x, int y, int button)
 
bool OnModalResult (Widget w, int x, int y, int code, int result)
 
bool OnDoubleClick (Widget w, int x, int y, int button)
 
bool OnSelect (Widget w, int x, int y)
 
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool OnFocus (Widget w, int x, int y)
 
bool OnFocusLost (Widget w, int x, int y)
 
bool OnMouseEnter (Widget w, int x, int y)
 
bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
bool OnController (Widget w, int control, int value)
 
bool OnKeyDown (Widget w, int x, int y, int key)
 
bool OnKeyUp (Widget w, int x, int y, int key)
 
bool OnKeyPress (Widget w, int x, int y, int key)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
bool OnDrag (Widget w, int x, int y)
 
bool OnDragging (Widget w, int x, int y, Widget reciever)
 
bool OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
bool OnDrop (Widget w, int x, int y, Widget reciever)
 
bool OnDropReceived (Widget w, int x, int y, Widget reciever)
 
bool OnEvent (EventType eventType, Widget target, int parameter0, int parameter1)
 

Static Private Member Functions

static void AddToActiveWindows (int id, UIScriptedWindow window)
 
static void RemoveFromActiveWindows (int id)
 
static UIScriptedWindow GetWindow (int id)
 
static map< int, UIScriptedWindowGetActiveWindows ()
 

Private Attributes

Widget m_WgtRoot
 
int m_Id
 

Static Private Attributes

static ref map< int, UIScriptedWindowm_ActiveWindows
 

Detailed Description

Definition at line 1 of file UIScriptedWindow.c.

Constructor & Destructor Documentation

◆ UIScriptedWindow()

void UIScriptedWindow::UIScriptedWindow ( int id)
inlineprivate

Definition at line 38 of file UIScriptedWindow.c.

39 {
40 m_Id = id;
41 }

References m_Id.

◆ ~UIScriptedWindow()

void UIScriptedWindow::~UIScriptedWindow ( )
inlineprivate

Definition at line 43 of file UIScriptedWindow.c.

44 {
45 GetWidgetRoot().Show(false);
46 delete GetWidgetRoot();
47 }

References GetWidgetRoot().

Member Function Documentation

◆ AddToActiveWindows()

static void UIScriptedWindow::AddToActiveWindows ( int id,
UIScriptedWindow window )
inlinestaticprivate

Definition at line 9 of file UIScriptedWindow.c.

10 {
11 if (m_ActiveWindows == NULL)
13
14 m_ActiveWindows.Insert(id, window);
15 }
static ref map< int, UIScriptedWindow > m_ActiveWindows

References m_ActiveWindows.

Referenced by UIManager::OpenWindow().

◆ CloseWindow()

void UIScriptedWindow::CloseWindow ( )
inlineprivate

Definition at line 68 of file UIScriptedWindow.c.

69 {
70 GetGame().GetUIManager().CloseWindow(m_Id);
71 }
proto native CGame GetGame()

References GetGame(), and m_Id.

◆ GetActiveWindows()

◆ GetWidgetRoot()

Widget UIScriptedWindow::GetWidgetRoot ( )
inlineprivate

Definition at line 49 of file UIScriptedWindow.c.

50 {
51 return m_WgtRoot;
52 }

References m_WgtRoot.

Referenced by HideWindow(), ShowWindow(), and ~UIScriptedWindow().

◆ GetWindow()

static UIScriptedWindow UIScriptedWindow::GetWindow ( int id)
inlinestaticprivate

Definition at line 23 of file UIScriptedWindow.c.

24 {
26 return m_ActiveWindows.Get(id);
27
28 return NULL;
29 }

References m_ActiveWindows.

Referenced by UIManager::CloseWindow(), UIManager::IsWindowOpened(), and UIManager::OpenWindow().

◆ HideWindow()

void UIScriptedWindow::HideWindow ( )
inlineprivate

Definition at line 63 of file UIScriptedWindow.c.

64 {
65 GetWidgetRoot().Show(false);
66 }

References GetWidgetRoot().

◆ Init()

Widget UIScriptedWindow::Init ( )
inlineprivate

Definition at line 54 of file UIScriptedWindow.c.

55 {
56 }

◆ OnChange()

bool UIScriptedWindow::OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate

Definition at line 154 of file UIScriptedWindow.c.

155 {
156 return false;
157 }

◆ OnClick()

bool UIScriptedWindow::OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 74 of file UIScriptedWindow.c.

75 {
76 return false;
77 }

◆ OnController()

bool UIScriptedWindow::OnController ( Widget w,
int control,
int value )
inlineprivate

Definition at line 134 of file UIScriptedWindow.c.

135 {
136 return false;
137 }

◆ OnDoubleClick()

bool UIScriptedWindow::OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 84 of file UIScriptedWindow.c.

85 {
86 return false;
87 }

◆ OnDrag()

bool UIScriptedWindow::OnDrag ( Widget w,
int x,
int y )
inlineprivate

Definition at line 159 of file UIScriptedWindow.c.

160 {
161 return false;
162 }

◆ OnDragging()

bool UIScriptedWindow::OnDragging ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 164 of file UIScriptedWindow.c.

165 {
166 return false;
167 }

◆ OnDraggingOver()

bool UIScriptedWindow::OnDraggingOver ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 169 of file UIScriptedWindow.c.

170 {
171 return false;
172 }

◆ OnDrop()

bool UIScriptedWindow::OnDrop ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 174 of file UIScriptedWindow.c.

175 {
176 return false;
177 }

◆ OnDropReceived()

bool UIScriptedWindow::OnDropReceived ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 179 of file UIScriptedWindow.c.

180 {
181 return false;
182 }

◆ OnEvent()

bool UIScriptedWindow::OnEvent ( EventType eventType,
Widget target,
int parameter0,
int parameter1 )
inlineprivate

Definition at line 184 of file UIScriptedWindow.c.

185 {
186 return false;
187 }

◆ OnFocus()

bool UIScriptedWindow::OnFocus ( Widget w,
int x,
int y )
inlineprivate

Definition at line 99 of file UIScriptedWindow.c.

100 {
101 return false;
102 }

◆ OnFocusLost()

bool UIScriptedWindow::OnFocusLost ( Widget w,
int x,
int y )
inlineprivate

Definition at line 104 of file UIScriptedWindow.c.

105 {
106 return false;
107 }

◆ OnItemSelected()

bool UIScriptedWindow::OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprivate

Definition at line 94 of file UIScriptedWindow.c.

95 {
96 return false;
97 }

◆ OnKeyDown()

bool UIScriptedWindow::OnKeyDown ( Widget w,
int x,
int y,
int key )
inlineprivate

Definition at line 139 of file UIScriptedWindow.c.

140 {
141 return false;
142 }

◆ OnKeyPress()

bool UIScriptedWindow::OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprivate

Definition at line 149 of file UIScriptedWindow.c.

150 {
151 return false;
152 }

◆ OnKeyUp()

bool UIScriptedWindow::OnKeyUp ( Widget w,
int x,
int y,
int key )
inlineprivate

Definition at line 144 of file UIScriptedWindow.c.

145 {
146 return false;
147 }

◆ OnModalResult()

bool UIScriptedWindow::OnModalResult ( Widget w,
int x,
int y,
int code,
int result )
inlineprivate

Definition at line 79 of file UIScriptedWindow.c.

80 {
81 return false;
82 }

◆ OnMouseButtonDown()

bool UIScriptedWindow::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 119 of file UIScriptedWindow.c.

120 {
121 return false;
122 }

◆ OnMouseButtonUp()

bool UIScriptedWindow::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 124 of file UIScriptedWindow.c.

125 {
126 return false;
127 }

◆ OnMouseEnter()

bool UIScriptedWindow::OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate

Definition at line 109 of file UIScriptedWindow.c.

110 {
111 return false;
112 }

◆ OnMouseLeave()

bool UIScriptedWindow::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate

Definition at line 114 of file UIScriptedWindow.c.

115 {
116 return false;
117 }

◆ OnMouseWheel()

bool UIScriptedWindow::OnMouseWheel ( Widget w,
int x,
int y,
int wheel )
inlineprivate

Definition at line 129 of file UIScriptedWindow.c.

130 {
131 return false;
132 }

◆ OnSelect()

bool UIScriptedWindow::OnSelect ( Widget w,
int x,
int y )
inlineprivate

Definition at line 89 of file UIScriptedWindow.c.

90 {
91 return false;
92 }

◆ RemoveFromActiveWindows()

static void UIScriptedWindow::RemoveFromActiveWindows ( int id)
inlinestaticprivate

Definition at line 17 of file UIScriptedWindow.c.

18 {
20 m_ActiveWindows.Remove(id);
21 }

References m_ActiveWindows.

Referenced by UIManager::CloseWindow().

◆ ShowWindow()

void UIScriptedWindow::ShowWindow ( )
inlineprivate

Definition at line 58 of file UIScriptedWindow.c.

59 {
60 GetWidgetRoot().Show(true);
61 }

References GetWidgetRoot().

Member Data Documentation

◆ m_ActiveWindows

ref map<int, UIScriptedWindow> UIScriptedWindow::m_ActiveWindows
staticprivate

◆ m_Id

int UIScriptedWindow::m_Id
private

Definition at line 4 of file UIScriptedWindow.c.

Referenced by CloseWindow(), and UIScriptedWindow().

◆ m_WgtRoot

Widget UIScriptedWindow::m_WgtRoot
private

Definition at line 3 of file UIScriptedWindow.c.

Referenced by GetWidgetRoot().


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