LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
weld::ButtonPressRepeater Class Referencefinal

#include <weldutils.hxx>

Inheritance diagram for weld::ButtonPressRepeater:
[legend]
Collaboration diagram for weld::ButtonPressRepeater:
[legend]

Public Member Functions

 ButtonPressRepeater (weld::Button &rButton, const Link< Button &, void > &rLink, const Link< const CommandEvent &, void > &rContextLink=Link< const CommandEvent &, void >())
 
void Stop ()
 
bool IsModKeyPressed () const
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (MousePressHdl, const MouseEvent &, bool)
 
 DECL_DLLPRIVATE_LINK (MouseReleaseHdl, const MouseEvent &, bool)
 
 DECL_DLLPRIVATE_LINK (RepeatTimerHdl, Timer *, void)
 

Private Attributes

weld::Buttonm_rButton
 
AutoTimer m_aRepeat
 
const Link< Button &, void > m_aLink
 
const Link< const CommandEvent &, void > m_aContextLink
 
bool m_bModKey
 

Detailed Description

Definition at line 405 of file weldutils.hxx.

Constructor & Destructor Documentation

◆ ButtonPressRepeater()

weld::ButtonPressRepeater::ButtonPressRepeater ( weld::Button rButton,
const Link< Button &, void > &  rLink,
const Link< const CommandEvent &, void > &  rContextLink = Link<const CommandEvent&, void>() 
)

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK() [1/3]

weld::ButtonPressRepeater::DECL_DLLPRIVATE_LINK ( MousePressHdl  ,
const MouseEvent ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/3]

weld::ButtonPressRepeater::DECL_DLLPRIVATE_LINK ( MouseReleaseHdl  ,
const MouseEvent ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/3]

weld::ButtonPressRepeater::DECL_DLLPRIVATE_LINK ( RepeatTimerHdl  ,
Timer ,
void   
)
private

◆ IsModKeyPressed()

bool weld::ButtonPressRepeater::IsModKeyPressed ( ) const
inline

Definition at line 424 of file weldutils.hxx.

◆ Stop()

void weld::ButtonPressRepeater::Stop ( )
inline

Definition at line 423 of file weldutils.hxx.

References m_aRepeat, and Task::Stop().

Member Data Documentation

◆ m_aContextLink

const Link<const CommandEvent&, void> weld::ButtonPressRepeater::m_aContextLink
private

Definition at line 412 of file weldutils.hxx.

◆ m_aLink

const Link<Button&, void> weld::ButtonPressRepeater::m_aLink
private

Definition at line 411 of file weldutils.hxx.

◆ m_aRepeat

AutoTimer weld::ButtonPressRepeater::m_aRepeat
private

Definition at line 410 of file weldutils.hxx.

Referenced by ButtonPressRepeater().

◆ m_bModKey

bool weld::ButtonPressRepeater::m_bModKey
private

Definition at line 413 of file weldutils.hxx.

◆ m_rButton

weld::Button& weld::ButtonPressRepeater::m_rButton
private

Definition at line 409 of file weldutils.hxx.

Referenced by ButtonPressRepeater().


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