CFx SDK Documentation  2020SP3
FxUILabel.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxUIBaseView.h"
20 
21 class QString;
22 
28 {
29 public:
31  explicit CFxUILabel();
32 
35 
36 
42  void setIcon( const CFxUIIcon & icon );
43 
49  void setPixmap( const CFxUIPixmap &pixmap );
50 
56  void setIconSize( const CFxUISize &size );
57 
63  CFxUIString text() const;
64 
70  void setText( const CFxUIString& str );
71  void setBuddy( CFxUIBaseView* widget );
77  void setBoldText( bool bBold );
78 
84  void setFontSize( int px );
85 
91  void setItalic( int bItalic );
92 
98  bool wordWrap() const;
99 
105  void setWordWrap( bool bWordWrap );
106 
110  void clear();
111 
117  void setTextAlignment( TextAlignment iAlignment );
118 
124  void setTextSelectable( bool bSelectable );
125 
131  bool isTextSelectable() const;
132 
133  void setElideTextEnabled( const bool& bElided );
134 
135  //...
136 };
CFxUILabel::wordWrap
bool wordWrap() const
FxUIBaseView.h
CFxUILabel::setBoldText
void setBoldText(bool bBold)
CFxUIBaseView::TextAlignment
TextAlignment
Definition: FxUIBaseView.h:37
CFxUIBaseView
Definition: FxUIBaseView.h:30
CFxUILabel::CFxUILabel
CFxUILabel()
CFxUILabel::isTextSelectable
bool isTextSelectable() const
CFxUILabel::setWordWrap
void setWordWrap(bool bWordWrap)
CFxUILabel::setPixmap
void setPixmap(const CFxUIPixmap &pixmap)
CFxUILabel::setItalic
void setItalic(int bItalic)
CFxUILabel::text
CFxUIString text() const
CFxUIIcon
QIcon CFxUIIcon
Definition: FxUIObject.h:60
size
GLsizeiptr size
Definition: gles2_ext.h:182
CFxUILabel::setText
void setText(const CFxUIString &str)
CFxUILabel::clear
void clear()
CFxUILabel
Definition: FxUILabel.h:28
CFxUISize
QSize CFxUISize
Definition: FxUIObject.h:45
CFxUILabel::~CFxUILabel
~CFxUILabel()
CFxUILabel::setTextAlignment
void setTextAlignment(TextAlignment iAlignment)
CFxUIString
QString CFxUIString
Definition: FxUIObject.h:46
CFxUILabel::setElideTextEnabled
void setElideTextEnabled(const bool &bElided)
COMMONUI_API
#define COMMONUI_API
Definition: FxCommonFramework.h:4
CFxUILabel::setIconSize
void setIconSize(const CFxUISize &size)
CFxUIPixmap
QPixmap CFxUIPixmap
Definition: FxUIObject.h:61
CFxUILabel::setFontSize
void setFontSize(int px)
CFxUILabel::setIcon
void setIcon(const CFxUIIcon &icon)
CFxUILabel::setTextSelectable
void setTextSelectable(bool bSelectable)
CFxUILabel::setBuddy
void setBuddy(CFxUIBaseView *widget)