CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIPushButton.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
22class CFxUIMenu;
23
29
31{
32public:
33
34public:
37
40
46 void setText( const CFxUIString& text );
47
54
60 void setResourceIcon( const CFxUIString& resourceIcon );
61
68
75
81 void setIcon(const CFxUIIcon &icon);
82
88 CFxUIIcon icon() const;
89
95 void setTextAlignment( TextAlignment iAlignment );
96
102 void setBoldText( bool bBold );
103
111 void setCheckable( const bool bCheckable );
112
119
127 void setChecked( const bool bChecked );
128
134 bool isChecked();
135
143 void setElideTextEnabled( const bool bEnableElideText );
144
150 void setMenu( CFxUIMenu* pMenu );
151
157 void setMenuArrowVisible( bool bVisible );
158 //...
159
164
169
170 //...
171
176
177 //...
178};
#define COMMONUI_API
CFxString CFxUIString
void setTextAlignment(TextAlignment iAlignment)
void setBoldText(bool bBold)
void setChecked(const bool bChecked)
CFxUISize iconSize() const
void setIconSize(const CFxUISize &size)
CFxUISignal< void(bool)> & clicked()
CFxUIString text() const
CFxUISignal< void(bool)> & toggled()
void setText(const CFxUIString &text)
void setCheckable(const bool bCheckable)
void setMenu(CFxUIMenu *pMenu)
void setElideTextEnabled(const bool bEnableElideText)
CFxUISignal< void(int)> & keyWentDown()
void setResourceIcon(const CFxUIString &resourceIcon)
void setIcon(const CFxUIIcon &icon)
CFxUIIcon icon() const
void setMenuArrowVisible(bool bVisible)
GLsizeiptr size
Definition gles2_ext.h:182
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)