DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
ContextMenu Class Reference

#include <ContextMenu.h>

Inheritance diagram for ContextMenu:
ScriptedWidgetEventHandler

Private Member Functions

void  ContextMenu ()
 
void  ~ContextMenu ()
 
void  Init (Widget layoutRoot)
 
void  Show (int x, int y)
 
void  Hide ()
 
bool  IsVisible ()
 
void  Add (string label, class obj, string fn_name, Param params=NULL)
 
void  Remove (int index)
 
int  Count ()
 
void  Clear ()
 
bool  OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool  OnMouseLeave (Widget w, Widget enterW, int x, int y)
 

Private Attributes

const int  ITEMS_COUNT = 20
 
private Widget  m_context_menu_root_widget
 
private Widget  m_context_menu_panel_widget
 
private autoptr array< CallQueueContext m_commands
 
private int  m_max_item_width
 
private int  m_count
 

Constructor & Destructor Documentation

void ContextMenu::ContextMenu ( )
private

References m_commands, and m_count.

void ContextMenu::~ContextMenu ( )
private

Member Function Documentation

void ContextMenu::Init ( Widget  layoutRoot )
private
void ContextMenu::Show ( int  x,
int  y 
)
private
void ContextMenu::Hide ( )
private
bool ContextMenu::IsVisible ( )
private
void ContextMenu::Add ( string  label,
class obj  ,
string  fn_name,
Param  params = NULL 
)
private
void ContextMenu::Remove ( int  index )
private
int ContextMenu::Count ( )
private

References m_commands.

Referenced by Add(), and InventoryManager::UpdateEntityActions().

void ContextMenu::Clear ( )
private
bool ContextMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
private
bool ContextMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
private

Member Data Documentation

const int ContextMenu::ITEMS_COUNT = 20
private

Referenced by Clear().

private Widget ContextMenu::m_context_menu_root_widget
private
private Widget ContextMenu::m_context_menu_panel_widget
private

Referenced by Init(), and OnMouseLeave().

private autoptr array<CallQueueContext> ContextMenu::m_commands
private
private int ContextMenu::m_max_item_width
private

Referenced by Add(), Clear(), and Show().

private int ContextMenu::m_count
private

Referenced by Add(), Clear(), ContextMenu(), Remove(), and Show().


The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)