CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIToolButton.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
21class CFxUIMenu;
22
28
29class CFxUIIcon;
30
32{
33public:
45public:
48
51
57 void setText( const CFxUIString& text );
58
65
71 void setResourceIcon( const CFxUIString& resourceIcon );
72
79
86
92 void setIcon(const CFxUIIcon &icon);
93
99 CFxUIIcon icon() const;
100
106 void setTextAlignment( TextAlignment iAlignment );
107
113 void setBoldText( bool bBold );
114
122 void setCheckable( const bool bCheckable );
123
131 void setChecked( bool bChecked );
132
138 bool isChecked() const;
139
147 void setElideTextEnabled( const bool bEnableElideText );
148
154 void setMenu( CFxUIMenu* pMenu );
155
161 void setMenuArrowVisible( bool bVisible );
162
169
176
181
186
187
192 CFxUISignal< void( int, int ) >& keyWentDown();
193
194 //...
195};
196
197
#define COMMONUI_API
CFxString CFxUIString
void setCheckable(const bool bCheckable)
void setMenu(CFxUIMenu *pMenu)
void setChecked(bool bChecked)
CFxUIString text() const
void setToolButtonStyle(UIToolButtonStyle iStyle)
void setText(const CFxUIString &text)
void setBoldText(bool bBold)
CFxUIToolButton::UIToolButtonStyle toolButtonStyle()
@ eTextUnderIcon
This enum displays text under icon.
@ eIconOnly
This enum displays icon only.
@ eTextBesideIcon
This enum displays text beside icon.
@ eFollowStyle
This enum follow the style.
@ eTextOnly
This enum displays text only.
void setResourceIcon(const CFxUIString &resourceIcon)
CFxUISize iconSize() const
void setIcon(const CFxUIIcon &icon)
bool isChecked() const
void setIconSize(const CFxUISize &size)
CFxUISignal< void(bool)> & toggled()
void setTextAlignment(TextAlignment iAlignment)
CFxUIIcon icon() const
void setMenuArrowVisible(bool bVisible)
void setElideTextEnabled(const bool bEnableElideText)
CFxUISignal< void(bool)> & clicked()
CFxUISignal< void(int, int) > & keyWentDown()
GLsizeiptr size
Definition gles2_ext.h:182
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)