CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUILabel.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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#include "../Core/FxUIIcon.h"
21
25
26class CFxUIPixmap;
27
29{
30public:
32 explicit CFxUILabel();
33
36
37
43 void setIcon( const CFxUIIcon & icon );
44
50 void setPixmap( const CFxUIPixmap &pixmap );
51
57 void setResourceImage( const CFxUIString& path );
58
64 void setIconSize( const CFxUISize &size );
65
72
78 void setText( const CFxUIString& str );
79 void setBuddy( CFxUIBaseView* widget );
85 void setBoldText( bool bBold );
86
92 void setFontSize( int px );
93
99 void setItalic( int bItalic );
100
106 bool wordWrap() const;
107
113 void setWordWrap( bool bWordWrap );
114
118 void clear();
119
125 void setTextAlignment( TextAlignment iAlignment );
126
132 void setTextSelectable( bool bSelectable );
133
139 bool isTextSelectable() const;
140
141 void setElideTextEnabled( const bool& bElided );
142 //...
143};
#define COMMONUI_API
CFxString CFxUIString
void setBoldText(bool bBold)
void setWordWrap(bool bWordWrap)
void setBuddy(CFxUIBaseView *widget)
void setItalic(int bItalic)
void setResourceImage(const CFxUIString &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