mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-01 23:20:50 +00:00
work on viewport
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@274 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -32,5 +32,6 @@
|
||||
#include <Mw/Widget/Entry.h>
|
||||
#include <Mw/Widget/ScrollBar.h>
|
||||
#include <Mw/Widget/NumberEntry.h>
|
||||
#include <Mw/Widget/Viewport.h>
|
||||
|
||||
#endif
|
||||
|
||||
27
include/Mw/Widget/Viewport.h
Normal file
27
include/Mw/Widget/Viewport.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Widget/Viewport.h
|
||||
* %brief Viewport widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_VIEWPORT_H__
|
||||
#define __MW_WIDGET_VIEWPORT_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Viewport widget class
|
||||
*/
|
||||
MWDECL MwClass MwViewportClass;
|
||||
|
||||
MWDECL MwWidget MwViewportGetViewport(MwWidget widget);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -16,7 +16,6 @@ class Base {
|
||||
private:
|
||||
int can_be_gc;
|
||||
void SetHandler(void);
|
||||
Base(MwWidget widget, int gc = 0);
|
||||
|
||||
public:
|
||||
MwOO::Base MessageBox(const char* title, const char* text, unsigned int flags);
|
||||
@@ -44,6 +43,7 @@ class Base {
|
||||
/* END AUTOGENERATE */
|
||||
|
||||
Base(MwClass widget_class, const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
Base(MwWidget widget, int gc = 0);
|
||||
~Base(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
19
include/MwOO/Widget/Viewport.h
Normal file
19
include/MwOO/Widget/Viewport.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_VIEWPORT_H__
|
||||
#define __MWOO_WIDGET_VIEWPORT_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Viewport : public MwOO::Base {
|
||||
public:
|
||||
Viewport(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
MwOO::Base GetViewport(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user