CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIMenu.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 "FxUIAction.h"
21
22
26
28{
29public:
32
35
39 void clear();
40
46 void addAction( CFxUIAction* pAction );
47
53 void addMenu( CFxUIMenu* pMenu );
54
59
60 void popup( CFxUIBaseView* anchorView );
61
65 void setTitle( const CFxUIString& text );
66
70 void hide();
71
77 void setPosition( const CFxUIPoint& pt );
78
85
94
101
110
116 void setBorderWidth( float width );
117
122
127
132
133 //...
134};
#define COMMONUI_API
CFxString CFxUIString
void setTitle(const CFxUIString &text)
CFxUISignal< void(void)> & menuPressed()
CFxUISignal< void(void)> & aboutToShow()
CFxUIAction * getActiveAction()
void addMenu(CFxUIMenu *pMenu)
void addAction(CFxUIAction *pAction)
void setPosition(const CFxUIPoint &pt)
CFxUIPalette palette()
void addSeparator()
void hide()
void clear()
void setBorderWidth(float width)
void setPalette(const CFxUIPalette &palette)
CFxUISignal< void(void)> & aboutToHide()
void popup(CFxUIBaseView *anchorView)
void setActiveAction(CFxUIAction *action)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)