Idealism is an ontological view, a view about what sorts of things there are in the universe. Idealism holds that what there is depends on out own mental structure and activity. Berkeley of course held that everything was mental; Kant held the more complex view that there was an important distinction between the mental and the physical, but that the structure of the empirical world depended on the activities of the mind