ReactOS 0.4.16-dev-401-g45b008d
CicCaret Class Reference

#include <ciccaret.h>

Collaboration diagram for CicCaret:

Public Types

enum  { TIMER_ID = 0x4F83AF91 }
 

Public Member Functions

 CicCaret ()
 
virtual ~CicCaret ()
 
 operator HWND () const
 
void CreateCaret (HWND hWnd, SIZE size)
 
void DestroyCaret ()
 
void HideCaret ()
 
void InvertCaret ()
 
void OnTimer ()
 
void SetCaretPos (POINT pt)
 
void SetBlinking (BOOL bBlinking)
 

Protected Attributes

HWND m_hWnd
 
UINT m_uCaretBlinkTimerID
 
POINT m_pt
 
SIZE m_size
 
BOOL m_bCaretBlinking
 
BOOL m_bCaretVisible
 

Detailed Description

Definition at line 10 of file ciccaret.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TIMER_ID 

Definition at line 21 of file ciccaret.h.

21{ TIMER_ID = 0x4F83AF91 };
@ TIMER_ID
Definition: ciccaret.h:21

Constructor & Destructor Documentation

◆ CicCaret()

CicCaret::CicCaret ( )

@implemented

Definition at line 14 of file ciccaret.cpp.

15{
19 m_pt.x = m_pt.y = 0;
20 m_size.cx = m_size.cy = 0;
21}
BOOL m_bCaretBlinking
Definition: ciccaret.h:17
POINT m_pt
Definition: ciccaret.h:15
UINT m_uCaretBlinkTimerID
Definition: ciccaret.h:14
BOOL m_bCaretVisible
Definition: ciccaret.h:18
SIZE m_size
Definition: ciccaret.h:16
#define FALSE
Definition: types.h:117
LONG cx
Definition: kdterminal.h:27
LONG cy
Definition: kdterminal.h:28
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48

◆ ~CicCaret()

CicCaret::~CicCaret ( )
virtual

@implemented

Definition at line 26 of file ciccaret.cpp.

27{
28 HideCaret();
31}
HWND m_hWnd
Definition: ciccaret.h:13
void HideCaret()
Definition: ciccaret.cpp:57
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)

Member Function Documentation

◆ CreateCaret()

void CicCaret::CreateCaret ( HWND  hWnd,
SIZE  size 
)

@implemented

Definition at line 36 of file ciccaret.cpp.

37{
38 m_hWnd = hWnd;
39 m_size = size;
40 if (::IsWindow(hWnd))
42}
HWND hWnd
Definition: settings.c:17
#define NULL
Definition: types.h:112
GLsizeiptr size
Definition: glext.h:5919
BOOL WINAPI IsWindow(_In_opt_ HWND)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
UINT WINAPI GetCaretBlinkTime(void)
Definition: ntwrapper.h:166

Referenced by UIComposition::CreateCompositionWindow().

◆ DestroyCaret()

void CicCaret::DestroyCaret ( )

@implemented

Definition at line 47 of file ciccaret.cpp.

Referenced by UIComposition::DestroyCompositionWindow().

◆ HideCaret()

void CicCaret::HideCaret ( )

@implemented

Definition at line 57 of file ciccaret.cpp.

58{
60 {
63 }
65}
void InvertCaret()
Definition: ciccaret.cpp:70

Referenced by DestroyCaret(), UIComposition::OnImeSetContextAfter(), and ~CicCaret().

◆ InvertCaret()

void CicCaret::InvertCaret ( )

@implemented

Definition at line 70 of file ciccaret.cpp.

71{
75}
static HDC hDC
Definition: 3dtext.c:33
static HDC
Definition: imagelist.c:88
#define DSTINVERT
Definition: wingdi.h:327
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

Referenced by HideCaret(), OnTimer(), and SetCaretPos().

◆ OnTimer()

void CicCaret::OnTimer ( )

@implemented

Definition at line 80 of file ciccaret.cpp.

81{
83 {
86 }
87}

Referenced by UIComposition::OnTimer().

◆ operator HWND()

CicCaret::operator HWND ( ) const
inline

Definition at line 24 of file ciccaret.h.

24{ return m_hWnd; }

◆ SetBlinking()

void CicCaret::SetBlinking ( BOOL  bBlinking)

@implemented

Definition at line 107 of file ciccaret.cpp.

108{
109 m_bCaretBlinking = bBlinking;
110}

◆ SetCaretPos()

void CicCaret::SetCaretPos ( POINT  pt)

@implemented

Definition at line 92 of file ciccaret.cpp.

93{
94 BOOL bCaretVisible = m_bCaretVisible;
95 if (bCaretVisible)
97
98 m_pt = pt;
99
100 if (bCaretVisible)
101 InvertCaret();
102}
#define pt(x, y)
Definition: drawing.c:79
unsigned int BOOL
Definition: ntddk_ex.h:94

Member Data Documentation

◆ m_bCaretBlinking

BOOL CicCaret::m_bCaretBlinking
protected

Definition at line 17 of file ciccaret.h.

Referenced by CicCaret(), HideCaret(), OnTimer(), and SetBlinking().

◆ m_bCaretVisible

BOOL CicCaret::m_bCaretVisible
protected

Definition at line 18 of file ciccaret.h.

Referenced by CicCaret(), HideCaret(), OnTimer(), and SetCaretPos().

◆ m_hWnd

HWND CicCaret::m_hWnd
protected

Definition at line 13 of file ciccaret.h.

Referenced by CreateCaret(), DestroyCaret(), InvertCaret(), operator HWND(), and ~CicCaret().

◆ m_pt

POINT CicCaret::m_pt
protected

Definition at line 15 of file ciccaret.h.

Referenced by CicCaret(), InvertCaret(), and SetCaretPos().

◆ m_size

SIZE CicCaret::m_size
protected

Definition at line 16 of file ciccaret.h.

Referenced by CicCaret(), CreateCaret(), and InvertCaret().

◆ m_uCaretBlinkTimerID

UINT CicCaret::m_uCaretBlinkTimerID
protected

Definition at line 14 of file ciccaret.h.

Referenced by CicCaret(), CreateCaret(), DestroyCaret(), and ~CicCaret().


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