add paint foreground message

This commit is contained in:
nakst 2021-11-23 08:46:47 +00:00
parent 0a4dc62ce6
commit 91a1727974
2 changed files with 6 additions and 0 deletions

View File

@ -1630,6 +1630,10 @@ void EsElement::InternalPaint(EsPainter *painter, int paintFlags) {
}
}
m.type = ES_MSG_PAINT_FOREGROUND;
m.painter = painter;
EsMessageSend(this, &m);
// Let the inspector draw some decorations over the element.
painter->clip = oldClip;

View File

@ -961,6 +961,8 @@ enum EsMessageType {
ES_MSG_GET_ACCESS_KEY_HINT_BOUNDS = 0x2029 // Get the bounds to display an access key hint.
ES_MSG_UI_SCALE_CHANGED = 0x202A // The UI scale has changed.
ES_MSG_TRANSITION_COMPLETE = 0x202B // The transition started with EsElementStartTransition completed.
ES_MSG_PAINT_FOREGROUND = 0x202C // Paint the element's foreground. Sent after the children are painted.
// The width/height parameters of EsPainter may be larger than expected - this includes the 'non-client' area.
// State change messages: (causes a style refresh)
ES_MSG_STATE_CHANGE_MESSAGE_START = 0x2080