mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 09:59:45 +00:00
image widget
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@145 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -34,7 +34,7 @@ E_LIBS = $(LIBS) -lMw
|
|||||||
|
|
||||||
L_OBJS = src/core.o src/default.o src/draw.o src/lowlevel.o src/font.o src/boldfont.o src/error.o
|
L_OBJS = src/core.o src/default.o src/draw.o src/lowlevel.o src/font.o src/boldfont.o src/error.o
|
||||||
L_OBJS += src/external/ds.o src/external/image.o
|
L_OBJS += src/external/ds.o src/external/image.o
|
||||||
L_OBJS += src/widget/window.o src/widget/button.o src/widget/frame.o src/widget/menu.o src/widget/submenu.o
|
L_OBJS += src/widget/window.o src/widget/button.o src/widget/frame.o src/widget/menu.o src/widget/submenu.o src/widget/image.o
|
||||||
|
|
||||||
ifeq ($(TARGET),NetBSD)
|
ifeq ($(TARGET),NetBSD)
|
||||||
CFLAGS += -I/usr/X11R7/include -I/usr/pkg/include
|
CFLAGS += -I/usr/X11R7/include -I/usr/pkg/include
|
||||||
|
|||||||
@@ -152,6 +152,12 @@
|
|||||||
<dt>
|
<dt>
|
||||||
<a href="#Mw_GDI_h">Mw/GDI.h</a>
|
<a href="#Mw_GDI_h">Mw/GDI.h</a>
|
||||||
</dt>
|
</dt>
|
||||||
|
<dt>
|
||||||
|
<a href="#Mw_Image_h">Mw/Image.h</a>
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<a href="#Mw_Image_h__MwImageClass">MwImageClass</a>
|
||||||
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<a href="#Mw_LowLevel_h">Mw/LowLevel.h</a>
|
<a href="#Mw_LowLevel_h">Mw/LowLevel.h</a>
|
||||||
</dt>
|
</dt>
|
||||||
@@ -1345,6 +1351,20 @@
|
|||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<hr>
|
<hr>
|
||||||
|
<h2 align="center" id="Mw_Image_h">Mw/Image.h</h2>
|
||||||
|
<dl>
|
||||||
|
<dt>
|
||||||
|
Image widget.
|
||||||
|
</dt>
|
||||||
|
</dl>
|
||||||
|
<hr>
|
||||||
|
<pre id="Mw_Image_h__MwImageClass"><code>MWDECL MwClass MwImageClass;</code></pre>
|
||||||
|
<dl>
|
||||||
|
<dd>
|
||||||
|
Image widget class.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr>
|
||||||
<h2 align="center" id="Mw_LowLevel_h">Mw/LowLevel.h</h2>
|
<h2 align="center" id="Mw_LowLevel_h">Mw/LowLevel.h</h2>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>
|
<dt>
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, 0, 0, 500, 500,
|
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, 0, 0, 500, 500,
|
||||||
MwNtitle, "image button",
|
MwNtitle, "image image",
|
||||||
NULL);
|
NULL);
|
||||||
MwWidget button = MwCreateWidget(MwButtonClass, "button", window, 50, 50, 400, 400);
|
MwWidget image = MwCreateWidget(MwImageClass, "image", window, 50, 50, 400, 400);
|
||||||
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
|
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
|
||||||
|
|
||||||
MwVaApply(window,
|
MwVaApply(window,
|
||||||
MwNiconPixmap, px,
|
MwNiconPixmap, px,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
MwVaApply(button,
|
MwVaApply(image,
|
||||||
MwNpixmap, px,
|
MwNpixmap, px,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|||||||
@@ -21,5 +21,6 @@
|
|||||||
#include <Mw/SubMenu.h>
|
#include <Mw/SubMenu.h>
|
||||||
#include <Mw/Button.h>
|
#include <Mw/Button.h>
|
||||||
#include <Mw/Frame.h>
|
#include <Mw/Frame.h>
|
||||||
|
#include <Mw/Image.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user