cxWidgets 1.0
cxFrame.h
Go to the documentation of this file.
1// Copyright (c) 2026 E. Oulashin
2#ifndef __CXFRAME_H__
3#define __CXFRAME_H__
4
5/*
6 * cxFrame.h -frame work
7 *
8 * Copyright (C) 2005-2007 Michael H. Kinney
9 *
10 *
11 */
12
13#include "cxWindow.h"
14#include "cxMenu.h"
15
16namespace cx {
17
27class cxFrame : public cxWindow
28{
29 // TODO: Write this class
30 public:
49 explicit cxFrame(cxWindow *pParentWindow = nullptr,
50 int pRow = 0, int pCol = 0,
51 int pHeight = DEFAULT_HEIGHT,
52 int pWidth = DEFAULT_WIDTH,
53 const std::string& pTitle = "",
54 const std::string& pMessage = "",
55 const std::string& pStatus = "",
56 eBorderStyle pBorderStyle = eBS_SINGLE_LINE,
57 cxWindow *pExtTitleWindow = nullptr,
58 cxWindow *pExtStatusWindow = nullptr,
59 bool pMessageUnderlines = false);
60
61 virtual ~cxFrame();
62
70 virtual std::string cxTypeStr() const override;
71
72 private:
73 cxMenu mMenuBar;
74 cxWindow *mViewWindow; // The window to be displayed inside the frame
75};
76
77} // namespace cx
78
79#endif
Similar to wxFrame and other frame classes in GUI frameworks, this.
Definition cxFrame.h:28
virtual ~cxFrame()
cxFrame(cxWindow *pParentWindow=nullptr, int pRow=0, int pCol=0, int pHeight=DEFAULT_HEIGHT, int pWidth=DEFAULT_WIDTH, const std::string &pTitle="", const std::string &pMessage="", const std::string &pStatus="", eBorderStyle pBorderStyle=eBS_SINGLE_LINE, cxWindow *pExtTitleWindow=nullptr, cxWindow *pExtStatusWindow=nullptr, bool pMessageUnderlines=false)
Default constructor.
virtual std::string cxTypeStr() const override
Returns the name of the cxWidgets class. This can be used to.
Represents a list of items, one of which may be selected.
Definition cxMenu.h:62
Represents a text-based window on the screen. Can contain a title, status, and a message to appear wi...
Definition cxWindow.h:195
#define DEFAULT_HEIGHT
Definition cxWindow.h:68
#define DEFAULT_WIDTH
Definition cxWindow.h:69
cxBorderChars.h - Defines border characters to be used in drawing a box (i.e., in cxWindow and all it...
Definition cxApp.cpp:5
eBorderStyle
Definition cxBorderStyles.h:26
@ eBS_SINGLE_LINE
Definition cxBorderStyles.h:28