CFx SDK Documentation
2020SP3
SDK
CFx
commonui_inc
UI
FxUIPushButton.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2005-2020 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
bool
isChecked
();
112
120
void
setElideTextEnabled
(
const
bool
bEnableElideText );
121
127
void
setMenu
(
CFxUIMenu
* pMenu );
128
134
void
setMenuArrowVisible
(
bool
bVisible );
135
//...
136
140
CFxUISignal
<
void
(
bool
)>&
clicked
();
141
142
//...
143
147
CFxUISignal
<
void
(
int
)>&
keyWentDown
();
148
149
//...
150
};
FxUIBaseView.h
CFxUIPushButton::setTextAlignment
void setTextAlignment(TextAlignment iAlignment)
CFxUIBaseView::TextAlignment
TextAlignment
Definition:
FxUIBaseView.h:37
CFxUIBaseView
Definition:
FxUIBaseView.h:30
CFxUIPushButton::icon
CFxUIIcon icon() const
CFxUIIcon
QIcon CFxUIIcon
Definition:
FxUIObject.h:60
CFxUISignal
Definition:
FxUISignal.h:74
size
GLsizeiptr size
Definition:
gles2_ext.h:182
CFxUIPushButton::isChecked
bool isChecked()
CFxUIPushButton::setIconSize
void setIconSize(const CFxUISize &size)
CFxUIPushButton::iconSize
CFxUISize iconSize() const
CFxUIPushButton::CFxUIPushButton
CFxUIPushButton()
CFxUIPushButton::setResourceIcon
void setResourceIcon(const CFxUIString &resourceIcon)
CFxUIPushButton::setBoldText
void setBoldText(bool bBold)
CFxUIPushButton::setElideTextEnabled
void setElideTextEnabled(const bool bEnableElideText)
CFxUISize
QSize CFxUISize
Definition:
FxUIObject.h:45
CFxUIPushButton::setMenuArrowVisible
void setMenuArrowVisible(bool bVisible)
CFxUIPushButton::setText
void setText(const CFxUIString &text)
CFxUIPushButton::~CFxUIPushButton
~CFxUIPushButton()
CFxUIString
QString CFxUIString
Definition:
FxUIObject.h:46
COMMONUI_API
#define COMMONUI_API
Definition:
FxCommonFramework.h:4
CFxUIPushButton::text
CFxUIString text() const
CFxUIPushButton::setMenu
void setMenu(CFxUIMenu *pMenu)
CFxUIMenu
Definition:
FxUIMenu.h:28
CFxUIPushButton::clicked
CFxUISignal< void(bool)> & clicked()
CFxUIPushButton::setCheckable
void setCheckable(const bool bCheckable)
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
CFxUIPushButton::keyWentDown
CFxUISignal< void(int)> & keyWentDown()
CFxUIPushButton::setIcon
void setIcon(const CFxUIIcon &icon)
CFxUIPushButton
Definition:
FxUIPushButton.h:30
Generated on Mon Oct 12 2020 11:49:32