CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxUILabel.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 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
21class QString;
22
28{
29public:
31 explicit CFxUILabel();
32
35
36
42 void setIcon( const CFxUIIcon & icon );
43
49 void setPixmap( const CFxUIPixmap &pixmap );
50
56 void setResourceImage( const QString& path );
57
63 void setIconSize( const CFxUISize &size );
64
71
77 void setText( const CFxUIString& str );
78 void setBuddy( CFxUIBaseView* widget );
84 void setBoldText( bool bBold );
85
91 void setFontSize( int px );
92
98 void setItalic( int bItalic );
99
105 bool wordWrap() const;
106
112 void setWordWrap( bool bWordWrap );
113
117 void clear();
118
124 void setTextAlignment( TextAlignment iAlignment );
125
131 void setTextSelectable( bool bSelectable );
132
138 bool isTextSelectable() const;
139
140 void setElideTextEnabled( const bool& bElided );
141
142 //...
143};
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
QIcon CFxUIIcon
Definition: FxUIObject.h:63
QPixmap CFxUIPixmap
Definition: FxUIObject.h:64
QSize CFxUISize
Definition: FxUIObject.h:47
void setBoldText(bool bBold)
void setWordWrap(bool bWordWrap)
void setBuddy(CFxUIBaseView *widget)
void setItalic(int bItalic)
void setResourceImage(const QString &path)
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