CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIAction.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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#include "../Core/FxUIIcon.h"
21
25
27{
28public:
30 CFxUIAction( bool bWidgetAction = false );
31
34
40 void setIcon( const CFxUIIcon & icon );
41
47 void setResourceIcon( const CFxUIString& str );
48
55
61 void setText( const CFxUIString& str );
62
68 void setEnabled( const bool bEnabled );
69
77 void setChecked( const bool bChecked );
78
84 bool isChecked() const;
85
93 void setCheckable( bool bVal );
94
100 void setVisible( const bool bVisible );
101
107 void setData( const CFxUIVariant & data );
108
115
121 void setHtmlText( const CFxUIString& htmlText );
122
126 CFxUISignal<void( const bool )>& triggered();
127
128 //...
129
130};
#define COMMONUI_API
CFxString CFxUIString
void setResourceIcon(const CFxUIString &str)
void setCheckable(bool bVal)
CFxUIAction(bool bWidgetAction=false)
void setEnabled(const bool bEnabled)
bool isChecked() const
CFxUISignal< void(const bool)> & triggered()
void setHtmlText(const CFxUIString &htmlText)
void setChecked(const bool bChecked)
CFxUIString text() const
void setText(const CFxUIString &str)
void setIcon(const CFxUIIcon &icon)
CFxUIVariant data()
void setVisible(const bool bVisible)
void setData(const CFxUIVariant &data)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)