CFx SDK Documentation
2023 SP0
SDK
CFx
commonui_inc
UI
FxUIPushButton.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2005-2022 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
21
class
CFxUIMenu
;
22
29
class
COMMONUI_API
CFxUIPushButton
:
public
CFxUIBaseView
30
{
31
public
:
32
33
public
:
35
CFxUIPushButton
();
36
38
~CFxUIPushButton
();
39
45
void
setText
(
const
CFxUIString
& text );
46
52
CFxUIString
text
()
const
;
53
59
void
setResourceIcon
(
const
CFxUIString
& resourceIcon );
60
66
void
setIconSize
(
const
CFxUISize
&
size
);
67
73
CFxUISize
iconSize
()
const
;
74
80
void
setIcon
(
const
CFxUIIcon
&icon);
81
87
CFxUIIcon
icon
()
const
;
88
94
void
setTextAlignment
(
TextAlignment
iAlignment );
95
101
void
setBoldText
(
bool
bBold );
102
110
void
setCheckable
(
const
bool
bCheckable );
111
117
bool
isCheckable
();
118
126
void
setChecked
(
const
bool
bChecked );
127
133
bool
isChecked
();
134
142
void
setElideTextEnabled
(
const
bool
bEnableElideText );
143
149
void
setMenu
(
CFxUIMenu
* pMenu );
150
156
void
setMenuArrowVisible
(
bool
bVisible );
157
//...
158
162
CFxUISignal
<
void
(
bool
)>&
clicked
();
163
167
CFxUISignal
<
void
(
bool
)>&
toggled
();
168
169
//...
170
174
CFxUISignal
<
void
(
int
)>&
keyWentDown
();
175
176
//...
177
};
COMMONUI_API
#define COMMONUI_API
Definition:
FxCommonFramework.h:20
FxUIBaseView.h
CFxUIString
QString CFxUIString
Definition:
FxUIObject.h:48
CFxUIIcon
QIcon CFxUIIcon
Definition:
FxUIObject.h:62
CFxUISize
QSize CFxUISize
Definition:
FxUIObject.h:47
CFxUIBaseView
Definition:
FxUIBaseView.h:30
CFxUIBaseView::TextAlignment
TextAlignment
Definition:
FxUIBaseView.h:37
CFxUIMenu
Definition:
FxUIMenu.h:28
CFxUIPushButton
Definition:
FxUIPushButton.h:30
CFxUIPushButton::setTextAlignment
void setTextAlignment(TextAlignment iAlignment)
CFxUIPushButton::clicked
CFxUISignal< void(bool)> & clicked()
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::toggled
CFxUISignal< void(bool)> & toggled()
CFxUIPushButton::text
CFxUIString text() const
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:74
size
GLsizeiptr size
Definition:
gles2_ext.h:182
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
Generated on Thu Feb 24 2022 15:09:31