forked from pyrite-dev/milsko
Compare commits
10 commits
9831c033fb
...
cc05431879
| Author | SHA1 | Date | |
|---|---|---|---|
|
cc05431879 |
|||
|
3ec8ccf40f |
|||
|
86d1de7221 |
|||
|
771faf1418 |
|||
|
134b4b68ce |
|||
|
2a268c56f1 |
|||
|
6c22ab8cd6 |
|||
|
30bdc7445a |
|||
| 09325acb6c | |||
| 01416857b5 |
172 changed files with 754 additions and 944 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
# $Id$
|
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
UseTab: Always
|
UseTab: Always
|
||||||
TabWidth: 8
|
TabWidth: 8
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
|
*.dll
|
||||||
examples/*
|
examples/*
|
||||||
examples/*.exe
|
examples/*.exe
|
||||||
examples/*/*
|
examples/*/*
|
||||||
|
|
|
||||||
1
BorMakefile
generated
1
BorMakefile
generated
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
CC = bcc32 -c
|
CC = bcc32 -c
|
||||||
LD = bcc32
|
LD = bcc32
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(
|
project(
|
||||||
milsko
|
milsko
|
||||||
|
|
|
||||||
1
Doxyfile
1
Doxyfile
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
PROJECT_LOGO = resource/logo/logo64.png
|
PROJECT_LOGO = resource/logo/logo64.png
|
||||||
PROJECT_NAME = Milsko
|
PROJECT_NAME = Milsko
|
||||||
PROJECT_BRIEF = "Lightweight and fast GUI toolkit"
|
PROJECT_BRIEF = "Lightweight and fast GUI toolkit"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
# vim: syntax=tcl
|
# vim: syntax=tcl
|
||||||
|
|
||||||
proc run {project_name} {
|
proc run {project_name} {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
# $Id$
|
|
||||||
our $target = `uname -s`;
|
our $target = `uname -s`;
|
||||||
$target =~ s/\r?\n$//;
|
$target =~ s/\r?\n$//;
|
||||||
|
|
||||||
|
|
|
||||||
1
NTMakefile
generated
1
NTMakefile
generated
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
CC = cl /TC /c /nologo
|
CC = cl /TC /c /nologo
|
||||||
LD = link /nologo
|
LD = link /nologo
|
||||||
|
|
||||||
|
|
|
||||||
1
WatMakefile
generated
1
WatMakefile
generated
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
CC = wcc386 -bt=nt -q -bd
|
CC = wcc386 -bt=nt -q -bd
|
||||||
LD = wlink option quiet
|
LD = wlink option quiet
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
# $Id$
|
|
||||||
add_subdirectory(basic)
|
add_subdirectory(basic)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
file(
|
file(
|
||||||
GLOB
|
GLOB
|
||||||
EXAMPLES_BASIC_SOURCES
|
EXAMPLES_BASIC_SOURCES
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
MwWidget window, menu, button, button2, button3, button4;
|
MwWidget window, menu, button, button2, button3, button4;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#include "../harvard.c"
|
#include "../harvard.c"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
void ok(MwWidget handle, void* user, void* call) {
|
void ok(MwWidget handle, void* user, void* call) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/* this demo does not work well on windows */
|
/* this demo does not work well on windows */
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
MwWidget vp;
|
MwWidget vp;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#define TITLE "boing"
|
#define TITLE "boing"
|
||||||
#include "glutlayer.c"
|
#include "glutlayer.c"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
#include <Mw/Widget/OpenGL.h>
|
#include <Mw/Widget/OpenGL.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#define TITLE "cube"
|
#define TITLE "cube"
|
||||||
#include "glutlayer.c"
|
#include "glutlayer.c"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#define TITLE "gears"
|
#define TITLE "gears"
|
||||||
#include "glutlayer.c"
|
#include "glutlayer.c"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
#include <Mw/Widget/OpenGL.h>
|
#include <Mw/Widget/OpenGL.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
#include <Mw/Widget/OpenGL.h>
|
#include <Mw/Widget/OpenGL.h>
|
||||||
|
|
||||||
|
|
|
||||||
1445
examples/harvard.c
1445
examples/harvard.c
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this example is quite minimal, you may need to modify it if your graphics card is more esoteric
|
* this example is quite minimal, you may need to modify it if your graphics card is more esoteric
|
||||||
|
|
|
||||||
1
external/stb_ds.c
generated
vendored
1
external/stb_ds.c
generated
vendored
|
|
@ -1,3 +1,2 @@
|
||||||
/* $Id$ */
|
|
||||||
#define STB_DS_IMPLEMENTATION
|
#define STB_DS_IMPLEMENTATION
|
||||||
#include "stb_ds.h"
|
#include "stb_ds.h"
|
||||||
|
|
|
||||||
1
external/stb_image.c
generated
vendored
1
external/stb_image.c
generated
vendored
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#ifdef USE_STB_IMAGE
|
#ifdef USE_STB_IMAGE
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "stb_image.h"
|
#include "stb_image.h"
|
||||||
|
|
|
||||||
1
external/stb_truetype.c
generated
vendored
1
external/stb_truetype.c
generated
vendored
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#ifdef USE_STB_TRUETYPE
|
#ifdef USE_STB_TRUETYPE
|
||||||
#define STB_TRUETYPE_IMPLEMENTATION
|
#define STB_TRUETYPE_IMPLEMENTATION
|
||||||
#include "stb_truetype.h"
|
#include "stb_truetype.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Abstract/Directory.h
|
* @file Mw/Abstract/Directory.h
|
||||||
* @brief Directory functions
|
* @brief Directory functions
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Abstract/Dynamic.h
|
* @file Mw/Abstract/Dynamic.h
|
||||||
* @brief Dynamic library
|
* @brief Dynamic library
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Abstract/Time.h
|
* @file Mw/Abstract/Time.h
|
||||||
* @brief Time
|
* @brief Time
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/BaseTypes.h
|
* @file Mw/BaseTypes.h
|
||||||
* @brief Base type definitions
|
* @brief Base type definitions
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Constants.h
|
* @file Mw/Constants.h
|
||||||
* @brief Constants
|
* @brief Constants
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Core.h
|
* @file Mw/Core.h
|
||||||
* @brief Core
|
* @brief Core
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Default.h
|
* @file Mw/Default.h
|
||||||
* @brief Default properties
|
* @brief Default properties
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Dialog/ColorPicker.h
|
* @file Mw/Dialog/ColorPicker.h
|
||||||
* @brief Color picker
|
* @brief Color picker
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Dialog/DirectoryChooser.h
|
* @file Mw/Dialog/DirectoryChooser.h
|
||||||
* @brief Directory chooser
|
* @brief Directory chooser
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Dialog/FileChooser.h
|
* @file Mw/Dialog/FileChooser.h
|
||||||
* @brief File chooser
|
* @brief File chooser
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Dialog/MessageBox.h
|
* @file Mw/Dialog/MessageBox.h
|
||||||
* @brief Message box
|
* @brief Message box
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Draw.h
|
* @file Mw/Draw.h
|
||||||
* @brief Common drawing API
|
* @brief Common drawing API
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Error.h
|
* @file Mw/Error.h
|
||||||
* @brief Error codes
|
* @brief Error codes
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Font.h
|
* @file Mw/Font.h
|
||||||
* @brief Font
|
* @brief Font
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/LowLevel.h
|
* @file Mw/LowLevel.h
|
||||||
* @brief Low-level drawing API
|
* @brief Low-level drawing API
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/LowLevel/GDI.h
|
* @file Mw/LowLevel/GDI.h
|
||||||
* @brief GDI Backend
|
* @brief GDI Backend
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/LowLevel/X11.h
|
* @file Mw/LowLevel/X11.h
|
||||||
* @brief X11 Backend
|
* @brief X11 Backend
|
||||||
|
|
@ -34,6 +33,7 @@ struct _MwLLX11 {
|
||||||
XIC xic;
|
XIC xic;
|
||||||
|
|
||||||
int top;
|
int top;
|
||||||
|
int toplevel;
|
||||||
int grabbed;
|
int grabbed;
|
||||||
int force_render;
|
int force_render;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/MachDep.h
|
* @file Mw/MachDep.h
|
||||||
* @brief Machine dependent headers and macros
|
* @brief Machine dependent headers and macros
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Milsko.h
|
* @file Mw/Milsko.h
|
||||||
* @brief Includes all headers
|
* @brief Includes all headers
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Resource/Cursor.h
|
* @file Mw/Resource/Cursor.h
|
||||||
* @brief Cursor externs
|
* @brief Cursor externs
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Resource/Font.h
|
* @file Mw/Resource/Font.h
|
||||||
* @brief Default font resources
|
* @brief Default font resources
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Resource/Icon.h
|
* @file Mw/Resource/Icon.h
|
||||||
* @brief Icon
|
* @brief Icon
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/String.h
|
* @file Mw/String.h
|
||||||
* @brief String utilities
|
* @brief String utilities
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/StringDefs.h
|
* @file Mw/StringDefs.h
|
||||||
* @brief String definitions for property
|
* @brief String definitions for property
|
||||||
|
|
@ -45,22 +44,22 @@
|
||||||
#define MwNfont "Vfont"
|
#define MwNfont "Vfont"
|
||||||
#define MwNboldFont "VboldFont"
|
#define MwNboldFont "VboldFont"
|
||||||
|
|
||||||
#define MwNactivateHandler "Cactivate" /* NULL/int* (MwListBox)/void* (MwTreeView) */
|
#define MwNactivateHandler "Cactivate" /* NULL/int* (MwListBox)/void* (MwTreeView) */
|
||||||
#define MwNresizeHandler "Cresize" /* NULL */
|
#define MwNresizeHandler "Cresize" /* NULL */
|
||||||
#define MwNtickHandler "Ctick" /* NULL */
|
#define MwNtickHandler "Ctick" /* NULL */
|
||||||
#define MwNmenuHandler "Cmenu" /* MwMenu */
|
#define MwNmenuHandler "Cmenu" /* MwMenu */
|
||||||
#define MwNmouseDownHandler "CmouseDown" /* MwLLMouse* */
|
#define MwNmouseDownHandler "CmouseDown" /* MwLLMouse* */
|
||||||
#define MwNmouseUpHandler "CmouseUp" /* same as MwNmouseDownHandler */
|
#define MwNmouseUpHandler "CmouseUp" /* same as MwNmouseDownHandler */
|
||||||
#define MwNmouseMoveHandler "CmouseMove" /* MwPoint* */
|
#define MwNmouseMoveHandler "CmouseMove" /* MwPoint* */
|
||||||
#define MwNchangedHandler "Cchanged" /* NULL/int* (MwComboBox) */
|
#define MwNchangedHandler "Cchanged" /* NULL/int* (MwComboBox) */
|
||||||
#define MwNkeyHandler "Ckey" /* int* (MwLLKeyEnum or character code) */
|
#define MwNkeyHandler "Ckey" /* int* (MwLLKeyEnum or character code) */
|
||||||
#define MwNkeyReleaseHandler "CkeyRelease" /* same as MwNkeyHandler */
|
#define MwNkeyReleaseHandler "CkeyRelease" /* same as MwNkeyHandler */
|
||||||
#define MwNcloseHandler "Cclose" /* NULL */
|
#define MwNcloseHandler "Cclose" /* NULL */
|
||||||
#define MwNfocusInHandler "CfocusIn" /* NULL */
|
#define MwNfocusInHandler "CfocusIn" /* NULL */
|
||||||
#define MwNfocusOutHandler "CfocusOut" /* NULL */
|
#define MwNfocusOutHandler "CfocusOut" /* NULL */
|
||||||
#define MwNfileChosenHandler "CfileChosen" /* char* */
|
#define MwNfileChosenHandler "CfileChosen" /* char* */
|
||||||
#define MwNdirectoryChosenHandler MwNfileChosenHandler
|
#define MwNdirectoryChosenHandler "CdirectoryChosen" /* char* */
|
||||||
#define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */
|
#define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */
|
||||||
#define MwNdrawHandler "Cdraw" /* NULL */
|
#define MwNdrawHandler "Cdraw" /* NULL */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/TypeDefs.h
|
* @file Mw/TypeDefs.h
|
||||||
* @brief Type definitions
|
* @brief Type definitions
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Unicode.h
|
* @file Mw/Unicode.h
|
||||||
* @brief Handles UTF8 stuff
|
* @brief Handles UTF8 stuff
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Version.h
|
* @file Mw/Version.h
|
||||||
* @brief Version informations
|
* @brief Version informations
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Button.h
|
* @file Mw/Widget/Button.h
|
||||||
* @brief Button widget
|
* @brief Button widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id: CheckBox.h 206 2025-10-07 15:10:46Z nishi $ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/CheckBox.h
|
* @file Mw/Widget/CheckBox.h
|
||||||
* @brief CheckBox widget
|
* @brief CheckBox widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id: ComboBox.h 206 2025-10-07 15:10:46Z nishi $ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/ComboBox.h
|
* @file Mw/Widget/ComboBox.h
|
||||||
* @brief ComboBox widget
|
* @brief ComboBox widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Entry.h
|
* @file Mw/Widget/Entry.h
|
||||||
* @brief Entry widget
|
* @brief Entry widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Frame.h
|
* @file Mw/Widget/Frame.h
|
||||||
* @brief Frame widget
|
* @brief Frame widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Image.h
|
* @file Mw/Widget/Image.h
|
||||||
* @brief Image widget
|
* @brief Image widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Label.h
|
* @file Mw/Widget/Label.h
|
||||||
* @brief Label widget
|
* @brief Label widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/ListBox.h
|
* @file Mw/Widget/ListBox.h
|
||||||
* @brief ListBox widget
|
* @brief ListBox widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Menu.h
|
* @file Mw/Widget/Menu.h
|
||||||
* @brief Menu widget
|
* @brief Menu widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/NumberEntry.h
|
* @file Mw/Widget/NumberEntry.h
|
||||||
* @brief NumberEntry widget
|
* @brief NumberEntry widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/OpenGL.h
|
* @file Mw/Widget/OpenGL.h
|
||||||
* @brief OpenGL widget
|
* @brief OpenGL widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/ProgressBar.h
|
* @file Mw/Widget/ProgressBar.h
|
||||||
* @brief ProgressBar widget
|
* @brief ProgressBar widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id: RadioBox.h 206 2025-10-07 15:10:46Z nishi $ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/RadioBox.h
|
* @file Mw/Widget/RadioBox.h
|
||||||
* @brief RadioBox widget
|
* @brief RadioBox widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/ScrollBar.h
|
* @file Mw/Widget/ScrollBar.h
|
||||||
* @brief ScrollBar widget
|
* @brief ScrollBar widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Separator.h
|
* @file Mw/Widget/Separator.h
|
||||||
* @brief Separator widget
|
* @brief Separator widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/SubMenu.h
|
* @file Mw/Widget/SubMenu.h
|
||||||
* @brief SubMenu widget
|
* @brief SubMenu widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/TreeView.h
|
* @file Mw/Widget/TreeView.h
|
||||||
* @brief TreeView widget
|
* @brief TreeView widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Viewport.h
|
* @file Mw/Widget/Viewport.h
|
||||||
* @brief Viewport widget
|
* @brief Viewport widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Vulkan.h
|
* @file Mw/Widget/Vulkan.h
|
||||||
* @brief Vulkan widget
|
* @brief Vulkan widget
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/*!
|
/*!
|
||||||
* @file Mw/Widget/Window.h
|
* @file Mw/Widget/Window.h
|
||||||
* @brief Window widget
|
* @brief Window widget
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!-- $Id$ -->
|
|
||||||
<!--
|
<!--
|
||||||
Basically, you have to implement 10+n types:
|
Basically, you have to implement 10+n types:
|
||||||
- Integer (int)
|
- Integer (int)
|
||||||
|
|
@ -100,6 +99,7 @@
|
||||||
<handler name="focusIn" />
|
<handler name="focusIn" />
|
||||||
<handler name="focusOut" />
|
<handler name="focusOut" />
|
||||||
<handler name="fileChosen" />
|
<handler name="fileChosen" />
|
||||||
|
<handler name="directoryChosen" />
|
||||||
<handler name="colorChosen" />
|
<handler name="colorChosen" />
|
||||||
<handler name="draw" />
|
<handler name="draw" />
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
use_backend("x11");
|
use_backend("x11");
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
add_incdir("-I/usr/X11R7/include -I/usr/pkg/include");
|
add_incdir("-I/usr/X11R7/include -I/usr/pkg/include");
|
||||||
add_libdir(
|
add_libdir(
|
||||||
"-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib");
|
"-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib");
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
use_backend("x11");
|
use_backend("x11");
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
add_libs("-lsocket -lnsl");
|
add_libs("-lsocket -lnsl");
|
||||||
use_backend("x11");
|
use_backend("x11");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
$library_prefix = "";
|
$library_prefix = "";
|
||||||
$library_suffix = ".dll";
|
$library_suffix = ".dll";
|
||||||
$executable_suffix = ".exe";
|
$executable_suffix = ".exe";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
new_object("src/*.c");
|
new_object("src/*.c");
|
||||||
|
|
||||||
my $gl_libs = "";
|
my $gl_libs = "";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# $Id$
|
|
||||||
sub add_incdir {
|
sub add_incdir {
|
||||||
my $input = $_[0];
|
my $input = $_[0];
|
||||||
$input =~ s/\r?\n/ /g;
|
$input =~ s/\r?\n/ /g;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id $*/
|
|
||||||
#declare FAR = 2.25;
|
#declare FAR = 2.25;
|
||||||
#declare Y = -0.5;
|
#declare Y = -0.5;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#declare BASE = 1;
|
#declare BASE = 1;
|
||||||
#include "resource/logo/logo.pov"
|
#include "resource/logo/logo.pov"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
// $Id$
|
|
||||||
#include "shapes.inc"
|
#include "shapes.inc"
|
||||||
#include "colors.inc"
|
#include "colors.inc"
|
||||||
#include "textures.inc"
|
#include "textures.inc"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
/* This file gets included by backend */
|
/* This file gets included by backend */
|
||||||
#define CALL(NAME) \
|
#define CALL(NAME) \
|
||||||
int MwLL##NAME##CallInit(void) { \
|
int MwLL##NAME##CallInit(void) { \
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
typedef struct userdata {
|
typedef struct userdata {
|
||||||
|
|
@ -501,7 +500,6 @@ static void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
|
||||||
|
|
||||||
static void MwLLSetIconImpl(MwLL handle, MwLLPixmap pixmap) {
|
static void MwLLSetIconImpl(MwLL handle, MwLLPixmap pixmap) {
|
||||||
ICONINFO ii;
|
ICONINFO ii;
|
||||||
HICON ico;
|
|
||||||
|
|
||||||
memset(&ii, 0, sizeof(ii));
|
memset(&ii, 0, sizeof(ii));
|
||||||
ii.fIcon = TRUE;
|
ii.fIcon = TRUE;
|
||||||
|
|
@ -729,6 +727,9 @@ static void MwLLGetCursorCoordImpl(MwLL handle, MwPoint* point) {
|
||||||
|
|
||||||
static void MwLLGetScreenSizeImpl(MwLL handle, MwRect* rect) {
|
static void MwLLGetScreenSizeImpl(MwLL handle, MwRect* rect) {
|
||||||
RECT rc;
|
RECT rc;
|
||||||
|
|
||||||
|
(void)handle;
|
||||||
|
|
||||||
GetClientRect(GetDesktopWindow(), &rc);
|
GetClientRect(GetDesktopWindow(), &rc);
|
||||||
|
|
||||||
rect->x = rect->y = 0;
|
rect->x = rect->y = 0;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#include "../../external/stb_ds.h"
|
#include "../../external/stb_ds.h"
|
||||||
|
|
@ -152,10 +151,12 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
||||||
r->x11.display = XOpenDisplay(NULL);
|
r->x11.display = XOpenDisplay(NULL);
|
||||||
p = XRootWindow(r->x11.display, XDefaultScreen(r->x11.display));
|
p = XRootWindow(r->x11.display, XDefaultScreen(r->x11.display));
|
||||||
r->x11.top = 1;
|
r->x11.top = 1;
|
||||||
|
r->x11.toplevel = 1;
|
||||||
} else {
|
} else {
|
||||||
r->x11.display = parent->x11.display;
|
r->x11.display = parent->x11.display;
|
||||||
p = parent->x11.window;
|
p = parent->x11.window;
|
||||||
r->x11.top = 0;
|
r->x11.top = 0;
|
||||||
|
r->x11.toplevel = 0;
|
||||||
}
|
}
|
||||||
r->x11.window = XCreateSimpleWindow(r->x11.display, p, px, py, width, height, 0, 0, WhitePixel(r->x11.display, DefaultScreen(r->x11.display)));
|
r->x11.window = XCreateSimpleWindow(r->x11.display, p, px, py, width, height, 0, 0, WhitePixel(r->x11.display, DefaultScreen(r->x11.display)));
|
||||||
sh.flags = PWinGravity;
|
sh.flags = PWinGravity;
|
||||||
|
|
@ -253,6 +254,8 @@ static void MwLLDestroyImpl(MwLL handle) {
|
||||||
|
|
||||||
XSync(handle->x11.display, False);
|
XSync(handle->x11.display, False);
|
||||||
|
|
||||||
|
if(handle->x11.toplevel) XCloseDisplay(handle->x11.display);
|
||||||
|
|
||||||
free(handle);
|
free(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
MwLLColor MwParseColorName(MwWidget handle, const char* color) {
|
MwLLColor MwParseColorName(MwWidget handle, const char* color) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#include "../external/stb_ds.h"
|
#include "../external/stb_ds.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* $Id$ */
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue