CFx SDK Documentation  2022 SP0
FxUIPushButton.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 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 
30 {
31 public:
32 
33 public:
36 
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 
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 
163 
168 
169  //...
170 
175 
176  //...
177 };
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
QIcon CFxUIIcon
Definition: FxUIObject.h:62
QSize CFxUISize
Definition: FxUIObject.h:47
void setTextAlignment(TextAlignment iAlignment)
CFxUISignal< void(bool)> & clicked()
void setBoldText(bool bBold)
void setChecked(const bool bChecked)
CFxUISize iconSize() const
void setIconSize(const CFxUISize &size)
CFxUISignal< void(bool)> & toggled()
CFxUIString text() const
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)