예제 #1
0
파일: progress.cpp 프로젝트: sarrow104/nana
 void trigger::_m_draw_box(graph_reference graph)
 {
     rectangle r{ graph.size() };
     graph.gradual_rectangle(r, colors::button_face_shadow_end, colors::button_face_shadow_start, true);
     ::nana::color lt{ colors::gray }, rb{colors::white};
     graph.frame_rectangle(r, lt, lt, rb, rb);
 }
예제 #2
0
파일: button.cpp 프로젝트: Greentwip/Windy
		void trigger::_m_draw_border(graph_reference graph)
		{
			nana::rectangle r(graph.size());

			::nana::color lt(static_cast<color_rgb>(0x7f7f7f)), rb(static_cast<color_rgb>(0x707070));
			graph.frame_rectangle(r, lt, lt, rb, rb);

			graph.set_color(colors::button_face);
			draw_corner_point(graph, r);

			graph.set_color(static_cast<color_rgb>(0x919191));
			draw_corner_point(graph, r.pare_off(1));

			if (element_state::pressed == attr_.e_state)
				graph.rectangle(r, false, static_cast<color_rgb>(0xc3c3c3));
		}