ReactOS 0.4.15-dev-8349-g6f277e9
CModeBias Class Reference

#include <misc.h>

Collaboration diagram for CModeBias:

Public Member Functions

 CModeBias ()
 
GUID ConvertModeBias (LONG bias)
 @implemented
 
LONG ConvertModeBias (REFGUID guid)
 @implemented
 
void SetModeBias (REFGUID rguid)
 @implemented
 

Public Attributes

GUID m_guid
 

Detailed Description

Definition at line 62 of file misc.h.

Constructor & Destructor Documentation

◆ CModeBias()

CModeBias::CModeBias ( )
inline

Definition at line 67 of file misc.h.

67: m_guid(GUID_NULL) { }
GUID m_guid
Definition: misc.h:65
#define GUID_NULL
Definition: ks.h:106

Member Function Documentation

◆ ConvertModeBias() [1/2]

GUID CModeBias::ConvertModeBias ( LONG  bias)

@implemented

Definition at line 394 of file misc.cpp.

395{
396 const GUID *pguid = &GUID_NULL;
397 for (auto& item : g_ModeBiasMap)
398 {
399 if (item.m_bias == bias)
400 {
401 pguid = &item.m_guid;
402 break;
403 }
404 }
405
406 return *pguid;
407}
static const MODEBIAS g_ModeBiasMap[]
Definition: misc.cpp:378
GLfloat bias
Definition: glext.h:7909
static ATOM item
Definition: dde.c:856

Referenced by CIMEUIWindowHandler::ImeUIMsImeModeBiasHandler().

◆ ConvertModeBias() [2/2]

LONG CModeBias::ConvertModeBias ( REFGUID  guid)

@implemented

Definition at line 410 of file misc.cpp.

411{
412 for (auto& item : g_ModeBiasMap)
413 {
414 if (IsEqualGUID(guid, item.m_guid))
415 return item.m_bias;
416 }
417 return 0;
418}
const GUID * guid
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147

◆ SetModeBias()

void CModeBias::SetModeBias ( REFGUID  rguid)

@implemented

Definition at line 388 of file misc.cpp.

389{
390 m_guid = rguid;
391}

Referenced by CIMEUIWindowHandler::ImeUIMsImeModeBiasHandler().

Member Data Documentation

◆ m_guid

GUID CModeBias::m_guid

Definition at line 65 of file misc.h.

Referenced by CIMEUIWindowHandler::ImeUIMsImeModeBiasHandler(), and SetModeBias().


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