CFx SDK Documentation  2020SP3
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 
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  bool isChecked();
112 
120  void setElideTextEnabled( const bool bEnableElideText );
121 
127  void setMenu( CFxUIMenu* pMenu );
128 
134  void setMenuArrowVisible( bool bVisible );
135  //...
136 
141 
142  //...
143 
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