15GX_CORE_NAMESPACE_BEGIN()
20class GxGuiHover : public GxGuiBase
27 GX_RTTI_CLASS(GxGuiHover, GxGuiBase)
32 static const u32 MARGIN_LEFT;
34 static const u32 MARGIN_RIGHT;
36 static const u32 MARGIN_TOP;
38 static const u32 MARGIN_BOTTOM;
49 GxGuiHover(
const GxPoint2& rect,
const GxGuiBase* pTargetGui);
58 void update(
void)
override;
61 void setMessage( GX_CSTR message );
65 GX_FORCE_INLINE
void setMessage(
const GxString& message ){ setMessage( message.
getString() ); }
69 GX_FORCE_INLINE
void setBackColor(
const GxColor& color ){ _backColor = color; }
73 GX_FORCE_INLINE
void setMessageColor(
const GxColor& color ){ _messageColor = color; }
76 void updateSizeFromMessage(
void);
80 GxRect calculateClientRect(
const GxRect& clientRect)
const override;
83 void onDraw(
void)
override;
86 void onNoClientDraw(
void)
override;
89 GX_FORCE_INLINE GxGuiBase* getGui(
const GxPoint2& ,
const GxRect& )
override {
return nullptr; }
98 static GxSize calcUseSize( GX_CSTR message );
106 const GxGuiBase* _pTargetGui;
114GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
座標
Definition GxStruct.h:867
矩形
Definition GxStruct.h:951
サイズ
Definition GxStruct.h:730
文字列型クラス
Definition GxString.h:18
GX_FORCE_INLINE GX_STR getString(void)
文字列取得
Definition GxString.h:165