CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxUICheckBox.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 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
21class QString;
22
28{
29public:
30
35 {
38 Checked
39 };
40
43
45 virtual ~CFxUICheckBox();
46
52 void setText( const CFxUIString& str );
53
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};
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
bool isChecked() const
@ PartiallyChecked
The item is partially checked. Items in hierarchical models may be partially checked if some,...
Definition: FxUICheckBox.h:37
@ Unchecked
The item is unchecked.
Definition: FxUICheckBox.h:36
CFxUICheckBox::CheckState checkState() const
bool isTristate() const
void setTristate(bool tristate=true)
void setCheckState(CFxUICheckBox::CheckState state)
void setText(const CFxUIString &str)
virtual ~CFxUICheckBox()
CFxUISignal< void(int)> & stateChanged()
CFxUIString text() const
CFxUISignal< void(void)> & clicked()
void setChecked(bool bChecked)
void setTextSize(float size)
void setResourceIcon(const CFxUIString &icon)
CFxUISignal< void(bool)> & toggled()
GLsizeiptr size
Definition: gles2_ext.h:182
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)