diff options
author | jcid <devnull@localhost> | 2007-11-01 15:59:21 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-01 15:59:21 +0100 |
commit | a98cd575bbb83fcf726c99741b8d97546696a16e (patch) | |
tree | 329abcdd611eb83d9af5b489b9f63a921271f13a /src/html.hh | |
parent | 88268ea16cb3986a8541563c324341d196949770 (diff) |
- Added code for the image menu and hooked it to dw2 signals.
- Hooked the page and link menus.
- Added code for optional image loading (nice interface) very advanced!
- Fixed the position of the Bug Meter popup menu.
Diffstat (limited to 'src/html.hh')
-rw-r--r-- | src/html.hh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/html.hh b/src/html.hh index 2d9202e6..75dc1b49 100644 --- a/src/html.hh +++ b/src/html.hh @@ -8,6 +8,7 @@ #include "lout/misc.hh" // For SimpleVector //#include "dw_image.h" // for DwImageMapList +#include "image.hh" // DilloImage for HtmlLinkImageReceiver #include "form.hh" // For receiving the "clicked" signal @@ -23,6 +24,7 @@ extern "C" { */ typedef struct _DilloHtmlLB DilloHtmlLB; +typedef struct _DilloLinkImage DilloLinkImage; typedef struct _DilloHtml DilloHtml; typedef struct _DilloHtmlClass DilloHtmlClass; @@ -33,6 +35,11 @@ typedef struct _DilloHtmlSelect DilloHtmlSelect; typedef struct _DilloHtmlInput DilloHtmlInput; +struct _DilloLinkImage { + DilloUrl *url; + DilloImage *image; +}; + struct _DilloHtmlLB { class HtmlLinkReceiver: public dw::core::Widget::LinkReceiver { @@ -42,10 +49,10 @@ struct _DilloHtmlLB { public: inline HtmlLinkReceiver (DilloHtmlLB *lb) { this->lb = lb; } - bool enter (dw::core::Widget *widget, int link, int x, int y); - bool press (dw::core::Widget *widget, int link, int x, int y, + bool enter (dw::core::Widget *widget, int link, int img, int x, int y); + bool press (dw::core::Widget *widget, int link, int img, int x, int y, dw::core::EventButton *event); - bool click (dw::core::Widget *widget, int link, int x, int y, + bool click (dw::core::Widget *widget, int link, int img, int x, int y, dw::core::EventButton *event); }; @@ -61,6 +68,8 @@ struct _DilloHtmlLB { misc::SimpleVector<DilloUrl*> *links; + misc::SimpleVector<DilloLinkImage*> *images; + //DwImageMapList maps; int32_t link_color; |