コード例 #1
0
ファイル: ocbrowsr.cpp プロジェクト: nrnhines/nrn
void OcBrowser::select_and_adjust(GlyphIndex i){
	FileBrowser::select(i);
#if 0
	if (i >= 0) {
		GlyphIndex j = (i > 3) ? i+3 : i;
		Adjustable* a = adjustable();
		a->scroll_to(Dimension_Y, Coord(count() - j));
	}
#endif
}
コード例 #2
0
ファイル: slider.c プロジェクト: thickforest/SLS-1.02
void YSlider::move_to(Coord, Coord y) {
    Adjustable* a = adjustable_;
    a->scroll_to(Dimension_Y, a->lower(Dimension_Y) + y / yscale_);
}
コード例 #3
0
ファイル: slider.c プロジェクト: thickforest/SLS-1.02
void XSlider::move_to(Coord x, Coord) {
    Adjustable* a = adjustable_;
    a->scroll_to(Dimension_X, a->lower(Dimension_X) + x / xscale_);
}