X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cdd38056584b912743717da0a610e5aaff99b97..2d0d78133612ffdcc4ac498db54813fc38c64a90:/include/wx/generic/infobar.h diff --git a/include/wx/generic/infobar.h b/include/wx/generic/infobar.h index aef0e8c9fb..43f9108c9a 100644 --- a/include/wx/generic/infobar.h +++ b/include/wx/generic/infobar.h @@ -63,8 +63,8 @@ public: } // get effect used when showing/hiding the window - wxShowEffect GetShowEffect() const { return m_showEffect; } - wxShowEffect GetHideEffect() const { return m_hideEffect; } + wxShowEffect GetShowEffect() const; + wxShowEffect GetHideEffect() const; // set the duration of animation used when showing/hiding the bar, in ms void SetEffectDuration(int duration) { m_effectDuration = duration; } @@ -97,30 +97,34 @@ private: // handler for the close button void OnButton(wxCommandEvent& event); - // change the parent background colour to match that of our sibling - void ChangeParentBackground(); - - // restore the parent background changed by the above function - void RestoreParentBackground(); - // show/hide the bar void DoShow(); void DoHide(); + // determine the placement of the bar from its position in the containing + // sizer + enum BarPlacement + { + BarPlacement_Top, + BarPlacement_Bottom, + BarPlacement_Unknown + }; + + BarPlacement GetBarPlacement() const; + // different controls making up the bar wxStaticBitmap *m_icon; wxStaticText *m_text; wxBitmapButton *m_button; - // the effects to use when showing/hiding and duration for them + // the effects to use when showing/hiding and duration for them: by default + // the effect is determined by the info bar automatically depending on its + // position and the default duration is used wxShowEffect m_showEffect, m_hideEffect; int m_effectDuration; - // the original parent background colour, before we changed it - wxColour m_origParentBgCol; - DECLARE_EVENT_TABLE() wxDECLARE_NO_COPY_CLASS(wxInfoBarGeneric); };