|
ubit
|
Paint event. More...
#include <uevent.hpp>
Public Member Functions | |
| UPaintEvent (const UCond &, UView *source_view, const URect *win_clip=null) | |
| virtual UPaintEvent * | toPaintEvent () |
| bool | isClipSet () |
| true if the clipping zone is vaild. | |
| void | getClip (URect &r) const |
| returns the drawing zone relatively to the origin of getView(). More... | |
| const URect | getClip () const |
| shortcut for getClip(URect& r). | |
| virtual bool | setSourceAndProps (UView *) |
| void | setContext (UUpdateContext &c) |
Public Member Functions inherited from ubit::UViewEvent | |
| UViewEvent (const UCond &, UView *source_view) | |
| virtual UViewEvent * | toViewEvent () |
| UBox * | getSource () const |
| returns the widget that received this event. | |
| UView * | getView () const |
| returns the view of getSource() that received this event. | |
| UDisp * | getDisp () const |
| returns the display that received this event. More... | |
Public Member Functions inherited from ubit::UEvent | |
| UEvent (const UCond &c, UObject *source, UObject *aux=null) | |
| const UCond & | getCond () const |
| returns the event condition that detected this event. More... | |
| virtual UObject * | getAux () const |
| returns auxilliary data. | |
| virtual UInputEvent * | toInputEvent () |
| dynamic cast: returns 'this' converted to the requested class or null. | |
| virtual UMouseEvent * | toMouseEvent () |
| virtual UKeyEvent * | toKeyEvent () |
| virtual UWheelEvent * | toWheelEvent () |
| virtual UResizeEvent * | toResizeEvent () |
| virtual UTimerEvent * | toTimerEvent () |
| virtual UWinEvent * | toWinEvent () |
| virtual UMessageEvent * | toMessageEvent () |
| virtual USysWMEvent * | toSysWMEvent () |
| virtual UUserEvent * | toUserEvent () |
| void | setCond (const UCond &) |
Protected Member Functions | |
| virtual void | setProps (const class UViewContext &) |
Protected Attributes | |
| bool | is_clip_set |
| URect | redraw_clip |
| UUpdateContext * | current_context |
| UView * | layout_view |
Protected Attributes inherited from ubit::UViewEvent | |
| UView * | source_view |
Protected Attributes inherited from ubit::UEvent | |
| const UCond * | cond |
| UObject * | source |
| UObject * | aux |
Friends | |
| class | UBox |
| class | UDisp |
| class | UGraph |
Paint event.
| void UPaintEvent::getClip | ( | URect & | r | ) | const |
returns the drawing zone relatively to the origin of getView().
returns (0, 0, getView()->width, getView()->height) if isClipSet() is false. and and empty rectangle if getView() is null
1.8.12