CFx SDK Documentation  2022 SP0
FxUILabel.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 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 };
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
QIcon CFxUIIcon
Definition: FxUIObject.h:62
QPixmap CFxUIPixmap
Definition: FxUIObject.h:63
QSize CFxUISize
Definition: FxUIObject.h:47
void setBoldText(bool bBold)
void setWordWrap(bool bWordWrap)
void setBuddy(CFxUIBaseView *widget)
void setItalic(int bItalic)
void setTextSelectable(bool bSelectable)
void setFontSize(int px)
bool wordWrap() const
void setPixmap(const CFxUIPixmap &pixmap)
void setTextAlignment(TextAlignment iAlignment)
bool isTextSelectable() const
CFxUIString text() const
void setElideTextEnabled(const bool &bElided)
void setIconSize(const CFxUISize &size)
void setText(const CFxUIString &str)
void clear()
void setIcon(const CFxUIIcon &icon)
GLsizeiptr size
Definition: gles2_ext.h:182