CFx SDK Documentation  2020SP3
FxUICheckBox.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 QString;
22 
28 {
29 public:
30 
35  {
38  Checked
39  };
40 
43 
45  virtual ~CFxUICheckBox();
46 
52  void setText( const CFxUIString& str );
53 
59  CFxUIString text() const;
60 
68  void setChecked( bool bChecked );
69 
75  bool isChecked() const;
76 
82  void setResourceIcon( const CFxUIString& icon );
83 
89  void setTextSize( float size );
90 
96  bool isTristate() const;
97 
103  void setTristate( bool tristate = true );
104 
111 
118 
123 
128 
133 
134  //...
135 };
CFxUICheckBox::setChecked
void setChecked(bool bChecked)
FxUIBaseView.h
CFxUICheckBox::Unchecked
@ Unchecked
The item is unchecked.
Definition: FxUICheckBox.h:36
CFxUICheckBox
Definition: FxUICheckBox.h:28
CFxUIBaseView
Definition: FxUIBaseView.h:30
CFxUICheckBox::setTristate
void setTristate(bool tristate=true)
CFxUICheckBox::setCheckState
void setCheckState(CFxUICheckBox::CheckState state)
CFxUICheckBox::setResourceIcon
void setResourceIcon(const CFxUIString &icon)
CFxUICheckBox::setTextSize
void setTextSize(float size)
CFxUICheckBox::isChecked
bool isChecked() const
CFxUICheckBox::isTristate
bool isTristate() const
CFxUISignal
Definition: FxUISignal.h:74
size
GLsizeiptr size
Definition: gles2_ext.h:182
CFxUICheckBox::CheckState
CheckState
Definition: FxUICheckBox.h:35
CFxUICheckBox::stateChanged
CFxUISignal< void(int)> & stateChanged()
CFxUICheckBox::checkState
CFxUICheckBox::CheckState checkState() const
CFxUICheckBox::toggled
CFxUISignal< void(bool)> & toggled()
CFxUIString
QString CFxUIString
Definition: FxUIObject.h:46
CFxUICheckBox::text
CFxUIString text() const
COMMONUI_API
#define COMMONUI_API
Definition: FxCommonFramework.h:4
CFxUICheckBox::~CFxUICheckBox
virtual ~CFxUICheckBox()
CFxUICheckBox::setText
void setText(const CFxUIString &str)
CFxUICheckBox::PartiallyChecked
@ PartiallyChecked
The item is partially checked. Items in hierarchical models may be partially checked if some,...
Definition: FxUICheckBox.h:37
CFxUICheckBox::clicked
CFxUISignal< void(void)> & clicked()
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
CFxUICheckBox::CFxUICheckBox
CFxUICheckBox()