view dwtx/ui/internal/forms/widgets/IHyperlinkSegment.d @ 75:5d489b9f966c

Fix continue porting
author Frank Benoit <benoit@tionex.de>
date Sat, 24 May 2008 05:11:16 +0200
parents
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Chriss Gross (schtoo@schtoo.com) - fix for 61670
 * Port to the D programming language:
 *     Frank Benoit <benoit@tionex.de>
 *******************************************************************************/
module dwtx.ui.internal.forms.widgets.IHyperlinkSegment;

import dwtx.ui.internal.forms.widgets.IFocusSelectable;

import dwt.graphics.Color;
import dwt.graphics.GC;
import dwt.graphics.Rectangle;

import dwt.dwthelper.utils;

public interface IHyperlinkSegment : IFocusSelectable {
    String getHref();
    String getText();
    void paintFocus(GC gc, Color bg, Color fg, bool selected, Rectangle repaintRegion);
    bool contains(int x, int y);
    bool intersects(Rectangle rect);
}