CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
commonui_inc
UI
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
22
class
CFxUIMenu
;
23
29
30
class
COMMONUI_API
CFxUIPushButton
:
public
CFxUIBaseView
31
{
32
public
:
33
34
public
:
36
CFxUIPushButton
();
37
39
~CFxUIPushButton
();
40
46
void
setText
(
const
CFxUIString
&
text
);
47
53
CFxUIString
text
()
const
;
54
60
void
setResourceIcon
(
const
CFxUIString
& resourceIcon );
61
67
void
setIconSize
(
const
CFxUISize
&
size
);
68
74
CFxUISize
iconSize
()
const
;
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
118
bool
isCheckable
();
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
163
CFxUISignal
<
void
(
bool
)>&
clicked
();
164
168
CFxUISignal
<
void
(
bool
)>&
toggled
();
169
170
//...
171
175
CFxUISignal
<
void
(
int
)>&
keyWentDown
();
176
177
//...
178
};
COMMONUI_API
#define COMMONUI_API
Definition
FxCommonFramework.h:20
FxUIBaseView.h
CFxUIString
CFxString CFxUIString
Definition
FxUIGlobalDefines.h:77
FxUIIcon.h
CFxUIBaseView::TextAlignment
TextAlignment
Definition
FxUIBaseView.h:43
CFxUIBaseView::CFxUIBaseView
CFxUIBaseView()
CFxUIIcon
Definition
FxUIIcon.h:41
CFxUIMenu
Definition
FxUIMenu.h:28
CFxUIPushButton::setTextAlignment
void setTextAlignment(TextAlignment iAlignment)
CFxUIPushButton::setBoldText
void setBoldText(bool bBold)
CFxUIPushButton::CFxUIPushButton
CFxUIPushButton()
CFxUIPushButton::setChecked
void setChecked(const bool bChecked)
CFxUIPushButton::iconSize
CFxUISize iconSize() const
CFxUIPushButton::isChecked
bool isChecked()
CFxUIPushButton::setIconSize
void setIconSize(const CFxUISize &size)
CFxUIPushButton::~CFxUIPushButton
~CFxUIPushButton()
CFxUIPushButton::clicked
CFxUISignal< void(bool)> & clicked()
CFxUIPushButton::text
CFxUIString text() const
CFxUIPushButton::toggled
CFxUISignal< void(bool)> & toggled()
CFxUIPushButton::setText
void setText(const CFxUIString &text)
CFxUIPushButton::setCheckable
void setCheckable(const bool bCheckable)
CFxUIPushButton::isCheckable
bool isCheckable()
CFxUIPushButton::setMenu
void setMenu(CFxUIMenu *pMenu)
CFxUIPushButton::setElideTextEnabled
void setElideTextEnabled(const bool bEnableElideText)
CFxUIPushButton::keyWentDown
CFxUISignal< void(int)> & keyWentDown()
CFxUIPushButton::setResourceIcon
void setResourceIcon(const CFxUIString &resourceIcon)
CFxUIPushButton::setIcon
void setIcon(const CFxUIIcon &icon)
CFxUIPushButton::icon
CFxUIIcon icon() const
CFxUIPushButton::setMenuArrowVisible
void setMenuArrowVisible(bool bVisible)
CFxUISignal
Definition
FxUISignal.h:72
CFxUISize
Definition
FxUISize.h:29
size
GLsizeiptr size
Definition
gles2_ext.h:182
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
Generated on Tue Apr 15 2025 11:29:57