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

#include <WidgetScripts.h>

Inheritance diagram for ScrollBarContainer:
ScriptedWidgetEventHandler

Private Member Functions

void  ~ScrollBarContainer ()
 
void  Update ()
 
void  OnWidgetScriptInit (Widget w)
 
protected void  StopScrolling ()
 
protected void  UpdateScroll (int mouse_x, int mouse_y, bool is_dragging)
 
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  OnResize (Widget w, int x, int y)
 
bool  OnUpdate (Widget w)
 

Private Attributes

protected Widget  Content
 
protected Widget  ScrollBar
 
protected Widget  Scroller
 
protected Widget  m_root
 
const int  WHEEL_STEP = 20
 
protected float  m_root_height
 
protected float  m_content_height
 
protected float  m_position
 
protected bool  m_scrolling
 
protected float  m_scrolling_start_pos
 
protected int  m_scrolling_mouse_pos
 

Constructor & Destructor Documentation

void ScrollBarContainer::~ScrollBarContainer ( )
private

References CGame::GetDragQueue(), and GetGame().

Member Function Documentation

void ScrollBarContainer::Update ( )
private
void ScrollBarContainer::OnWidgetScriptInit ( Widget  w )
private
void ScrollBarContainer::StopScrolling ( )
private
void ScrollBarContainer::UpdateScroll ( int  mouse_x,
int  mouse_y,
bool  is_dragging 
)
private
bool ScrollBarContainer::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
private
bool ScrollBarContainer::OnMouseButtonUp ( Widget  w,
int  x,
int  y,
int  button 
)
private

References StopScrolling().

bool ScrollBarContainer::OnMouseWheel ( Widget  w,
int  x,
int  y,
int  wheel 
)
private
bool ScrollBarContainer::OnResize ( Widget  w,
int  x,
int  y 
)
private

References Update().

bool ScrollBarContainer::OnUpdate ( Widget  w )
private

References Update().

Member Data Documentation

protected Widget ScrollBarContainer::Content
private

Referenced by Update().

protected Widget ScrollBarContainer::ScrollBar
private

Referenced by Update().

protected Widget ScrollBarContainer::Scroller
private

Referenced by OnMouseButtonDown(), and Update().

protected Widget ScrollBarContainer::m_root
private

Referenced by OnWidgetScriptInit(), and Update().

const int ScrollBarContainer::WHEEL_STEP = 20
private

Referenced by OnMouseWheel().

protected float ScrollBarContainer::m_root_height
private

Referenced by OnMouseWheel(), Update(), and UpdateScroll().

protected float ScrollBarContainer::m_content_height
private

Referenced by OnMouseWheel(), Update(), and UpdateScroll().

protected float ScrollBarContainer::m_position
private
protected bool ScrollBarContainer::m_scrolling
private
protected float ScrollBarContainer::m_scrolling_start_pos
private

Referenced by OnMouseButtonDown(), and UpdateScroll().

protected int ScrollBarContainer::m_scrolling_mouse_pos
private

Referenced by OnMouseButtonDown(), and UpdateScroll().


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