Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CFWL_Barcode Class Referencefinal

#include <cfwl_barcode.h>

+ Inheritance diagram for CFWL_Barcode:
+ Collaboration diagram for CFWL_Barcode:

Public Member Functions

 ~CFWL_Barcode () override
 
FWL_Type GetClassID () const override
 
void Update () override
 
void DrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
 
void OnProcessEvent (CFWL_Event *pEvent) override
 
void SetText (const WideString &wsText) override
 
void SetTextSkipNotify (const WideString &wsText) override
 
void SetType (BC_TYPE type)
 
bool IsProtectedType () const
 
void SetCharEncoding (BC_CHAR_ENCODING encoding)
 
void SetModuleHeight (int32_t height)
 
void SetModuleWidth (int32_t width)
 
void SetDataLength (int32_t dataLength)
 
void SetCalChecksum (bool calChecksum)
 
void SetPrintChecksum (bool printChecksum)
 
void SetTextLocation (BC_TEXT_LOC location)
 
void SetWideNarrowRatio (int8_t ratio)
 
void SetStartChar (char startChar)
 
void SetEndChar (char endChar)
 
void SetErrorCorrectionLevel (int32_t ecLevel)
 
- Public Member Functions inherited from CFWL_Edit
 ~CFWL_Edit () override
 
void PreFinalize () override
 
void Trace (cppgc::Visitor *visitor) const override
 
FWL_Type GetClassID () const override
 
CFX_RectF GetAutosizedWidgetRect () override
 
CFX_RectF GetWidgetRect () override
 
void Update () override
 
FWL_WidgetHit HitTest (const CFX_PointF &point) override
 
void SetStates (uint32_t dwStates) override
 
void DrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
 
void OnProcessMessage (CFWL_Message *pMessage) override
 
void OnProcessEvent (CFWL_Event *pEvent) override
 
void OnDrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
 
size_t GetTextLength () const
 
WideString GetText () const
 
void ClearText ()
 
void SelectAll ()
 
void ClearSelection ()
 
bool HasSelection () const
 
std::pair< size_t, size_t > GetSelection () const
 
int32_t GetLimit () const
 
void SetLimit (int32_t nLimit)
 
void SetAliasChar (wchar_t wAlias)
 
absl::optional< WideStringCopy ()
 
absl::optional< WideStringCut ()
 
bool Paste (const WideString &wsPaste)
 
bool Undo ()
 
bool Redo ()
 
bool CanUndo ()
 
bool CanRedo ()
 
void NotifyTextFull () override
 
void OnCaretChanged () override
 
void OnTextWillChange (CFDE_TextEditEngine::TextChange *change) override
 
void OnTextChanged () override
 
void OnSelChanged () override
 
bool OnValidate (const WideString &wsText) override
 
void SetScrollOffset (float fScrollOffset) override
 
- Public Member Functions inherited from CFWL_Widget
 ~CFWL_Widget () override
 
void Trace (cppgc::Visitor *visitor) const override
 
virtual bool IsForm () const
 
virtual CFX_RectF GetClientRect ()
 
virtual void ModifyStyleExts (uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
 
virtual void RemoveStates (uint32_t dwStates)
 
void OnProcessMessage (CFWL_Message *pMessage) override
 
void OnProcessEvent (CFWL_Event *pEvent) override
 
void InflateWidgetRect (CFX_RectF &rect)
 
void SetWidgetRect (const CFX_RectF &rect)
 
bool IsVisible () const
 
bool IsOverLapper () const
 
bool IsPopup () const
 
bool IsChild () const
 
CFWL_WidgetMgrGetWidgetMgr () const
 
CFWL_WidgetGetOuter () const
 
CFWL_WidgetGetOutmost () const
 
void ModifyStyles (uint32_t dwStylesAdded, uint32_t dwStylesRemoved)
 
uint32_t GetStyleExts () const
 
uint32_t GetStates () const
 
CFX_PointF TransformTo (CFWL_Widget *pWidget, const CFX_PointF &point)
 
CFX_Matrix GetMatrix () const
 
IFWL_ThemeProviderGetThemeProvider () const
 
void SetDelegate (IFWL_WidgetDelegate *delegate)
 
IFWL_WidgetDelegateGetDelegate ()
 
const IFWL_WidgetDelegateGetDelegate () const
 
CFWL_AppGetFWLApp () const
 
uint64_t GetEventKey () const
 
void SetEventKey (uint64_t key)
 
AdapterIfaceGetAdapterIface () const
 
void SetAdapterIface (AdapterIface *pItem)
 
void RepaintRect (const CFX_RectF &pRect)
 
- Public Member Functions inherited from IFWL_WidgetDelegate
virtual ~IFWL_WidgetDelegate ()=default
 
- Public Member Functions inherited from CFDE_TextEditEngine::Delegate
virtual ~Delegate ()=default
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CFWL_Edit
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CFWL_Widget
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Additional Inherited Members

- Protected Member Functions inherited from CFWL_Edit
 CFWL_Edit (CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
 
void ShowCaret (CFX_RectF *pRect)
 
void HideCaret (CFX_RectF *pRect)
 
const CFX_RectFGetRTClient () const
 
CFDE_TextEditEngineGetTxtEdtEngine ()
 
- Protected Member Functions inherited from CFWL_Widget
 CFWL_Widget (CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
 
bool IsEnabled () const
 
bool IsLocked () const
 
bool HasBorder () const
 
CFX_RectF GetEdgeRect () const
 
float GetCXBorderSize () const
 
float GetCYBorderSize () const
 
CFX_RectF GetRelativeRect () const
 
CFX_SizeF CalcTextSize (const WideString &wsText, bool bMultiLine)
 
void CalcTextRect (const WideString &wsText, const FDE_TextStyle &dwTTOStyles, FDE_TextAlignment iTTOAlign, CFX_RectF *pRect)
 
void SetGrab (bool bSet)
 
void UnregisterEventTarget ()
 
void DispatchEvent (CFWL_Event *pEvent)
 
void DrawBorder (CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)
 
- Protected Attributes inherited from CFWL_Widget
Properties m_Properties
 
CFX_RectF m_WidgetRect
 

Detailed Description

Definition at line 20 of file cfwl_barcode.h.

Constructor & Destructor Documentation

◆ ~CFWL_Barcode()

CFWL_Barcode::~CFWL_Barcode ( )
overridedefault

Member Function Documentation

◆ DrawWidget()

void CFWL_Barcode::DrawWidget ( CFGAS_GEGraphics * pGraphics,
const CFX_Matrix & matrix )
overridevirtual

Implements CFWL_Widget.

Definition at line 33 of file cfwl_barcode.cpp.

References CFX_Matrix::Concat(), CFWL_Edit::DrawWidget(), CFX_Matrix::e, CFX_Matrix::f, CFWL_Edit::GetRTClient(), CFWL_Widget::Properties::m_dwStates, and CFWL_Widget::m_Properties.

+ Here is the call graph for this function:

◆ GetClassID()

FWL_Type CFWL_Barcode::GetClassID ( ) const
overridevirtual

Implements CFWL_Widget.

Definition at line 21 of file cfwl_barcode.cpp.

References Barcode.

◆ IsProtectedType()

bool CFWL_Barcode::IsProtectedType ( ) const

Definition at line 76 of file cfwl_barcode.cpp.

References kDataMatrix, kPDF417, and kQRCode.

◆ OnProcessEvent()

void CFWL_Barcode::OnProcessEvent ( CFWL_Event * pEvent)
overridevirtual

Implements IFWL_WidgetDelegate.

Definition at line 85 of file cfwl_barcode.cpp.

References CFWL_Event::GetType(), CFWL_Edit::OnProcessEvent(), and CFWL_Event::TextWillChange.

+ Here is the call graph for this function:

◆ SetCalChecksum()

void CFWL_Barcode::SetCalChecksum ( bool calChecksum)

Definition at line 110 of file cfwl_barcode.cpp.

◆ SetCharEncoding()

void CFWL_Barcode::SetCharEncoding ( BC_CHAR_ENCODING encoding)

Definition at line 93 of file cfwl_barcode.cpp.

◆ SetDataLength()

void CFWL_Barcode::SetDataLength ( int32_t dataLength)

Definition at line 105 of file cfwl_barcode.cpp.

References CFWL_Edit::SetLimit().

+ Here is the call graph for this function:

◆ SetEndChar()

void CFWL_Barcode::SetEndChar ( char endChar)

Definition at line 130 of file cfwl_barcode.cpp.

◆ SetErrorCorrectionLevel()

void CFWL_Barcode::SetErrorCorrectionLevel ( int32_t ecLevel)

Definition at line 134 of file cfwl_barcode.cpp.

◆ SetModuleHeight()

void CFWL_Barcode::SetModuleHeight ( int32_t height)

Definition at line 97 of file cfwl_barcode.cpp.

◆ SetModuleWidth()

void CFWL_Barcode::SetModuleWidth ( int32_t width)

Definition at line 101 of file cfwl_barcode.cpp.

◆ SetPrintChecksum()

void CFWL_Barcode::SetPrintChecksum ( bool printChecksum)

Definition at line 114 of file cfwl_barcode.cpp.

◆ SetStartChar()

void CFWL_Barcode::SetStartChar ( char startChar)

Definition at line 126 of file cfwl_barcode.cpp.

◆ SetText()

void CFWL_Barcode::SetText ( const WideString & wsText)
overridevirtual

Reimplemented from CFWL_Edit.

Definition at line 64 of file cfwl_barcode.cpp.

References CFWL_Edit::SetText().

+ Here is the call graph for this function:

◆ SetTextLocation()

void CFWL_Barcode::SetTextLocation ( BC_TEXT_LOC location)

Definition at line 118 of file cfwl_barcode.cpp.

◆ SetTextSkipNotify()

void CFWL_Barcode::SetTextSkipNotify ( const WideString & wsText)
overridevirtual

Reimplemented from CFWL_Edit.

Definition at line 70 of file cfwl_barcode.cpp.

References CFWL_Edit::SetTextSkipNotify().

+ Here is the call graph for this function:

◆ SetType()

void CFWL_Barcode::SetType ( BC_TYPE type)

Definition at line 55 of file cfwl_barcode.cpp.

◆ SetWideNarrowRatio()

void CFWL_Barcode::SetWideNarrowRatio ( int8_t ratio)

Definition at line 122 of file cfwl_barcode.cpp.

◆ Update()

void CFWL_Barcode::Update ( )
overridevirtual

Implements CFWL_Widget.

Definition at line 25 of file cfwl_barcode.cpp.

References CFWL_Widget::IsLocked(), and CFWL_Edit::Update().

+ Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CFWL_Barcode::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 22 of file cfwl_barcode.h.


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