@@ -36,9 +36,9 @@ class WindowManager
3636 int last_state = STATE_NORMAL;
3737
3838 bool is_frameless = false ;
39- std::string title_bar_style = " default" ;
40- double opacity = 1 ;
41- bool is_resizable = true ;
39+ std::string title_bar_style_ = " default" ;
40+ bool is_resizable_ = true ;
41+ double opacity_ = 1 ;
4242
4343 // The minimum size set by the platform channel.
4444 POINT minimum_size = {0 , 0 };
@@ -439,12 +439,12 @@ void WindowManager::SetMaximumSize(const flutter::EncodableMap &args)
439439
440440bool WindowManager::IsResizable ()
441441{
442- return this -> is_resizable ;
442+ return is_resizable_ ;
443443}
444444
445445void WindowManager::SetResizable (const flutter::EncodableMap &args)
446446{
447- this -> is_resizable = std::get<bool >(args.at (flutter::EncodableValue (" isResizable" )));
447+ is_resizable_ = std::get<bool >(args.at (flutter::EncodableValue (" isResizable" )));
448448}
449449
450450bool WindowManager::IsMinimizable ()
@@ -511,13 +511,11 @@ void WindowManager::SetTitle(const flutter::EncodableMap &args)
511511
512512void WindowManager::SetTitleBarStyle (const flutter::EncodableMap &args)
513513{
514- std::string titleBarStyle = std::get<std::string>(args.at (flutter::EncodableValue (" titleBarStyle" )));
515-
516- this ->title_bar_style = titleBarStyle;
514+ title_bar_style_ = std::get<std::string>(args.at (flutter::EncodableValue (" titleBarStyle" )));
517515
518516 HWND hWnd = GetMainWindow ();
519517 DWORD gwlStyle = GetWindowLong (hWnd, GWL_STYLE);
520- if (titleBarStyle == " hidden" )
518+ if (title_bar_style_ == " hidden" )
521519 {
522520 gwlStyle = gwlStyle & ~WS_CAPTION;
523521 SetWindowLong (hWnd, GWL_STYLE, gwlStyle);
@@ -559,16 +557,16 @@ void WindowManager::SetSkipTaskbar(const flutter::EncodableMap &args)
559557
560558double WindowManager::GetOpacity ()
561559{
562- return this -> opacity ;
560+ return opacity_ ;
563561}
564562
565563void WindowManager::SetOpacity (const flutter::EncodableMap &args)
566564{
567- this -> opacity = std::get<double >(args.at (flutter::EncodableValue (" opacity" )));
565+ opacity_ = std::get<double >(args.at (flutter::EncodableValue (" opacity" )));
568566 HWND hWnd = GetMainWindow ();
569567 long gwlExStyle = GetWindowLong (hWnd, GWL_EXSTYLE);
570568 SetWindowLong (hWnd, GWL_EXSTYLE, gwlExStyle | WS_EX_LAYERED);
571- SetLayeredWindowAttributes (hWnd, 0 , static_cast <int8_t >(255 * this -> opacity ), 0x02 );
569+ SetLayeredWindowAttributes (hWnd, 0 , static_cast <int8_t >(255 * opacity_ ), 0x02 );
572570}
573571
574572void WindowManager::StartDragging ()
0 commit comments