55 _MSG(
"a_Web_dispatch_by_type\n");
81 dw = (
Widget*) viewer(Type, Web, Call, Data);
85 dw->setStyle (styleEngine.
style (Web->
bw));
92 const char *p = strrchr(
URL_STR(Web->
url),
'/');
108 dw = (
Widget*) viewer(Type, Web, Call, Data);
110 MSG_HTTP(
"'%s' cannot be displayed as image; has media type '%s'\n",
114 return (
dw ? 1 : -1);
void(* CA_Callback_t)(int Op, CacheClient_t *Client)
Callback type for cache clients.
This class provides the glue between HTML parser and CSS subsystem.
void startElement(int tag, BrowserWindow *bw)
tell the styleEngine that a new html element has started.
dw::core::style::Style * style(BrowserWindow *bw)
The central class for managing and drawing a widget tree.
void setWidget(Widget *widget)
void setBgColor(style::Color *color)
void setBgImage(style::StyleImage *bgImage, style::BackgroundRepeat bgRepeat, style::BackgroundAttachment bgAttachment, style::Length bgPositionX, style::Length bgPositionY)
static Color * create(Layout *layout, int color)
Dlist * dList_new(int size)
Create a new empty list.
int dStrnAsciiCasecmp(const char *s1, const char *s2, size_t n)
int dList_length(Dlist *lp)
For completing the ADT.
void dList_append(Dlist *lp, void *data)
Append a data item to the list.
void dList_remove(Dlist *lp, const void *data)
void * dList_find(Dlist *lp, const void *data)
Return the found data item, or NULL if not present.
#define dReturn_val_if_fail(expr, val)
#define dNew(type, count)
Viewer_t a_Mime_get_viewer(const char *content_type)
Get the handler for the MIME type.
void *(* Viewer_t)(const char *, void *, CA_Callback_t *, void **)
@ BACKGROUND_ATTACHMENT_SCROLL
Length createPerLength(double v)
Returns a percentage, v is relative to 1, not to 100.
The core of Dw is defined in this namespace.
Dw is in this namespace, or sub namespaces of this one.
void a_Nav_expect_done(BrowserWindow *bw)
DilloPrefs prefs
Global Data.
void a_Image_unref(DilloImage *Image)
Unref and free if necessary Do nothing if the argument is NULL.
Contains the specific data for a single window.
void * render_layout
All the rendering is done by this.
char * filename
Variables for Local saving.
int flags
Additional info.
DilloUrl * url
Requested URL.
DilloUrl * requester
URL that caused this request, or < NULL if user-initiated.
BrowserWindow * bw
The requesting browser window [reference].
DilloImage * Image
For image urls [reference].
int32_t bgColor
for image backgrounds
void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug)
void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label)
void a_UIcmd_set_page_prog(BrowserWindow *bw, size_t nbytes, int cmd)
void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd)
void a_UIcmd_set_location_text(void *vbw, const char *text)
void a_Url_free(DilloUrl *url)
Free a DilloUrl.
DilloUrl * a_Url_dup(const DilloUrl *ori)
Duplicate a Url structure.
int a_Web_dispatch_by_type(const char *Type, DilloWeb *Web, CA_Callback_t *Call, void **Data)
Given the MIME content type, and a fd to read it from, this function connects the proper MIME viewer ...
DilloWeb * a_Web_new(BrowserWindow *bw, const DilloUrl *url, const DilloUrl *requester)
Allocate and set safe values for a DilloWeb structure.
void a_Web_free(DilloWeb *web)
Deallocate a DilloWeb structure.
int a_Web_valid(DilloWeb *web)
Validate a DilloWeb pointer.