~ubuntu-branches/ubuntu/utopic/mysql-workbench/utopic

« back to all changes in this revision

Viewing changes to library/forms/winforms/src/wf_view.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-05-31 12:03:58 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140531120358-cjik5ofkmj0fxsn8
Tags: 6.1.6+dfsg-1
* New upstream release [May 2014].
* Dropped "prtcl.patch".
* "debian/clean": better clean-up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
880
880
 
881
881
//-------------------------------------------------------------------------------------------------
882
882
 
 
883
bool ViewWrapper::is_fully_visible(mforms::View *backend)
 
884
{
 
885
  Control ^control = GetManagedObject<Control>(backend);
 
886
  while (control->Visible) 
 
887
  {
 
888
    if (control->Parent == nullptr)
 
889
      return true;
 
890
    control = control->Parent;
 
891
  };
 
892
  
 
893
  return false;
 
894
}
 
895
 
 
896
//-------------------------------------------------------------------------------------------------
 
897
 
883
898
void ViewWrapper::register_drop_formats(mforms::View *backend, mforms::DropDelegate *target,
884
899
  const std::vector<std::string> &formats)
885
900
{
1237
1252
  f->_view_impl.set_tooltip = &set_tooltip;
1238
1253
  f->_view_impl.set_font = &set_font;
1239
1254
  f->_view_impl.is_shown = &is_shown;
 
1255
  f->_view_impl.is_fully_visible = &is_fully_visible;
1240
1256
  f->_view_impl.suspend_layout = &suspend_layout;
1241
1257
  f->_view_impl.set_front_color = &set_front_color;
1242
1258
  f->_view_impl.get_front_color = &get_front_color;